commit 52c3d24d19845db8535405e8101297e30a6ccce5 Author: Ahmed Siam Date: Fri Aug 18 17:43:01 2023 +0300 Fix some stuff diff --git a/README.md b/README.md index da4b466..100b938 100644 Binary files a/README.md and b/README.md differ diff --git a/apertium/adapt_docx.cc b/apertium/adapt_docx.cc index 783d18e..b9aaceb 100644 --- a/apertium/adapt_docx.cc +++ b/apertium/adapt_docx.cc @@ -234,7 +234,7 @@ Paragraph::Paragraph(xmlNode *_root) void showParagraphs(xmlNode *root) { vector pp = Walker::findAll(root, "p", true); - cout << pp.size() << " " << I18n(APER_I18N_DATA, "apertium").format("paragraphs_found") << endl; + cout << I18n(APER_I18N_DATA, "apertium").format("paragraphs_found", {"num"}, {to_string(pp.size()).c_str()}) << endl; for (auto it1 = pp.begin(); it1 != pp.end(); it1++) { Paragraph p(*it1); bool first = true; diff --git a/locales/root.txt b/locales/root.txt index 3845761..9e9efec 100644 --- a/locales/root.txt +++ b/locales/root.txt @@ -8,7 +8,7 @@ root{ name_desc{"writes \"< file name=\"filename\">\" to output"} file_desc{"gets file name as parameter"} pretty_desc{"outputs xml with a pretty format"} - paragraphs_found{"paragraphs found"} + paragraphs_found{"{num} paragraphs found"} compile_caps_desc{"compile capitalization restoration rules"} help_desc{"print this message and exit"}