summaryrefslogtreecommitdiff
path: root/plugins/import_export
diff options
context:
space:
mode:
authorTomas Chvatal <[email protected]>2013-03-24 13:32:03 +0100
committerTomas Chvatal <[email protected]>2013-03-24 13:32:03 +0100
commit49807c2b3db1f7c9a480d2fccadab036d4a0c422 (patch)
tree5e62befd10e9b6d93a12d7dbb2fafa4e073356d3 /plugins/import_export
parentf5c1fef9cdd1b132af57e4a2d472419caa6f4353 (diff)
Fix remaining plural forms to work with gettext.
Diffstat (limited to 'plugins/import_export')
-rw-r--r--plugins/import_export/import_export.js2
-rw-r--r--plugins/import_export/init.php6
2 files changed, 5 insertions, 3 deletions
diff --git a/plugins/import_export/import_export.js b/plugins/import_export/import_export.js
index b3b760f15..86b0458be 100644
--- a/plugins/import_export/import_export.js
+++ b/plugins/import_export/import_export.js
@@ -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");
diff --git a/plugins/import_export/init.php b/plugins/import_export/init.php
index 61b9a439f..845245607 100644
--- a/plugins/import_export/init.php
+++ b/plugins/import_export/init.php
@@ -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 {