From 1f68da2fae06e7dafdb91b61e68f27e7ee9b649a Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sat, 12 Jun 2021 20:25:12 -0400 Subject: [PATCH] Change locale/update_po_files.sh so it doesn't wrap lines... ... as requested by Phroneris, Japanese translator --- locale/LINGUAS | 2 +- locale/update_po_files.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/locale/LINGUAS b/locale/LINGUAS index c43bcc311..987e94502 100644 --- a/locale/LINGUAS +++ b/locale/LINGUAS @@ -39,8 +39,8 @@ nb nl oc pl -pt_PT pt_BR +pt_PT ro ru sk diff --git a/locale/update_po_files.sh b/locale/update_po_files.sh index 922d750af..85ccd60a8 100755 --- a/locale/update_po_files.sh +++ b/locale/update_po_files.sh @@ -7,6 +7,7 @@ for path in ../modules/mod-* ../libraries/lib-* ../include ../src ; do done | LANG=c sort | \ sed -E 's/\.\.\///g' |\ xargs xgettext \ +--no-wrap \ --default-domain=audacity \ --directory=.. \ --keyword=_ --keyword=XO --keyword=XC:1,2c --keyword=XXO --keyword=XXC:1,2c --keyword=XP:1,2 --keyword=XPC:1,2,4c \ @@ -21,6 +22,7 @@ echo ";; Adding nyquist files to audacity.pot" for path in ../plug-ins ; do find $path -name \*.ny -not -name rms.ny; done | LANG=c sort | \ sed -E 's/\.\.\///g' |\ xargs xgettext \ +--no-wrap \ --default-domain=audacity \ --directory=.. \ --keyword=_ --keyword=_C:1,2c --keyword=ngettext:1,2 --keyword=ngettextc:1,2,4c \ @@ -41,7 +43,7 @@ for i in *.po; do done echo ";; Updating the .po files" sed 's/.*/echo "msgmerge --lang=& &.po audacity.pot -o &.po";\ -msgmerge --lang=& &.po audacity.pot -o &.po;/g' LINGUAS | bash +msgmerge --no-wrap --lang=& &.po audacity.pot -o &.po;/g' LINGUAS | bash echo ";; Removing '#~|' (which confuse Windows version of msgcat)" for i in *.po; do sed '/^#~|/d' $i > TEMP; mv TEMP $i