[Rt-devel] [PATCH] Incorrect translation strings and updated Norwegian translation

Petter Reinholdtsen pere at hungry.com
Sun Jul 9 03:09:38 EDT 2006


There seem to be something wrong with the translation framework.
Inside the Norwegian Bokmål translation file (no.po, should probably
be called nb.po instead), I find several errors which seem to
originate from some automatic script.  There are also errors with
English strings going over multiple lines.  I've fixed the former, but
am not sure how to fix the latter.  I assume it require code changes.

This patch for no.po is relative to the 2.6 branch in subversion.
This is the result when checking the file:

  % msgfmt --statistics no-3.6-ny.po
  no-3.6-ny.po:4766: end-of-line within string
  no-3.6-ny.po:4765: missing `msgstr' section
  no-3.6-ny.po:4766:7: parse error
  no-3.6-ny.po:4766: keyword "by" unknown
  no-3.6-ny.po:4767: keyword "RT" unknown
  no-3.6-ny.po:4768: end-of-line within string
  msgfmt: found 6 fatal errors
  %

The errors are related to this incorrect translation block:

  #: html/Search/Simple.html:57
  msgid "Search for tickets. Enter <strong>id</strong> numbers, <strong>queues</strong> by name,
  Owners by <strong>username</strong> and Requestors by <strong>email address</strong>.
  RT will look for anything else you enter in ticket bodies and attachments."
  msgstr ""

I am unable to find the string in any source files, so I am not sure
how to fix it.

Here is the patch for no.po, fixing two typos
(s/Instilling/Innstilling/ and s/Konfigurasjon/Oppsett/) and the other
format errors detected by msgfmt.

--- no-3.6.po   Sun Jul  9 08:52:58 2006
+++ no-3.6-ny.po        Sun Jul  9 09:00:28 2006
@@ -136,30 +136,6 @@
 msgid "%1 - Specify the search module you want to use"
 msgstr "%1 - Oppgi søkemodulen du ønsker å bruke"

-     $RT::VERSION,
-     '2004',
-    '<a href="http://www.bestpractical.com?rt='.$RT::VERSION.'">Best Practical Solutions, LLC</a>',)
-     $RT::VERSION,
-     '2004',
-    '<a href="http://www.bestpractical.com?rt='.$RT::VERSION.'">Best Practical Solutions, LLC</a>',)
-     $RT::VERSION,
-     '2004',
-    '<a href="http://www.bestpractical.com?rt='.$RT::VERSION.'">Best Practical Solutions, LLC</a>',)
-     $RT::VERSION,
-     '2004',
-    '<a href="http://www.bestpractical.com?rt='.$RT::VERSION.'">Best Practical Solutions, LLC</a>',)
-     $RT::VERSION,
-     '2004',
-    '<a href="http://www.bestpractical.com?rt='.$RT::VERSION.'">Best Practical Solutions, LLC</a>',)
-     $RT::VERSION,
-     '2005',
-    '<a href="http://www.bestpractical.com?rt='.$RT::VERSION.'">Best Practical Solutions, LLC</a>',)
-     $RT::VERSION,
-     '2005',
-    '<a href="http://www.bestpractical.com?rt='.$RT::VERSION.'">Best Practical Solutions, LLC</a>',)
-     $RT::VERSION,
-     '2005',
-    '<a href="http://www.bestpractical.com?rt='.$RT::VERSION.'">Best Practical Solutions, LLC</a>',)
 #: html/Elements/Footer:57
 #. ('&#187;&#124;&#171;', $RT::VERSION, '2005', '<a href="http://www.bestpractical.com?rt='.$RT::VERSION.'">Best Practical Solutions, LLC</a>',)
 msgid "%1 RT %2 Copyright 1996-%3 %4."
@@ -1268,7 +1244,7 @@

 #: html/Elements/Tabs:84
 msgid "Configuration"
-msgstr "Konfigurasjon"
+msgstr "Oppsett"

 #: html/SelfService/Prefs.html:54
 msgid "Confirm"
@@ -2135,11 +2111,11 @@
 #: html/Admin/Queues/Modify.html:140
 #. ($QueueObj->Name)
 msgid "Editing Configuration for queue %1"
-msgstr "Rediger Konfigurasjon for køen %1"
+msgstr "Rediger Oppsettet for køen %1"

 #: NOT FOUND IN SOURCE
 msgid "Editing Configuration for user %1"
-msgstr "Redigerer Konfigurasjonen av brukern %1"
+msgstr "Redigerer oppsettet av brukern %1"

 #: html/Admin/CustomFields/Modify.html:167 html/Admin/Elements/EditCustomField:120
 #. ($CustomFieldObj->Name())
@@ -2972,7 +2948,7 @@

 #: html/Search/Bulk.html:114
 msgid "Make date Due"
-msgstr "msgstr "Sett tidsfrist" "
+msgstr "Sett tidsfrist"

 #: html/Search/Bulk.html:116
 msgid "Make date Resolved"
@@ -3559,7 +3535,7 @@

 #: NOT FOUND IN SOURCE
 msgid "New window setting"
-msgstr "Instillinger for nytt vindu"
+msgstr "Innstillinger for nytt vindu"

 #: html/Helpers/CalPopup.html:13 html/Ticket/Elements/Tabs:92
 msgid "Next"
@@ -4163,7 +4139,7 @@

 #: html/Elements/Header:88 html/Elements/Tabs:91 html/SelfService/Elements/Tabs:95 html/SelfService/Prefs.html:46 html/User/Prefs.html:46 html/User/Prefs.html:49
 msgid "Preferences"
-msgstr "Instillinger"
+msgstr "Innstillinger"

 #: NOT FOUND IN SOURCE
 msgid "Prefs"
@@ -4336,7 +4312,7 @@

 #: NOT FOUND IN SOURCE
 msgid "RT Configuration error"
-msgstr "RT Konfigurasjonsfeil"
+msgstr "RT Oppsettfeil"

 #: NOT FOUND IN SOURCE
 msgid "RT Critical error. Message not recorded!"
@@ -4392,7 +4368,7 @@

 #: NOT FOUND IN SOURCE
 msgid "RT couldn't validate this PGP signature. \\n"
-msgstr "msgstr "RT kunne ikke validere denne PGP signaturen. \\n" "
+msgstr "RT kunne ikke validere denne PGP signaturen. \\n"

 #: html/Elements/Logo:49 html/Elements/PageLayout:172
 #. ($RT::rtname)
@@ -4791,8 +4767,6 @@
 RT will look for anything else you enter in ticket bodies and attachments."
 msgstr ""

-Owners by <strong>username</strong> and Requestors by <strong>email address</strong>.
-RT will look for anything else you enter in ticket bodies and attachments."
 msgstr ""
 #: html/User/Elements/Tabs:62
 msgid "Search options"


More information about the Rt-devel mailing list