mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-29 15:19:44 +02:00
Finish en.po
and rename POT file.
Finish copying msgid to msgstr for `en.po`. Rename POT file. Rename MO files generated from PO files. Signed-off-by: Emily Mabrey <emilymabrey93@gmail.com>
This commit is contained in:
parent
3191d5f265
commit
edca998293
@ -1,6 +1,6 @@
|
||||
/**********************************************************************
|
||||
|
||||
Audacity: A Digital Audio Editor
|
||||
Tenacity: A Digital Audio Editor
|
||||
|
||||
Languages.cpp
|
||||
|
||||
@ -64,11 +64,11 @@ static void FindFilesInPathList(const wxString & pattern,
|
||||
static bool TranslationExists(const FilePaths &pathList, wxString code)
|
||||
{
|
||||
FilePaths results;
|
||||
FindFilesInPathList(code + L"/audacity.mo", pathList, results);
|
||||
FindFilesInPathList(code + L"/tenacity.mo", pathList, results);
|
||||
#if defined(__WXMAC__)
|
||||
FindFilesInPathList(code + L".lproj/audacity.mo", pathList, results);
|
||||
FindFilesInPathList(code + L".lproj/tenacity.mo", pathList, results);
|
||||
#endif
|
||||
FindFilesInPathList(code + L"/LC_MESSAGES/audacity.mo", pathList, results);
|
||||
FindFilesInPathList(code + L"/LC_MESSAGES/tenacity.mo", pathList, results);
|
||||
return (results.size() > 0);
|
||||
}
|
||||
|
||||
@ -283,7 +283,7 @@ void GetLanguages( FilePaths pathList,
|
||||
}
|
||||
}
|
||||
|
||||
// JKC: Adding language for simplified audacity.
|
||||
// JKC: Adding language for simplified tenacity.
|
||||
{
|
||||
wxString code;
|
||||
code = wxT("en-simple");
|
||||
@ -363,7 +363,7 @@ wxString SetLang( const FilePaths &pathList, const wxString & lang )
|
||||
sLocale->AddCatalog(wxT("wxstd"));
|
||||
|
||||
// Must match TranslationExists() in Languages.cpp
|
||||
sLocale->AddCatalog("audacity");
|
||||
sLocale->AddCatalog("tenacity");
|
||||
|
||||
// Initialize internationalisation (number formats etc.)
|
||||
//
|
||||
@ -374,7 +374,7 @@ wxString SetLang( const FilePaths &pathList, const wxString & lang )
|
||||
|
||||
using future1 = decltype(
|
||||
// The file of unused strings is part of the source tree scanned by
|
||||
// xgettext when compiling the catalog template audacity.pot.
|
||||
// xgettext when compiling the catalog template tenacity.pot.
|
||||
// Including it here doesn't change that but does make the C++ compiler
|
||||
// check for correct syntax, but also generate no object code for them.
|
||||
#include "FutureStrings.h"
|
||||
|
@ -48,7 +48,7 @@ foreach( source ${SOURCES} )
|
||||
endif()
|
||||
|
||||
set( po "${_SRCDIR}/${source}" )
|
||||
set( mo "${dst}/audacity.mo" )
|
||||
set( mo "${dst}/tenacity.mo" )
|
||||
|
||||
add_custom_command(
|
||||
DEPENDS
|
||||
|
7751
locale/en.po
7751
locale/en.po
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Run this script with locale as the current directory
|
||||
set -o errexit
|
||||
echo ";; Recreating audacity.pot using .h, .cpp and .mm files"
|
||||
for path in ../modules/mod-* ../libraries/lib-* ../include ../src ../crashreports ; do
|
||||
echo ";; Recreating tenacity.pot using .h, .cpp and .mm files"
|
||||
for path in ../modules/mod-* ../libraries/lib-* ../include ../src ; do
|
||||
find $path -name \*.h -o -name \*.cpp -o -name \*.mm
|
||||
done | LANG=c sort | \
|
||||
sed -E 's/\.\.\///g' |\
|
||||
@ -17,13 +17,13 @@ xargs xgettext \
|
||||
--package-name="tenacity" \
|
||||
--package-version='3.0.3' \
|
||||
--msgid-bugs-address="emabrey@tenacityaudio.org" \
|
||||
--add-location=file -L C -o audacity.pot
|
||||
echo ";; Adding nyquist files to audacity.pot"
|
||||
--add-location=file -L C -o tenacity.pot
|
||||
echo ";; Adding nyquist files to tenacity.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 \
|
||||
--default-domain=tenacity \
|
||||
--directory=.. \
|
||||
--keyword=_ --keyword=_C:1,2c --keyword=ngettext:1,2 --keyword=ngettextc:1,2,4c \
|
||||
--add-comments=" i18n" \
|
||||
@ -32,7 +32,7 @@ xargs xgettext \
|
||||
--package-name="tenacity" \
|
||||
--package-version='3.0.4' \
|
||||
--msgid-bugs-address="emabrey@tenacityaudio.org" \
|
||||
--add-location=file -L Lisp -j -o audacity.pot
|
||||
--add-location=file -L Lisp -j -o tenacity.pot
|
||||
if test "${AUDACITY_ONLY_POT:-}" = 'y'; then
|
||||
return 0
|
||||
fi
|
||||
@ -42,8 +42,8 @@ for i in *.po; do
|
||||
"Project-Id-Version: tenacity 3.0.4\\n"' $i > TEMP; mv TEMP $i
|
||||
done
|
||||
echo ";; Updating the .po files"
|
||||
sed 's/.*/echo "msgmerge --lang=& &.po audacity.pot -o &.po";\
|
||||
msgmerge --no-wrap --lang=& &.po audacity.pot -o &.po;/g' LINGUAS | bash
|
||||
sed 's/.*/echo "msgmerge --lang=& &.po tenacity.pot -o &.po";\
|
||||
msgmerge --no-wrap --lang=& &.po tenacity.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
|
||||
@ -51,5 +51,5 @@ done
|
||||
echo ""
|
||||
echo ";;Translation updated"
|
||||
echo ""
|
||||
head -n 11 audacity.pot | tail -n 3
|
||||
wc -l audacity.pot
|
||||
head -n 11 tenacity.pot | tail -n 3
|
||||
wc -l tenacity.pot
|
||||
|
Loading…
x
Reference in New Issue
Block a user