Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 2012 - Nyquist plug-in translations broken when string includes format specifiers
Nyquist plug-in translations broken when string includes format specifiers
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: User Interface
2.3.1
Per OS All
: P3 RepeatableAll
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-10-21 16:09 UTC by Steve Daulton
Modified: 2021-01-29 11:47 UTC (History)
6 users (show)

See Also:
Steps To Reproduce:
With the locale set to a language that is 100% translated, apply the "High Pass Filter" effect to a 8000Hz sample rate track and the filter frequency set to 5000 Hz. The error message should be a translated version of: "Error: Frequency (5000 Hz) is too high for track sample rate. Track sample rate is 8000 Hz Frequency must be less than 4000 Hz."
Release Note:
Localization: Most multi-line strings in Nyquist plug-ins appear in English only.
First Git SHA:
Group: ---
Workaround:
Closed: 2021-01-29 00:00:00


Attachments
German translation (166.05 KB, image/png)
2021-01-28 20:55 UTC, Leland Lucius
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Daulton 2018-10-21 16:09:53 UTC
Most of the multi-line strings in Nyquist plug-ins are not translated (they appear in English), even when there is a translation for them.

Several format specifiers are listed here: http://www.audacity-forum.de/download/edgar/nyquist/nyquist-doc/xlisp/xlisp-ref/xlisp-ref-121.htm

Known to cause problems:

The tilde character at the end of a line should continue the 'format' string on the next line, ignoring all leading white-space on the new line.
The leading whitespace breaks the translation.

Escaped characters, such as "\t" appear to lose their backslash.
Comment 1 Leland Lucius 2021-01-28 20:55:24 UTC
Created attachment 1068 [details]
German translation

Steve, is this working now? I tried German and it appears to be fixed for me.
Comment 2 Steve Daulton 2021-01-29 11:47:16 UTC
I'm not able to test all format specifiers, but "~%" and "~<newline>" are now working correctly. As that is the primary problem described in the bug description,I'm closing this as "Fixed".

I have not tested backslash escaped characters (https://www.audacity-forum.de/download/edgar/nyquist/nyquist-doc/xlisp/xlisp-man/xlisp-man-007.htm) as we have avoided them in shipped plug-ins. If they prove to be a problem in the future, that can be added to bugzilla as a new issue.