Göran Uddeborg wrote: > In coreutils 7.1, in src/system.h, there is this nicely commented > piece of code: > > /* TRANSLATORS: Replace LANG_CODE in this URL with your language code > <http://translationproject.org/team/LANG_CODE.html> to form one of > the URLs at http://translationproject.org/team/. Otherwise, replace > the entire URL with your translation team's email address. */ > if (hard_locale (LC_MESSAGES)) > printf (_("Report %s translation bugs to " > "<http://translationproject.org/team/>\n"), > last_component (program_name)); > > Unfortunately, the comment is not picked up by xgettext, apparently > because it is before the "if" line. If you would move the comment > below that line, your nice message would be included in the po files > immediately available for all us translators! :-)
How about the attached. I haven't tested it as I'm afraid it'll spin my CPU for hours. cheers, Pádraig.
>From c86be7ea06e30367e9036ae73682aefe7f66c4a3 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?P=C3=A1draig=20Brady?= <[email protected]> Date: Tue, 24 Feb 2009 09:47:00 +0000 Subject: [PATCH] =?utf-8?q?Ensure=20comment=20for=20translators=20is=20included=20in=20po=20file =20Issue=20reported=20by=20G=C3=B6ran=20Uddeborg=20<[email protected]>?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit * src/system.h: Move the translator comment adjacent to the translated string. --- src/system.h | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/system.h b/src/system.h index 2f6249b..990be0c 100644 --- a/src/system.h +++ b/src/system.h @@ -627,14 +627,16 @@ emit_bug_reporting_address (void) fputs (_("General help using GNU software: <http://www.gnu.org/gethelp/>\n"), stdout); - /* TRANSLATORS: Replace LANG_CODE in this URL with your language code - <http://translationproject.org/team/LANG_CODE.html> to form one of - the URLs at http://translationproject.org/team/. Otherwise, replace - the entire URL with your translation team's email address. */ if (hard_locale (LC_MESSAGES)) - printf (_("Report %s translation bugs to " - "<http://translationproject.org/team/>\n"), - last_component (program_name)); + { + /* TRANSLATORS: Replace LANG_CODE in this URL with your language code + <http://translationproject.org/team/LANG_CODE.html> to form one of + the URLs at http://translationproject.org/team/. Otherwise, replace + the entire URL with your translation team's email address. */ + printf (_("Report %s translation bugs to " + "<http://translationproject.org/team/>\n"), + last_component (program_name)); + } } #include "inttostr.h" -- 1.5.3.6
_______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
