1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-25 06:21:29 +00:00

Fix remaining plural forms to work with gettext.

This commit is contained in:
Tomas Chvatal
2013-03-24 13:32:03 +01:00
parent f5c1fef9cd
commit 49807c2b3d
4 changed files with 13 additions and 11 deletions

View File

@@ -37,7 +37,7 @@ function exportData() {
} else {
$("export_status_message").innerHTML =
__("Finished, exported %d articles. You can download the data <a class='visibleLink' href='%u'>here</a>.")
ngettext("Finished, exported %d article. You can download the data <a class='visibleLink' href='%u'>here</a>.", "Finished, exported %d articles. You can download the data <a class='visibleLink' href='%u'>here</a>.", exported)
.replace("%d", exported)
.replace("%u", "backend.php?op=pluginhandler&plugin=import_export&subop=exportget");

View File

@@ -382,8 +382,10 @@ class Import_Export extends Plugin implements IHandler {
}
print "<p>" .
T_sprintf("Finished: %d articles processed, %d imported, %d feeds created.",
$num_processed, $num_imported, $num_feeds_created) .
vsprintf(__("Finished: ")).
vsprintf(ngettext("%d article processed, ", "%d articles processed, ", $num_processed), $num_processed).
vsprintf(ngettext("%d imported, ", "%d imported, ", $num_imported), $num_imported).
vsprintf(ngettext("%d feed created.", "%d feeds created.", $num_feeds_created), $num_feeds_created).
"</p>";
} else {