[anjuta] build-autotools: Add translator comment for bgo#634124 - Different make translations confuse Anjuta



commit 3df100c85e11eb618051d6a8543720cb94dd203b
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Wed Nov 17 22:46:48 2010 +0100

    build-autotools: Add translator comment for bgo#634124 - Different make translations confuse Anjuta

 plugins/build-basic-autotools/plugin.c |   16 ++++++++++++++--
 po/POTFILES.in                         |   24 ++++++++++++------------
 2 files changed, 26 insertions(+), 14 deletions(-)
---
diff --git a/plugins/build-basic-autotools/plugin.c b/plugins/build-basic-autotools/plugin.c
index efcb14d..78362c3 100644
--- a/plugins/build-basic-autotools/plugin.c
+++ b/plugins/build-basic-autotools/plugin.c
@@ -924,13 +924,25 @@ on_build_mesg_format (IAnjutaMessageView *view, const gchar *one_line,
 		IAnjutaIndicableIndicator indicator;
 	
 		if ((strstr (line, "warning:") != NULL) ||
-			(strstr (line, _("warning:")) != NULL))
+		/* The translations should match that of 'make' program.
+		 * The second string with -old should be used for an older
+		 * version of 'make' if necessary. If you update one string,
+		 * move the first one to translate the -old string and then
+		 * replace the first string only. */
+			(strstr (line, _("warning:")) != NULL) ||
+			(strstr (line, _("warning:-old")) != NULL))
 		{
 			type = IANJUTA_MESSAGE_VIEW_TYPE_WARNING;
 			indicator = IANJUTA_INDICABLE_WARNING;
 		}
 		else if ((strstr (line, "error:") != NULL) ||
-		          (strstr (line, _("error:")) != NULL))
+		/* The translations should match that of 'make' program.
+		 * The second string with -old should be used for an older
+		 * version of 'make' if necessary. If you update one string,
+		 * move the first one to translate the -old string and then
+		 * replace the first string only. */
+		          (strstr (line, _("error:")) != NULL) ||
+			  (strstr (line, _("error:-old")) != NULL))
 		{
 			type = IANJUTA_MESSAGE_VIEW_TYPE_ERROR;
 			indicator = IANJUTA_INDICABLE_CRITICAL;
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 197cbe2..d5415a3 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -95,14 +95,10 @@ plugins/file-manager/plugin.c
 [type: gettext/glade]plugins/file-wizard/anjuta-file-wizard.ui
 plugins/file-wizard/file.c
 plugins/file-wizard/plugin.c
-plugins/gbf-am/gbf-am-config.c
-[type: gettext/glade]plugins/gbf-am/gbf-am-dialogs.ui
-plugins/gbf-am/gbf-am-project.c
-plugins/gbf-am/gbf-am-properties.c
-plugins/gbf-mkfile/gbf-mkfile-config.c
-plugins/gbf-mkfile/gbf-mkfile-project.c
-plugins/gbf-mkfile/gbf-mkfile-properties.c
 plugins/dir-project/dir-project.c
+plugins/am-project/am-node.c
+plugins/am-project/am-project.c
+plugins/am-project/am-properties.c
 [type: gettext/glade]plugins/gdb/anjuta-gdb.ui
 plugins/gdb/debugger.c
 plugins/gdb/plugin.c
@@ -161,10 +157,15 @@ plugins/patch/plugin.c
 plugins/project-import/plugin.c
 [type: gettext/glade]plugins/project-import/project-import.ui
 plugins/project-import/project-import-dialog.c
-[type: gettext/glade]plugins/project-manager/create_dialogs.ui
-plugins/project-manager/gbf-project-model.c
-plugins/project-manager/gbf-project-util.c
+[type: gettext/glade]plugins/project-manager/pm_dialogs.ui
+plugins/project-manager/project-model.c
+plugins/project-manager/project-util.c
 plugins/project-manager/plugin.c
+plugins/project-manager/dialogs.c
+plugins/project-manager/project.c
+plugins/project-manager/project-view.c
+plugins/project-manager/tree-data.c
+plugins/project-manager/pkg-config.c
 [type: gettext/glade]plugins/project-wizard/anjuta-project-wizard.ui
 plugins/project-wizard/druid.c
 plugins/project-wizard/install.c
@@ -296,8 +297,7 @@ plugins/sourceview/plugin.c
 [type: gettext/ini]plugins/debug-manager/anjuta-debug-manager.plugin.in
 [type: gettext/ini]plugins/run-program/anjuta-run-program.plugin.in
 [type: gettext/ini]plugins/language-manager/language-manager.plugin.in
-[type: gettext/ini]plugins/gbf-mkfile/gbf-mkfile.plugin.in
-[type: gettext/ini]plugins/gbf-am/gbf-am.plugin.in
+[type: gettext/ini]plugins/am-project/am-project.plugin.in
 plugins/js-debugger/plugin.c
 plugins/js-debugger/debugger-js.c
 [type: gettext/ini]plugins/js-debugger/js_debugger.plugin.in



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]