Bugzilla – Bug 2613
Selection bar sample display incorrectly in German
Last modified: 2021-02-09 12:24:20 UTC
When the time format in the Selection Toolbar is set to "samples", and the locale is set to German ("Deutsch"), the displayed selection times are wrong. This is believed to be a regression, though I can reproduce the problem on Linux back to 2.3.2 (the earliest version I have on Linux).
Fo me when I test on W10 this is a regression on 2.4.2 )2.4.1 and earlier are fine) It does not seem to afflict other foreign language choices
(In reply to Peter Sampson from comment #1) Do you mean that it does occur in 2.4.2 (a regression against 2.4.1)? I do NOT think it's related to the update to wx3.1 as I see the problem in Audacity 2.3.2 built with wx3.0.4.
(In reply to Steve Daulton from comment #2) Yes for me on W10 it does occur in 2.4.2 and latest alpha 3.0.0 But not in 2.4.1 or earlier (I started testing back at 2.3.0)
Looks like it's due to this commit: Author: Joachim Huffer <joachim.huffer@gmail.com> Date: 6 months ago (09/06/2020 17:23:04) Committer: James Crook <james.k.crook@gmail.com> Commit hash: 55718497192376ed77834710ff44c7547c15e88a Parent: 039ac974 Update German Translation change: msgid "01000,01000,01000 samples|#" -msgstr "01000,01000,01000 Samples|#" +msgstr "01000.01000.01000 Samples|#" I think there are also incorrect changes for frames as well.
Fix in: https://github.com/audacity/audacity/commit/171d8cf It is based on a comment that James had included in the code as part of the fix for bug #s 2241 and 2399: // A correct fix would require changing all the format // strings to make it explicit when ',' is a thousands separator // and when ',' is a decimal separator I’ve implemented such a method by changing all of the format strings to use a “>” for the decimal (“.”) separator which the translators can change to “<” if their separator is supposed to be a “,” instead. I’ve also updated all of the current translations to reflect this…at least I hope I got them all correct.
(In reply to Leland Lucius from comment #5) Tested on W10 with Audacity 3.0.0 9e53df0 This now works properly on Windows with both the Selection Toolbar and the Timer Toolbar
(In reply to Leland Lucius from comment #5) Tested on macOS 11.1 with Audacity 3.0.0 9e53df0 This now works properly on MAC with both the Selection Toolbar and the Timer Toolbar
(In reply to Leland Lucius from comment #5) > Fix in: > > https://github.com/audacity/audacity/commit/171d8cf > > It is based on a comment that James had included in the code as part of the > fix for bug #s 2241 and 2399: > > // A correct fix would require changing all the format > // strings to make it explicit when ',' is a thousands separator > // and when ',' is a decimal separator > > I’ve implemented such a method by changing all of the format strings to use > a “>” for the decimal (“.”) separator which the translators can change to > “<” if their separator is supposed to be a “,” instead. I’ve also updated > all of the current translations to reflect this…at least I hope I got them > all correct. - The description of the syntax at the top of NumericTextCtrl.cpp could probably do with updating to reflect this change. - The german translation still incorrectly uses . as the thousands separator - but this no longer has any unwanted side effects. - the following hint may need updating: /* i18n-hint: Format string for displaying log of frequency in decades. * Change the decimal points for your locale. Don't change the numbers. */ XO("10>01000 decades|0.434294482"), // Scale factor is 1 / ln (10)
Created attachment 1043 [details] Audacity auf Deutsch (In reply to David Bailes from comment #8) Microsoft states in their gudelines (and we tend to follow Microsoft anf Apple guidelines) >Number Formatting > >The character used as the thousands separator. >In the United States, this character is a comma (,). >In Germany, it is a period (.). >Thus one thousand and twenty-five is displayed as 1,025 in the United States >and 1.025 in Germany. In Sweden, the thousands separator is a space. > >The character used as the decimal separator. >In the United States, this character is a period (.). >In Germany, it is a comma (,). >Thus one thousand twenty-five and seven tenths is displayed as >1,025.7 in the United States and 1.025,7 in Germany. This says to me that the format we have auf Deutsch in the Selection Toolbar and the Timer toolbar is correct – see attachment.
(In reply to Peter Sampson from comment #9) > Created attachment 1043 [details] > Audacity auf Deutsch > > (In reply to David Bailes from comment #8) > Microsoft states in their gudelines (and we tend to follow Microsoft anf > Apple guidelines) > > >Number Formatting > > > >The character used as the thousands separator. > >In the United States, this character is a comma (,). > >In Germany, it is a period (.). > >Thus one thousand and twenty-five is displayed as 1,025 in the United States > >and 1.025 in Germany. In Sweden, the thousands separator is a space. > > > >The character used as the decimal separator. > >In the United States, this character is a period (.). > >In Germany, it is a comma (,). > >Thus one thousand twenty-five and seven tenths is displayed as > >1,025.7 in the United States and 1.025,7 in Germany. > > This says to me that the format we have auf Deutsch in the Selection Toolbar > and the Timer toolbar is correct – see attachment. Sorry, my mistake!
Created attachment 1044 [details] Audacity en Francais Though having said that I note that we do not follow the same convention for French where they also use the comma as the decimal separator (and period for thousands) - in line with UK and US usage - See attachment.
Created attachment 1045 [details] Audacity in Norsk (Norwegian) Here agin it is diffent - the thousands separator is blank and the decimal separator is period. The decimal separator is wrong as the Norwegians usually use comma for that. The blank thousands separator is fine. See: https://en.wikipedia.org/wiki/Decimal_separator#Digit_grouping But when I worked in Oslo I recall that my Excel spreadsheets had numbers expressed as >1.234.567,89 just as we currently have for German
(In reply to David Bailes from comment #10) >Sorry, my mistake! That's OK David - I've had some fun digging around in this ;-) In the process I've discovered from my Gernan-speaking (Züri-Deutsch) wife that she would write Swiss numbers as >1'234'567,89 with single-quotes as the thousands separator. What a strange world we live in ... But as we have had no complaints about such formatting I suggest we let various sleeping dogs/Hunde/Chiens lie (quietly and peacefully)
And with regard to the German testing shows that up to 2.4.1 auf Deutsch we were following UK/US standards for the selection toolbar. It was only with 2.4.2 that it got changed to proper German standard.
Testing on Linux, I'm now seeing the correct numbers. I don't know if we are using the correct separators. Some of them "look wrong" to me, but I'm unsure what is correct. Example - French selected in Prefs. Spectral Selection Toolbar uses a comma (as expected). Time in the Selection Toolbar shows a dot in "hh:mm:ss + milliseconds" between seconds and milliseconds, whereas I'd have expected a comma. I'm also seeing a dot used as the decimal separator in effects and generators.
Created attachment 1046 [details] Audacity auf Deutsch inconsistency (In reply to Steve Daulton from comment #15) Well in German we are certainly not consistent a) The Timer and Selection toolbars use "," period as the thousands separator b) the Spectral selection toolbar uses "," comma as the thousands separator See attachment. So do we want a) keep this bug open for this minor residual with Spectral Selection toolbar not conforming to Selection and Timer Toolbars in German b) close this (as the numbers are right) and open a residual (low-P) bug for the formatting. I favour the latter.
(In reply to Peter Sampson from comment #16) I also note that the Spectral selection toolbar is inconsistent in that it doesn't use a thousands separator.
Since the critical part of this bug is fixed (as set out in the steps to reproduce) I am closing this as fixed. I will consider add bug(s) later for the mild separator formatting issues - but if I do they will only be P5 I'm thinking.