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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1799853

Title:
  German translation of "Create New Note" template breaks functionality

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tomboy/+bug/1799853/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to