Closed Bug 1313942 Opened 6 years ago Closed 6 years ago

Check trailing spaces in string firstLastFormat in TB AB


(MailNews Core :: Address Book, defect)

Not set


(Not tracked)

Thunderbird 52.0


(Reporter: aceman, Assigned: aceman)




(1 file)

1.91 KB, patch
: review+
: review+
Details | Diff | Splinter Review
+++ This bug was initially created as a clone of Bug #1312262 comment 13 +++

:aceman 2016-10-30 18:08:08 CET
::: mail/locales/en-US/chrome/messenger/addressbook/
@@ +11,3 @@
>  emptyListName=You must enter a list name.
>  lastFirstFormat=%S, %S
>  firstLastFormat=%S %S  

Heh, IF really these trailing spaces are required for proper operation, maybe it would use a localization note. Someone's eager editor may automatically strip trailing space.

In this bug find out if the trailing spaces in string "firstLastFormat" are really needed. Even if yes, that seems improper usage and should be solved differently.
Summary: Make the dialog titles in AB consistent and dynamic → Check trailing spaces in string firstLastFormat in TB AB
It seems fetching the strings from a properties file already automatically trims trailing spaces.

We even have a test at that checks the resulting output:
do_check_eq(card.generateName(1), kLNValue + ", " + kFNValue);
do_check_eq(card.generateName(2), kFNValue + " " + kLNValue);

And it expects there to be no trailing spaces. So I will remove them.

More of a problem is that translators already found this bug:

Some of them just trimmed the spaces, some preserved them some even made them obvious by forced \u0020 character (which may or may not have made the spaces actually preserved in the string).

How do we proceed here? Should I just change the string name? That would be unfortunate as it should match the schema of the other string name (lastFirstFormat).
Flags: needinfo?(mkmelin+mozilla)
Flags: needinfo?(iann_bugzilla)
Assuming it doesn't really matter if translators put spaces or \u0020 there, I'd just fix the en-US string. If someone picks it up that's fine, but if not that doesn't change operations.
Flags: needinfo?(mkmelin+mozilla)
Attached patch patchSplinter Review
Flags: needinfo?(iann_bugzilla)
Attachment #8809993 - Flags: review?(mkmelin+mozilla)
Attachment #8809993 - Flags: review?(iann_bugzilla)
Attachment #8809993 - Flags: review?(mkmelin+mozilla) → review+
Comment on attachment 8809993 [details] [diff] [review]

Attachment #8809993 - Flags: review?(iann_bugzilla) → review+
Thanks. I will post to to localization newsgroup, but we do not change the string IDs.
Keywords: checkin-needed
Closed: 6 years ago
Keywords: checkin-needed
Product: Thunderbird → MailNews Core
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 52.0
You need to log in before you can comment on or make changes to this bug.