[ubuntu-mono] [Bug 1799853] [NEW] German translation of "Create New Note" template breaks functionality
Mirko Hessel-von Molo
1799853 at bugs.launchpad.net
Thu Oct 25 01:09:06 UTC 2018
Public bug reported:
Working with 18.04.01, package 1.15.9-0ubuntu1
When Tomboy 1.15.9 is used in a German locale, new notes are created
with a nonsensical title.
In the English locale, the title would be eg. "Note from 2018-10-28, 02:58:34.123".
In German, it is "Notiz von JJJJ-10-TT, 02:58:34.123". Clearly the date part is nonsense.
The reason for this is that the string "yyyy-MM-dd HH:mm:ss.fff"
creating the time stamp (line 483 in NoteManager.cs) is first fed into
Catalog.GetString() and then into DateTime.Now.ToString; i.e. it is
translated before being processed.
Now in the German .po file, there is "JJJJ-MM-dd, HH:mm:ss.fff" as a
translation for "yyyy-MM-dd, HH:mm:ss.fff". This breaks the "ToString"
functionality and leads to the above mentioned effects.
It is easy to correct this: either remove the call of
Catalog.GetString() for the above mentioned string, or remove the
"translation" of this string (if for some reason the call is required
for other languages).
** Affects: tomboy (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
CLI/Mono Uploaders, which is subscribed to tomboy in Ubuntu.
https://bugs.launchpad.net/bugs/1799853
Title:
German translation of "Create New Note" template breaks functionality
Status in tomboy package in Ubuntu:
New
Bug description:
Working with 18.04.01, package 1.15.9-0ubuntu1
When Tomboy 1.15.9 is used in a German locale, new notes are created
with a nonsensical title.
In the English locale, the title would be eg. "Note from 2018-10-28, 02:58:34.123".
In German, it is "Notiz von JJJJ-10-TT, 02:58:34.123". Clearly the date part is nonsense.
The reason for this is that the string "yyyy-MM-dd HH:mm:ss.fff"
creating the time stamp (line 483 in NoteManager.cs) is first fed into
Catalog.GetString() and then into DateTime.Now.ToString; i.e. it is
translated before being processed.
Now in the German .po file, there is "JJJJ-MM-dd, HH:mm:ss.fff" as a
translation for "yyyy-MM-dd, HH:mm:ss.fff". This breaks the "ToString"
functionality and leads to the above mentioned effects.
It is easy to correct this: either remove the call of
Catalog.GetString() for the above mentioned string, or remove the
"translation" of this string (if for some reason the call is required
for other languages).
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tomboy/+bug/1799853/+subscriptions
More information about the Ubuntu-mono
mailing list