[gnote] Bug 774262 - Add translator comment for the boost formats
- From: Hubert Figuière <hub src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Bug 774262 - Add translator comment for the boost formats
- Date: Sat, 12 Nov 2016 15:57:14 +0000 (UTC)
commit 9538fc3f73777647c284debd3c6b768272dd8ca7
Author: Hubert Figuière <hub figuiere net>
Date: Sat Nov 12 10:52:46 2016 -0500
Bug 774262 - Add translator comment for the boost formats
po/ca.po | 2 +-
po/oc.po | 6 +++---
po/ru.po | 6 +++---
src/addins/exporttohtml/exporttohtmlnoteaddin.cpp | 1 +
src/addins/statistics/statisticswidget.cpp | 1 +
.../webdavsyncservice/webdavsyncserviceaddin.cpp | 2 ++
src/gnote.cpp | 1 +
src/notebooks/notebooknewnotemenuitem.cpp | 1 +
src/preferencesdialog.cpp | 4 +++-
src/utils.cpp | 10 +++++-----
src/watchers.cpp | 2 ++
11 files changed, 23 insertions(+), 13 deletions(-)
---
diff --git a/po/ca.po b/po/ca.po
index a232fa8..f20a7d7 100644
--- a/po/ca.po
+++ b/po/ca.po
@@ -2800,7 +2800,7 @@ msgstr "%d %b"
#: ../src/utils.cpp:251 ../src/utils.cpp:263
#, fuzzy
msgid "%1%, %2%"
-msgstr "%1 (%2):"
+msgstr "%1% (%2%):"
#: ../src/utils.cpp:256
msgid "No Date"
diff --git a/po/oc.po b/po/oc.po
index 592b38d..30b1299 100644
--- a/po/oc.po
+++ b/po/oc.po
@@ -2418,7 +2418,7 @@ msgid ""
"The server version of \"%1%\" conflicts with your local note. What do you "
"want to do with your local note?"
msgstr ""
-"La version del servidor de « %1 » es en conflicte amb vòstra nòta locala. "
+"La version del servidor de « %1% » es en conflicte amb vòstra nòta locala. "
"Qué volètz far de vòstra nòta locala ?"
#. Expander containing TreeView
@@ -2516,8 +2516,8 @@ msgstr "La sincronizacion es acabada"
#: ../src/synchronization/syncdialog.cpp:540
msgid "%1% note updated."
msgid_plural "%1% notes updated."
-msgstr[0] "%1 % de las nòtas mesa a jorn."
-msgstr[1] "%1 % de las nòtas mesa a jorn."
+msgstr[0] "%1% de las nòtas mesa a jorn."
+msgstr[1] "%1% de las nòtas mesa a jorn."
#: ../src/synchronization/syncdialog.cpp:541
msgid "Your notes are now up to date."
diff --git a/po/ru.po b/po/ru.po
index ad53b37..a71fb7d 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -2093,9 +2093,9 @@ msgstr "Синхронизация завершена"
#| msgid "%1% Notebook Template"
msgid "%1% note updated."
msgid_plural "%1% notes updated."
-msgstr[0] "%1 заметка обновлена."
-msgstr[1] "%1 заметки обновлены."
-msgstr[2] "%1 заметок обновлено."
+msgstr[0] "%1% заметка обновлена."
+msgstr[1] "%1% заметки обновлены."
+msgstr[2] "%1% заметок обновлено."
#: ../src/synchronization/syncdialog.cpp:592
msgid "Your notes are now up to date."
diff --git a/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
b/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
index e15b1c4..c509850 100644
--- a/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
+++ b/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
@@ -122,6 +122,7 @@ void ExportToHtmlNoteAddin::export_button_clicked(const Glib::VariantBase&)
ERR_OUT(_("Could not open exported note in a web browser: %s"),
ex.what().c_str());
+ // TRANSLATORS: %1%: boost format placeholder for the path
std::string detail = str(boost::format(
_("Your note was exported to \"%1%\"."))
% output_path);
diff --git a/src/addins/statistics/statisticswidget.cpp b/src/addins/statistics/statisticswidget.cpp
index bebbaed..e8623b7 100644
--- a/src/addins/statistics/statisticswidget.cpp
+++ b/src/addins/statistics/statisticswidget.cpp
@@ -124,6 +124,7 @@ private:
for(std::map<std::string, int>::iterator nb = notebook_stats.begin(); nb != notebook_stats.end();
++nb) {
Gtk::TreeIter nb_stat = append(iter->children());
nb_stat->set_value(0, nb->first);
+ // TRANSLATORS: %1%: boost format placeholder for the number of notes.
char *fmt = ngettext("%1% note", "%1% notes", nb->second);
nb_stat->set_value(1, str(boost::format(fmt) % nb->second));
}
diff --git a/src/addins/webdavsyncservice/webdavsyncserviceaddin.cpp
b/src/addins/webdavsyncservice/webdavsyncserviceaddin.cpp
index 268c44f..6292051 100644
--- a/src/addins/webdavsyncservice/webdavsyncserviceaddin.cpp
+++ b/src/addins/webdavsyncservice/webdavsyncserviceaddin.cpp
@@ -259,6 +259,8 @@ void WebDavSyncServiceAddin::save_config_settings(const std::string & url, const
// Save configuration into GConf
//Preferences.Set ("/apps/tomboy/sync_wdfs_url", url ?? string.Empty);
//Preferences.Set ("/apps/tomboy/sync_wdfs_username", username ?? string.Empty);
+
+ // TRANSLATORS: %1%: boost format placeholder for the error message.
boost::format msg(_("Saving configuration to the GNOME keyring failed with the following
message:\n\n%1%"));
throw gnote::sync::GnoteSyncException(str(msg % ke.what()).c_str());
}
diff --git a/src/gnote.cpp b/src/gnote.cpp
index 0a2a246..93c0834 100644
--- a/src/gnote.cpp
+++ b/src/gnote.cpp
@@ -731,6 +731,7 @@ namespace gnote {
void GnoteCommandLine::print_version()
{
+ // TRANSLATORS: %1%: boost format placeholder for the version string.
Glib::ustring version = str(boost::format(_("Version %1%"))
% VERSION);
std::cerr << version << std::endl;
diff --git a/src/notebooks/notebooknewnotemenuitem.cpp b/src/notebooks/notebooknewnotemenuitem.cpp
index 3cebf34..0ebd31f 100644
--- a/src/notebooks/notebooknewnotemenuitem.cpp
+++ b/src/notebooks/notebooknewnotemenuitem.cpp
@@ -37,6 +37,7 @@ namespace gnote {
namespace notebooks {
NotebookNewNoteMenuItem::NotebookNewNoteMenuItem(const Notebook::Ptr & notebook)
+ // TRANSLATORS: %1%: boost format placeholder for the notebook name
: Gtk::ImageMenuItem(str(boost::format(_("New \"%1%\" Note")) % notebook->get_name()))
, m_notebook(notebook)
{
diff --git a/src/preferencesdialog.cpp b/src/preferencesdialog.cpp
index 1691533..23e9655 100644
--- a/src/preferencesdialog.cpp
+++ b/src/preferencesdialog.cpp
@@ -315,7 +315,7 @@ namespace gnote {
options_list->attach(*rename_behavior_box, 0, options_list_row++, 1, 1);
// New Note Template
- // Translators: This is 'New Note' Template, not New 'Note Template'
+ // TRANSLATORS: This is 'New Note' Template, not New 'Note Template'
Gtk::Grid *template_note_grid = manage(new Gtk::Grid);
label = manage(make_label (_("New Note Template")));
set_widget_tooltip(*label, _("Use the new note template to specify the text "
@@ -797,6 +797,7 @@ namespace gnote {
vbox->show_all ();
dialog = new Gtk::Dialog(
+ // TRANSLATORS: %1%: boost format placeholder for the addin name.
str(boost::format(_("%1% Preferences")) % addin_info.name()),
*this, false);
dialog->property_destroy_with_parent() = true;
@@ -1250,6 +1251,7 @@ namespace gnote {
// Give the user a visual letting them know that connecting
// was successful.
if(errorMsg == "") {
+ // TRANSLATORS: %1% boost format placeholder for the log file path.
errorMsg = _("Please check your information and try again. The log file %1% may contain more
information about the error.");
std::string logPath = Glib::build_filename(Glib::get_home_dir(), "gnote.log");
errorMsg = str(boost::format(errorMsg) % logPath);
diff --git a/src/utils.cpp b/src/utils.cpp
index 9e6b77d..468b09f 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -225,21 +225,21 @@ namespace gnote {
if (date.year() == now.year()) {
if (date.day_of_year() == now.day_of_year()) {
pretty_str = show_time ?
- /* TRANSLATORS: argument is time. */
+ /* TRANSLATORS: argument %1% is time. */
str(boost::format(_("Today, %1%")) % short_time) :
_("Today");
}
else if ((date.day_of_year() < now.day_of_year())
&& (date.day_of_year() == now.day_of_year() - 1)) {
pretty_str = show_time ?
- /* TRANSLATORS: argument is time. */
+ /* TRANSLATORS: argument %1% is time. */
str(boost::format(_("Yesterday, %1%")) % short_time) :
_("Yesterday");
}
else if (date.day_of_year() > now.day_of_year()
&& date.day_of_year() == now.day_of_year() + 1) {
pretty_str = show_time ?
- /* TRANSLATORS: argument is time. */
+ /* TRANSLATORS: argument %1% is time. */
str(boost::format(_("Tomorrow, %1%")) % short_time) :
_("Tomorrow");
}
@@ -247,7 +247,7 @@ namespace gnote {
/* TRANSLATORS: date in current year. */
pretty_str = date.to_string(_("%b %d")); // "MMMM d"
if(show_time) {
- /* TRANSLATORS: first argument is date, second is time. */
+ /* TRANSLATORS: argument %1% is date, %2% is time. */
pretty_str = str(boost::format(_("%1%, %2%")) % pretty_str % short_time);
}
}
@@ -259,7 +259,7 @@ namespace gnote {
/* TRANSLATORS: date in other than current year. */
pretty_str = date.to_string(_("%b %d %Y")); // "MMMM d yyyy"
if(show_time) {
- /* TRANSLATORS: first argument is date, second is time. */
+ /* TRANSLATORS: argument %1% is date, %2% is time. */
pretty_str = str(boost::format(_("%1%, %2%")) % pretty_str % short_time);
}
}
diff --git a/src/watchers.cpp b/src/watchers.cpp
index ced4786..75feaff 100644
--- a/src/watchers.cpp
+++ b/src/watchers.cpp
@@ -198,6 +198,7 @@ namespace gnote {
std::string temp_title;
while (true) {
+ // TRANSLATORS: %1%: boost format placeholder for the number.
temp_title = str(boost::format(_("(Untitled %1%)")) % ++new_num);
if (!manager().find (temp_title)) {
return temp_title;
@@ -228,6 +229,7 @@ namespace gnote {
get_buffer()->move_mark (get_buffer()->get_selection_bound(), get_title_start());
get_buffer()->move_mark (get_buffer()->get_insert(), get_title_end());
+ // TRANSLATORS: %1%: boost format placeholder for the title.
std::string message = str(boost::format(
_("A note with the title "
"<b>%1%</b> already exists. "
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]