German translation of "Create New Note" template breaks functionality

Bug #1799853 reported by Mirko Hessel-von Molo
12
This bug affects 2 people
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.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).

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in tomboy (Ubuntu):
status: New → Confirmed
Revision history for this message
Alexander Adam (7ql6) wrote :

Something is strange in general with the localization stuff in Tomboy.
See the recording in the attachment:

Everything in the UI is in English (Menus, Columns, etc.) but when I create a new note, it's title is in German and runs into that particular bug.

What is interesting here as well: it is working when I load Gnome as a Desktop environment but it shows the buggy behaviour on KDE.

Revision history for this message
Alexander Adam (7ql6) wrote :

This bug is still present in Tomboy 1.15.9-0ubuntu1 on Ubuntu 20.04.

Revision history for this message
Alexander Adam (7ql6) wrote :

Upstream bug seems to be this one: https://github.com/tomboy-notes/tomboy/issues/101

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.