GNOME Bugzilla – Bug 618500
Strings containing hyphens/dashes aren't translated
Last modified: 2010-06-05 19:36:58 UTC
I don't know how to name the symbol "—" (hyphens/dashes/minus symbol), but strings containing this symbol don't seem to be translated. I'll give examples: 1.1) In the source, go to the file "hamster-applet/src/hamster/about.py" to the line 42. We have a string that can be translated: _("Project Hamster — track your time") See the symbol "—" in the string. 1.2) Now, go to the file "hamster-applet/po/fr.po" to the line 120: #: ../data/Hamster_Applet.server.in.in.h:1 ../src/hamster/about.py:42 msgid "Project Hamster — track your time" msgstr "Projet Hamster — Gérez votre emploi du temps" The string is translated in the "po" file, but not in my French interface. 2.1) Go to the file "hamster-applet/src/hamster/stats.py" to the line 176: _("Collecting data — check back after a week has passed!") 2.2) Now, go to the file "hamster-applet/po/fr.po" to the line 699: #: ../src/hamster/stats.py:179 msgid "Collecting data — check back after a week has passed!" msgstr "La collecte des données est en cours — revenez dans une semaine !" I have the English string in my French interface. 3.1) Go to the file "hamster-applet/data/overview.ui" to the line 7: <property name="title" translatable="yes">Overview — Hamster</property> 3.2) Now, go to the file "hamster-applet/po/fr.po" to the line 120: #: ../data/overview.ui.h:4 msgid "Overview - Hamster" msgstr "Résumé - Hamster" In my French interface, it's in English. Also, I don't know why, but note that in the "msgid" string, the hyphen is not as long as the hyphen in the file "hamster-applet/data/overview.ui". 4.1) Go to the file "hamster-applet/src/hamster/widgets/reportchooserdialog.py" to the line 38: _("Save Report — Time Tracker") 4.2) Now, go to the file "hamster-applet/po/fr.po" to the line 817: #: ../src/hamster/widgets/reportchooserdialog.py:38 msgid "Save report - Time Tracker" msgstr "Enregistrer le rapport - Gestionnaire de temps" In my interface, it's in English. Note that it seems that the "msgid" string is not up-to-date. The "msgid" string has a lowercase "r" in "report", but in "reportchooserdialog.py" it's uppercase. Note also that in the "msgid" string, the hyphen is not as long as the hyphen in "reportchooserdialog.py".
Created attachment 160971 [details] Strings not translated See the blue dots in the attached screen shot.
thanks! fix pushed to git master and 2-30