Skip to content

Commit

Permalink
fix/#801_reorganize_the_images_checklists (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
richaferry authored Oct 14, 2024
1 parent 68a77e9 commit fad4fb9
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 50 deletions.
7 changes: 4 additions & 3 deletions core/Requirement/Featured_image.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @package PublishPress\Checklists
* @author PublishPress <[email protected]>
Expand Down Expand Up @@ -30,7 +31,7 @@ class Featured_image extends Base_simple
/**
* @var int
*/
public $position = 140;
public $position = 102;

/**
* Initialize the language strings for the instance
Expand All @@ -39,8 +40,8 @@ class Featured_image extends Base_simple
*/
public function init_language()
{
$this->lang['label'] = __('Featured image', 'publishpress-checklists');
$this->lang['label_settings'] = __('Featured image', 'publishpress-checklists');
$this->lang['label'] = __('Featured image is added', 'publishpress-checklists');
$this->lang['label_settings'] = __('Featured image is added', 'publishpress-checklists');
}

/**
Expand Down
9 changes: 5 additions & 4 deletions core/Requirement/Featured_image_alt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @package PublishPress\Checklists
* @author PublishPress <[email protected]>
Expand Down Expand Up @@ -30,7 +31,7 @@ class Featured_image_alt extends Base_simple
/**
* @var int
*/
public $position = 150;
public $position = 105;

/**
* Initialize the language strings for the instance
Expand All @@ -39,8 +40,8 @@ class Featured_image_alt extends Base_simple
*/
public function init_language()
{
$this->lang['label'] = __('Alt text for featured images', 'publishpress-checklists');
$this->lang['label_settings'] = __('Alt text for featured images', 'publishpress-checklists');
$this->lang['label'] = __('Featured image has Alt text', 'publishpress-checklists');
$this->lang['label_settings'] = __('Featured image has Alt text', 'publishpress-checklists');
}

/**
Expand All @@ -58,7 +59,7 @@ public function get_current_status($post, $option_value)
* check if new post
* new post will have no thumbnail in initialize page
*/
if($thumbnail_id === 0) return true;
if ($thumbnail_id === 0) return true;

$thumbnail_alt = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true);

Expand Down
5 changes: 3 additions & 2 deletions core/Requirement/Image_alt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @package PublishPress\Checklists
* @author PublishPress <[email protected]>
Expand Down Expand Up @@ -40,8 +41,8 @@ class Image_alt extends Base_simple
*/
public function init_language()
{
$this->lang['label'] = __('Alt text for all images', 'publishpress-checklists');
$this->lang['label_settings'] = __('Alt text for all images', 'publishpress-checklists');
$this->lang['label'] = __('All images have Alt text', 'publishpress-checklists');
$this->lang['label_settings'] = __('All images have Alt text', 'publishpress-checklists');
}

/**
Expand Down
12 changes: 6 additions & 6 deletions languages/publishpress-checklists-de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ msgid "All links use a valid format"
msgstr "Alle Links im gültigen Format"

#: core/Requirement/Image_alt.php:36 core/Requirement/Image_alt.php:37
msgid "Alt text for all images"
msgstr "Alt-Text für alle Bilder"
msgid "All images have Alt text"
msgstr "Alle Bilder haben Alternativtext"

#: core/Requirement/Featured_image_alt.php:36 core/Requirement/Featured_image_alt.php:37
msgid "Alt text for featured images"
msgstr "Alt-Text für vorgestellte Bilder"
msgid "Featured image has Alt text"
msgstr "Das vorgestellte Bild hat einen Alternativtext"

#: core/Requirement/Approved_by.php:41
msgid "Approved by %s"
Expand Down Expand Up @@ -230,8 +230,8 @@ msgstr "Aktivierte Elemente"

#: core/Requirement/Featured_image.php:35
#: core/Requirement/Featured_image.php:36
msgid "Featured image"
msgstr "Beitragsbild"
msgid "Featured image is added"
msgstr "Vorgestelltes Bild wurde hinzugefügt"

#: modules/settings/settings.php:245
msgid "Features"
Expand Down
8 changes: 4 additions & 4 deletions languages/publishpress-checklists-en_GB.po
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ msgid "All links use a valid format"
msgstr ""

#: core/Requirement/Image_alt.php:36 core/Requirement/Image_alt.php:37
msgid "Alt text for all images"
msgid "All images have Alt text"
msgstr ""

#: core/Requirement/Featured_image_alt.php:36 core/Requirement/Featured_image_alt.php:37
msgid "Alt text for featured images"
msgid "Featured image has Alt text"
msgstr ""

#: core/Requirement/Approved_by.php:41
Expand Down Expand Up @@ -252,8 +252,8 @@ msgstr "Enabled features"

#: core/Requirement/Featured_image.php:35
#: core/Requirement/Featured_image.php:36
msgid "Featured image"
msgstr "Featured image"
msgid "Featured image is added"
msgstr ""

#: modules/settings/settings.php:245
msgid "Features"
Expand Down
12 changes: 6 additions & 6 deletions languages/publishpress-checklists-es_ES.po
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ msgid "All links use a valid format"
msgstr "Todos los enlaces usan un formato válido"

#: core/Requirement/Image_alt.php:36 core/Requirement/Image_alt.php:37
msgid "Alt text for all images"
msgstr "Texto alternativo para todas las imágenes"
msgid "All images have Alt text"
msgstr "Todas las imágenes tienen texto alternativo"

#: core/Requirement/Featured_image_alt.php:36 core/Requirement/Featured_image_alt.php:37
msgid "Alt text for featured images"
msgstr "Texto alternativo para imágenes destacadas"
msgid "Featured image has Alt text"
msgstr "La imagen destacada tiene texto alternativo"

#: core/Requirement/Openai_item.php:266
msgid "An error occured."
Expand Down Expand Up @@ -264,8 +264,8 @@ msgstr ""

#: core/Requirement/Featured_image.php:35
#: core/Requirement/Featured_image.php:36
msgid "Featured image"
msgstr "Imagen destacada"
msgid "Featured image is added"
msgstr "Se agregó la imagen destacada"

#: modules/settings/settings.php:252
msgid "Features"
Expand Down
12 changes: 6 additions & 6 deletions languages/publishpress-checklists-fr_FR.po
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ msgid "All links use a valid format"
msgstr "Tous les liens utilisent un format valide"

#: core/Requirement/Image_alt.php:36 core/Requirement/Image_alt.php:37
msgid "Alt text for all images"
msgstr "Texte alternatif pour toutes les images"
msgid "All images have Alt text"
msgstr "Toutes les images contiennent un texte alternatif"

#: core/Requirement/Featured_image_alt.php:36 core/Requirement/Featured_image_alt.php:37
msgid "Alt text for featured images"
msgstr "Texte alternatif pour les images mises en avant"
msgid "Featured image has Alt text"
msgstr "L'image sélectionnée contient un texte alternatif"

#: core/Requirement/Openai_item.php:266
msgid "An error occured."
Expand Down Expand Up @@ -259,8 +259,8 @@ msgstr ""
"de contrôle."

#: core/Requirement/Featured_image.php:35 core/Requirement/Featured_image.php:36
msgid "Featured image"
msgstr "Image mise en avant"
msgid "Featured image is added"
msgstr "L'image sélectionnée est ajoutée"

#: modules/settings/settings.php:252
msgid "Features"
Expand Down
12 changes: 6 additions & 6 deletions languages/publishpress-checklists-it_IT.po
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ msgid "All links use a valid format"
msgstr "Tutti i link utilizzano un formato valido"

#: core/Requirement/Image_alt.php:36 core/Requirement/Image_alt.php:37
msgid "Alt text for all images"
msgstr "Testo alternativo per tutte le immagini"
msgid "All images have Alt text"
msgstr "Tutte le immagini hanno un testo Alt"

#: core/Requirement/Featured_image_alt.php:36 core/Requirement/Featured_image_alt.php:37
msgid "Alt text for featured images"
msgstr "Testo alternativo per le immagini in evidenza"
msgid "Featured image has Alt text"
msgstr "L'immagine in evidenza ha testo alternativo"

#: core/Requirement/Openai_item.php:266
msgid "An error occured."
Expand Down Expand Up @@ -259,8 +259,8 @@ msgstr ""
"liste di controllo."

#: core/Requirement/Featured_image.php:35 core/Requirement/Featured_image.php:36
msgid "Featured image"
msgstr "Immagine in evidenza"
msgid "Featured image is added"
msgstr "L'immagine in evidenza è stata aggiunta"

#: modules/settings/settings.php:252
msgid "Features"
Expand Down
12 changes: 6 additions & 6 deletions languages/publishpress-checklists-pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ msgid "All links use a valid format"
msgstr ""

#: core/Requirement/Image_alt.php:36 core/Requirement/Image_alt.php:37
msgid "Alt text for all images"
msgstr "Alt texto para todas as imagens"
msgid "All images have Alt text"
msgstr "Todas as imagens têm texto alternativo"

#: core/Requirement/Featured_image_alt.php:36 core/Requirement/Featured_image_alt.php:37
msgid "Alt text for featured images"
msgstr "Texto alternativo para imagens em destaque"
msgid "Featured image has Alt text"
msgstr "A imagem em destaque tem texto alternativo"

#: core/Requirement/Approved_by.php:41
#, php-format
Expand Down Expand Up @@ -253,8 +253,8 @@ msgstr "Funcionalidades ativadas"

#: core/Requirement/Featured_image.php:35
#: core/Requirement/Featured_image.php:36
msgid "Featured image"
msgstr "Imagem destacada"
msgid "Featured image is added"
msgstr "A imagem em destaque foi adicionada"

#: modules/settings/settings.php:245
msgid "Features"
Expand Down
12 changes: 8 additions & 4 deletions languages/publishpress-checklists-tr_TR.po
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,12 @@ msgid "All links use a valid format"
msgstr "Tüm bağlantılar geçerli bir format kullanır"

#: core/Requirement/Image_alt.php:36 core/Requirement/Image_alt.php:37
msgid "Alt text for all images"
msgstr "Tüm görseller için alt metin"
msgid "All images have Alt text"
msgstr "Tüm görsellerin Alt metni var"

#: core/Requirement/Featured_image_alt.php:36 core/Requirement/Featured_image_alt.php:37
msgid "Featured image has Alt text"
msgstr "Öne çıkan görselin Alt metni var"

#: core/Requirement/Openai_item.php:266
msgid "An error occured."
Expand Down Expand Up @@ -268,8 +272,8 @@ msgstr ""

#: core/Requirement/Featured_image.php:35
#: core/Requirement/Featured_image.php:36
msgid "Featured image"
msgstr "Öne Çıkan Görsel"
msgid "Featured image is added"
msgstr "Öne çıkan görsel eklendi"

#: modules/settings/settings.php:252
msgid "Features"
Expand Down
6 changes: 3 additions & 3 deletions languages/publishpress-checklists.pot
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ msgid "All links use a valid format"
msgstr ""

#: core/Requirement/Image_alt.php:36 core/Requirement/Image_alt.php:37
msgid "Alt text for all images"
msgid "All images have Alt text"
msgstr ""

#: core/Requirement/Featured_image_alt.php:36 core/Requirement/Featured_image_alt.php:37
msgid "Alt text for featured images"
msgid "Featured image has Alt text"
msgstr ""

#: core/Requirement/Openai_item.php:266
Expand Down Expand Up @@ -266,7 +266,7 @@ msgstr ""

#: core/Requirement/Featured_image.php:35
#: core/Requirement/Featured_image.php:36
msgid "Featured image"
msgid "Featured image is added"
msgstr ""

#: modules/settings/settings.php:252
Expand Down

0 comments on commit fad4fb9

Please sign in to comment.