German translation of "Create New Note" template breaks functionality
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomboy (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
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 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).
Status changed to 'Confirmed' because the bug affects multiple users.