Skip to content

Commit

Permalink
Fix ignored message count.
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlost committed Feb 13, 2017
1 parent eeddfe0 commit 0029f1a
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 61 deletions.
Binary file modified dist/gs-only-pdf-preview-1.0.4.zip
Binary file not shown.
3 changes: 2 additions & 1 deletion gs-only-pdf-preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,10 @@ static function admin_notices() {
number_format_i18n( $num_updates ), number_format_i18n( $time, self::$timing_dec_places )
) );
if ( $cnt > $num_updates + $num_fails ) {
$num_ignores = $cnt - ( $num_updates + $num_fails );
$admin_notices[] = array( 'warning', sprintf(
/* translators: %s: formatted number of non-PDFs ignored. */
_n( '%s non-PDF ignored.', '%s non-PDFs ignored.', $cnt, 'gs-only-pdf-preview' ), number_format_i18n( $cnt - ( $num_updates + $num_fails ) )
_n( '%s non-PDF ignored.', '%s non-PDFs ignored.', $num_ignores, 'gs-only-pdf-preview' ), number_format_i18n( $num_ignores )
) );
}
} else {
Expand Down
62 changes: 31 additions & 31 deletions languages/gs-only-pdf-preview-fr_FR.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Project-Id-Version: GS Only PDF Preview 1.0.4\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gs-only-pdf-"
"preview\n"
"POT-Creation-Date: 2017-02-10 09:50+0000\n"
"PO-Revision-Date: 2017-02-10 09:50+0000\n"
"POT-Creation-Date: 2017-02-13 03:13+0000\n"
"PO-Revision-Date: 2017-02-13 03:13+0000\n"
"Last-Translator: gitlost <gitlost@gitlostbonger.com>\n"
"Language-Team: \n"
"Language: fr_FR\n"
Expand Down Expand Up @@ -124,63 +124,63 @@ msgstr[0] "%1$s aperçu de miniature de PDF régénéré en %2$s secondes."
msgstr[1] "%1$s aperçus de miniature de PDF régénérés en %2$s secondes."

#. translators: %s: formatted number of non-PDFs ignored.
#: gs-only-pdf-preview.php:235
#: gs-only-pdf-preview.php:236
msgid "%s non-PDF ignored."
msgid_plural "%s non-PDFs ignored."
msgstr[0] "%s non PDF ignoré."
msgstr[1] "%s non PDFs ignorés."

#: gs-only-pdf-preview.php:240
#: gs-only-pdf-preview.php:241
msgid "Nothing updated!"
msgstr "Rien mis à jour&nbsp;!"

#. translators: %s: formatted number of non-PDFs ignored.
#: gs-only-pdf-preview.php:244
#: gs-only-pdf-preview.php:245
msgid "Nothing updateable! %s non-PDF ignored."
msgid_plural "Nothing updateable! %s non-PDFs ignored."
msgstr[0] "Aucun à mis à jour&nbsp;! %s non PDF ignoré."
msgstr[1] "Aucun à mis à jour&nbsp;! %s non PDFs ignorés."

#. translators: %s: formatted number of PDF previews that failed to regenerate.
#: gs-only-pdf-preview.php:251
#: gs-only-pdf-preview.php:252
msgid "%s PDF preview not regenerated."
msgid_plural "%s PDF previews not regenerated."
msgstr[0] "%s aperçu de miniature de PDF non régénéré."
msgstr[1] "%s aperçus de miniature de PDF non régénérés."

#: gs-only-pdf-preview.php:257
#: gs-only-pdf-preview.php:258
msgid "You can go again below if you want."
msgstr "Vous pouvez aller de nouveau ci-dessous si vous voulez."

#: gs-only-pdf-preview.php:295 gs-only-pdf-preview.php:449
#: gs-only-pdf-preview.php:543
#: gs-only-pdf-preview.php:296 gs-only-pdf-preview.php:450
#: gs-only-pdf-preview.php:544
msgid "Regenerate PDF Previews"
msgstr "Régénérer les aperçus de miniature de PDF"

#: gs-only-pdf-preview.php:295
#: gs-only-pdf-preview.php:296
msgid "Regen. PDF Previews"
msgstr "Régén. aperçus PDF"

#: gs-only-pdf-preview.php:309 gs-only-pdf-preview.php:414
#: gs-only-pdf-preview.php:614
#: gs-only-pdf-preview.php:310 gs-only-pdf-preview.php:415
#: gs-only-pdf-preview.php:615
msgid "Sorry, you are not allowed to access this page."
msgstr ""
"Désolé, vous n&rsquo;avez pas l&rsquo;autorisation d&rsquo;accéder à cette "
"page. "

#: gs-only-pdf-preview.php:420
#: gs-only-pdf-preview.php:421
msgid "GS Only PDF Preview - Regenerate PDF Previews"
msgstr "GS Only PDF Preview - Régénérer les aperçus de miniature de PDF."

#: gs-only-pdf-preview.php:425
#: gs-only-pdf-preview.php:426
msgid ""
"This tool is for regenerating the thumbnail previews of PDFs, but no PDFs "
"have been uploaded, so it has nothing to do."
msgstr ""
"Cet outil sert à régénérer les aperçus de miniature de PDF, mais aucun "
"fichier PDF n&rsquo;a été téléchargé, donc il n&rsquo;a rien à faire."

#: gs-only-pdf-preview.php:432
#: gs-only-pdf-preview.php:433
msgid ""
"<strong>Warning: cannot set max execution time!</strong> The maximum time "
"allowed for a PHP script to run on your system could not be set, so you may "
Expand All @@ -191,27 +191,27 @@ msgstr ""
"s&rsquo;exécuter sur votre système n&rsquo;a pu pas être régler, vous pouvez "
"donc éprouver l&rsquo;écran blanc de mort (WSOD) en essayant ceci."

#: gs-only-pdf-preview.php:441
#: gs-only-pdf-preview.php:442
msgid "Regenerate the thumbnail previews of PDFs uploaded to your system."
msgstr ""
"Régénèrer les aperçus de miniature de fichiers PDF téléchargés sur votre "
"système."

#. translators: %s: formatted number of PDFs found.
#: gs-only-pdf-preview.php:446
#: gs-only-pdf-preview.php:447
msgid "<strong>%s</strong> PDF has been found."
msgid_plural "<strong>%s</strong> PDFs have been found."
msgstr[0] "<strong>%s</strong> PDF a été trouvé."
msgstr[1] "<strong>%s</strong> PDFs ont été trouvés."

#. translators: %s: formatted number (greater than 10) of PDFs found.
#: gs-only-pdf-preview.php:454
#: gs-only-pdf-preview.php:455
msgid "Regenerating %s PDF previews can take a long time."
msgstr ""
"Régénérer %s aperçus de miniature de PDF peut prendre un certain temps."

#. translators: %s: url to the Media Library page in list mode.
#: gs-only-pdf-preview.php:466
#: gs-only-pdf-preview.php:467
msgid ""
"Note that you can also regenerate PDF previews in batches or individually "
"using the bulk action \"Regenerate PDF Previews\" (or the row action "
Expand All @@ -224,45 +224,45 @@ msgstr ""
"ligne &laquo;&nbsp;Régénérer l&rsquo;aperçu&nbsp;&raquo;) disponible dans le "
"<a href=\"%s\">mode de liste de la bibliothèque des médias</a>."

#: gs-only-pdf-preview.php:505
#: gs-only-pdf-preview.php:506
msgid "Please wait..."
msgstr "S&rsquo;il vous plaît attendre..."

#: gs-only-pdf-preview.php:509
#: gs-only-pdf-preview.php:510
msgid "No items selected!"
msgstr "Aucun élément sélectionné&nbsp;!"

#: gs-only-pdf-preview.php:510
#: gs-only-pdf-preview.php:511
msgid "Regenerate Preview ajax action not available!"
msgstr ""
"L&rsquo;action de régénérer l&rsquo;aperçu n&rsquo;est pas disponible&nbsp;!"

#: gs-only-pdf-preview.php:514
#: gs-only-pdf-preview.php:515
msgid "Document Link Only"
msgstr "Lien de document seulement"

#. translators: %s: attachment title
#: gs-only-pdf-preview.php:598
#: gs-only-pdf-preview.php:599
msgid "Regenerate the PDF preview for &#8220;%s&#8221;"
msgstr "Régénérer l&rsquo;aperçu de miniature de PDF pour &#8220;%s&#8221;"

#: gs-only-pdf-preview.php:599
#: gs-only-pdf-preview.php:600
msgid "Regenerate&nbsp;Preview"
msgstr "Régénérer&nbsp;l&rsquo;aperçu"

#: gs-only-pdf-preview.php:619
#: gs-only-pdf-preview.php:620
msgid "Invalid nonce."
msgstr "Nonce invalide."

#: gs-only-pdf-preview.php:622
#: gs-only-pdf-preview.php:623
msgid "Invalid ID."
msgstr "Identifiant invalide."

#: gs-only-pdf-preview.php:628
#: gs-only-pdf-preview.php:629
msgid "Failed to generate the PDF preview."
msgstr "Échec de générer l&rsquo;aperçu de miniature de PDF."

#: gs-only-pdf-preview.php:633
#: gs-only-pdf-preview.php:634
msgid ""
"Successfully regenerated the PDF preview. It's best to refresh your browser "
"to see the updated thumbnail correctly."
Expand All @@ -271,7 +271,7 @@ msgstr ""
"préférable d&rsquo;actualiser votre navigateur pour voir le miniature mis à "
"jour correctement."

#: gs-only-pdf-preview.php:635
#: gs-only-pdf-preview.php:636
msgid ""
"Successfully regenerated the PDF preview. You will need to refresh your "
"browser to see the updated thumbnail."
Expand All @@ -281,7 +281,7 @@ msgstr ""

#. translators: %1$d: percentage of PDF previews completed; %2$d: completed
#. count.
#: gs-only-pdf-preview.php:664
#: gs-only-pdf-preview.php:665
msgid "%d%% (%d)"
msgstr "%d%% (%d)"

Expand Down
58 changes: 29 additions & 29 deletions languages/gs-only-pdf-preview.pot
Original file line number Diff line number Diff line change
Expand Up @@ -101,83 +101,83 @@ msgid_plural "%1$s PDF previews regenerated in %2$s seconds."
msgstr[0] ""
msgstr[1] ""

#: gs-only-pdf-preview.php:235
#: gs-only-pdf-preview.php:236
#. translators: %s: formatted number of non-PDFs ignored.
msgid "%s non-PDF ignored."
msgid_plural "%s non-PDFs ignored."
msgstr[0] ""
msgstr[1] ""

#: gs-only-pdf-preview.php:240
#: gs-only-pdf-preview.php:241
msgid "Nothing updated!"
msgstr ""

#: gs-only-pdf-preview.php:244
#: gs-only-pdf-preview.php:245
#. translators: %s: formatted number of non-PDFs ignored.
msgid "Nothing updateable! %s non-PDF ignored."
msgid_plural "Nothing updateable! %s non-PDFs ignored."
msgstr[0] ""
msgstr[1] ""

#: gs-only-pdf-preview.php:251
#: gs-only-pdf-preview.php:252
#. translators: %s: formatted number of PDF previews that failed to regenerate.
msgid "%s PDF preview not regenerated."
msgid_plural "%s PDF previews not regenerated."
msgstr[0] ""
msgstr[1] ""

#: gs-only-pdf-preview.php:257
#: gs-only-pdf-preview.php:258
msgid "You can go again below if you want."
msgstr ""

#: gs-only-pdf-preview.php:295 gs-only-pdf-preview.php:449
#: gs-only-pdf-preview.php:543
#: gs-only-pdf-preview.php:296 gs-only-pdf-preview.php:450
#: gs-only-pdf-preview.php:544
msgid "Regenerate PDF Previews"
msgstr ""

#: gs-only-pdf-preview.php:295
#: gs-only-pdf-preview.php:296
msgid "Regen. PDF Previews"
msgstr ""

#: gs-only-pdf-preview.php:309 gs-only-pdf-preview.php:414
#: gs-only-pdf-preview.php:614
#: gs-only-pdf-preview.php:310 gs-only-pdf-preview.php:415
#: gs-only-pdf-preview.php:615
msgid "Sorry, you are not allowed to access this page."
msgstr ""

#: gs-only-pdf-preview.php:420
#: gs-only-pdf-preview.php:421
msgid "GS Only PDF Preview - Regenerate PDF Previews"
msgstr ""

#: gs-only-pdf-preview.php:425
#: gs-only-pdf-preview.php:426
msgid ""
"This tool is for regenerating the thumbnail previews of PDFs, but no PDFs "
"have been uploaded, so it has nothing to do."
msgstr ""

#: gs-only-pdf-preview.php:432
#: gs-only-pdf-preview.php:433
msgid ""
"<strong>Warning: cannot set max execution time!</strong> The maximum time "
"allowed for a PHP script to run on your system could not be set, so you may "
"experience the White Screen Of Death (WSOD) on trying this."
msgstr ""

#: gs-only-pdf-preview.php:441
#: gs-only-pdf-preview.php:442
msgid "Regenerate the thumbnail previews of PDFs uploaded to your system."
msgstr ""

#: gs-only-pdf-preview.php:446
#: gs-only-pdf-preview.php:447
#. translators: %s: formatted number of PDFs found.
msgid "<strong>%s</strong> PDF has been found."
msgid_plural "<strong>%s</strong> PDFs have been found."
msgstr[0] ""
msgstr[1] ""

#: gs-only-pdf-preview.php:454
#: gs-only-pdf-preview.php:455
#. translators: %s: formatted number (greater than 10) of PDFs found.
msgid "Regenerating %s PDF previews can take a long time."
msgstr ""

#: gs-only-pdf-preview.php:466
#: gs-only-pdf-preview.php:467
#. translators: %s: url to the Media Library page in list mode.
msgid ""
"Note that you can also regenerate PDF previews in batches or individually "
Expand All @@ -186,56 +186,56 @@ msgid ""
"Media Library</a>."
msgstr ""

#: gs-only-pdf-preview.php:505
#: gs-only-pdf-preview.php:506
msgid "Please wait..."
msgstr ""

#: gs-only-pdf-preview.php:509
#: gs-only-pdf-preview.php:510
msgid "No items selected!"
msgstr ""

#: gs-only-pdf-preview.php:510
#: gs-only-pdf-preview.php:511
msgid "Regenerate Preview ajax action not available!"
msgstr ""

#: gs-only-pdf-preview.php:514
#: gs-only-pdf-preview.php:515
msgid "Document Link Only"
msgstr ""

#: gs-only-pdf-preview.php:598
#: gs-only-pdf-preview.php:599
#. translators: %s: attachment title
msgid "Regenerate the PDF preview for &#8220;%s&#8221;"
msgstr ""

#: gs-only-pdf-preview.php:599
#: gs-only-pdf-preview.php:600
msgid "Regenerate&nbsp;Preview"
msgstr ""

#: gs-only-pdf-preview.php:619
#: gs-only-pdf-preview.php:620
msgid "Invalid nonce."
msgstr ""

#: gs-only-pdf-preview.php:622
#: gs-only-pdf-preview.php:623
msgid "Invalid ID."
msgstr ""

#: gs-only-pdf-preview.php:628
#: gs-only-pdf-preview.php:629
msgid "Failed to generate the PDF preview."
msgstr ""

#: gs-only-pdf-preview.php:633
#: gs-only-pdf-preview.php:634
msgid ""
"Successfully regenerated the PDF preview. It's best to refresh your browser "
"to see the updated thumbnail correctly."
msgstr ""

#: gs-only-pdf-preview.php:635
#: gs-only-pdf-preview.php:636
msgid ""
"Successfully regenerated the PDF preview. You will need to refresh your "
"browser to see the updated thumbnail."
msgstr ""

#: gs-only-pdf-preview.php:664
#: gs-only-pdf-preview.php:665
#. translators: %1$d: percentage of PDF previews completed; %2$d: completed
#. count.
msgid "%d%% (%d)"
Expand Down

0 comments on commit 0029f1a

Please sign in to comment.