1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-26 16:03:53 +02:00

Don't use \n sequence inside Lisp strings needing translation...

... Because xgettext will just remove the \, not replace \n with newline.

That's consistent with Lisp reader behavior in this documentation:
http://www.lispworks.com/documentation/lw70/CLHS/Body/02_de.htm

The XLisp reader, which replaces \n with newline, is nonstandard.

So, to accommodate xgettext, use (format nil "...~%...") instead, or where
you can't do that in a $ header line, just make a line break inside the ""

There are a few "\n" left alone in sample-data-export.ny which are neither
in $ lines nor inside (_ "...")
This commit is contained in:
Paul Licameli
2018-03-02 08:59:13 -05:00
parent da39cc451f
commit ac9148e48f
13 changed files with 38 additions and 27 deletions

View File

@@ -37,8 +37,8 @@ $copyright (_"Released under terms of the GNU General Public License version 2")
;; 2) The selection may not start or end in white-space.
(setf err1 (_"Error.\nInvalid selection.\nMore than 2 audio clips selected."))
(setf err2 (_"Error.\nInvalid selection.\nEmpty space at start/ end of the selection."))
(setf err1 (format nil (_"Error.~%Invalid selection.~%More than 2 audio clips selected.")))
(setf err2 (format nil (_"Error.~%Invalid selection.~%Empty space at start/ end of the selection.")))
(defun find-ends (T0 T1 clips)
@@ -128,4 +128,4 @@ $copyright (_"Released under terms of the GNU General Public License version 2")
(get '*selection* 'start)
(get '*selection* 'end)
(get '*track* 'clips)))
(_"Error.\nCrossfade Clips may only be applied to one track."))
(format nil (_"Error.~%Crossfade Clips may only be applied to one track.")))