From 6b539ea7a96c95981d7c0e11daf590a6112ef88c Mon Sep 17 00:00:00 2001 From: arbinada Date: Thu, 28 Jun 2012 18:15:16 +0000 Subject: [PATCH] Linux scripts git-svn-id: https://svn.code.sf.net/p/gettextnet/code@15 cfd95cc2-f724-4227-9a96-9a83de4730d4 --- GNU.Gettext/Examples.Hello/Examples.Hello.csproj | 1 - .../Examples.Hello/po-compile-translations.cmd | 2 +- GNU.Gettext/Examples.Hello/po-make-template.sh | 3 +++ GNU.Gettext/Examples.Hello/po/Messages.pot | 11 ++++++++++- GNU.Gettext/Examples.HelloForms/po-make-template.sh | 3 +++ GNU.Gettext/Examples.HelloForms/po/Messages.pot | 8 +++++++- build-all.sh | 4 ++++ create-package.sh | 6 +++--- 8 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 GNU.Gettext/Examples.Hello/po-make-template.sh create mode 100644 GNU.Gettext/Examples.HelloForms/po-make-template.sh create mode 100644 build-all.sh diff --git a/GNU.Gettext/Examples.Hello/Examples.Hello.csproj b/GNU.Gettext/Examples.Hello/Examples.Hello.csproj index b2cb72f..66190dc 100644 --- a/GNU.Gettext/Examples.Hello/Examples.Hello.csproj +++ b/GNU.Gettext/Examples.Hello/Examples.Hello.csproj @@ -35,7 +35,6 @@ DEBUG;TRACE prompt 4 - false true diff --git a/GNU.Gettext/Examples.Hello/po-compile-translations.cmd b/GNU.Gettext/Examples.Hello/po-compile-translations.cmd index 110d69f..ebeebac 100644 --- a/GNU.Gettext/Examples.Hello/po-compile-translations.cmd +++ b/GNU.Gettext/Examples.Hello/po-compile-translations.cmd @@ -9,7 +9,7 @@ cd "%~dp0" for /F %%l in (.\po\locales.lst) do ( if exist "%~dp0.\po\%%l.po" ( echo.Compiling satellite assembly. Locale "%%l" - "%~dp0..\..\Bin\Debug\GNU.Gettext.Msgfmt.exe" -i.\po\%%l.po -l%%l -d.\Bin\Debug -bExamples.Hello.Messages -ccsc -L"%~dp0..\..\Bin\Debug" -v --debug + "%~dp0..\..\Bin\Debug\GNU.Gettext.Msgfmt.exe" -i.\po\%%l.po -l%%l -d.\Bin\Debug -bExamples.Hello.Messages -ccsc -L"%~dp0..\..\Bin\Debug" -v if errorlevel 1 exit /b 1 ) ) diff --git a/GNU.Gettext/Examples.Hello/po-make-template.sh b/GNU.Gettext/Examples.Hello/po-make-template.sh new file mode 100644 index 0000000..4527a2a --- /dev/null +++ b/GNU.Gettext/Examples.Hello/po-make-template.sh @@ -0,0 +1,3 @@ +#!bin/sh +## Extract messages to PO template file +mono ./../../Bin/Debug/GNU.Gettext.Xgettext.exe -d"./" -r -o"./po/Messages.pot" \ No newline at end of file diff --git a/GNU.Gettext/Examples.Hello/po/Messages.pot b/GNU.Gettext/Examples.Hello/po/Messages.pot index c78aee7..5a089dd 100644 --- a/GNU.Gettext/Examples.Hello/po/Messages.pot +++ b/GNU.Gettext/Examples.Hello/po/Messages.pot @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2012-06-28 14:26:54+0200\n" -"PO-Revision-Date: 2012-06-28 14:27:42+0200\n" +"PO-Revision-Date: 2012-06-28 20:13:39+0200\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -12,26 +12,33 @@ msgstr "" #: Program.cs:32 +#: Program.cs:33 msgid "Hello, world!" msgstr "" #: Program.cs:47 +#: Program.cs:48 msgid "Text encoding" msgstr "" #: Program.cs:49 +#: Program.cs:50 msgid "" "Here is an example of how one might continue a very long string\n" "for the common case the string represents multi-line output.\n" msgstr "" #: Program.cs:33 +#: Program.cs:34 msgid "This program is running as process number \"{0}\"." msgstr "" #: Program.cs:36 #: Program.cs:39 #: Program.cs:42 +#: Program.cs:37 +#: Program.cs:40 +#: Program.cs:43 msgid "found {0} similar word" msgid_plural "found {0} similar words" msgstr[0] "" @@ -39,12 +46,14 @@ msgstr[1] "" #. Context: Computers #: Program.cs:45 +#: Program.cs:46 msgctxt "Computers" msgid "Text encoding" msgstr "" #. Context: Military #: Program.cs:46 +#: Program.cs:47 msgctxt "Military" msgid "Text encoding" msgstr "" diff --git a/GNU.Gettext/Examples.HelloForms/po-make-template.sh b/GNU.Gettext/Examples.HelloForms/po-make-template.sh new file mode 100644 index 0000000..4527a2a --- /dev/null +++ b/GNU.Gettext/Examples.HelloForms/po-make-template.sh @@ -0,0 +1,3 @@ +#!bin/sh +## Extract messages to PO template file +mono ./../../Bin/Debug/GNU.Gettext.Xgettext.exe -d"./" -r -o"./po/Messages.pot" \ No newline at end of file diff --git a/GNU.Gettext/Examples.HelloForms/po/Messages.pot b/GNU.Gettext/Examples.HelloForms/po/Messages.pot index b712e3a..b2f2075 100644 --- a/GNU.Gettext/Examples.HelloForms/po/Messages.pot +++ b/GNU.Gettext/Examples.HelloForms/po/Messages.pot @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2012-06-28 14:56:59+0200\n" -"PO-Revision-Date: 2012-06-28 14:56:59+0200\n" +"PO-Revision-Date: 2012-06-28 19:52:47+0200\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -13,22 +13,28 @@ msgstr "" #: Form1.cs:79 #: Form1.cs:107 +#: Form1.cs:84 +#: Form1.cs:112 msgid "Hello, world!" msgstr "" #: Form1.cs:84 +#: Form1.cs:89 msgid "en-US" msgstr "" #: Form1.cs:91 +#: Form1.cs:96 msgid "fr-FR" msgstr "" #: Form1.cs:98 +#: Form1.cs:103 msgid "ru-RU" msgstr "" #: Form1.cs:161 +#: Form1.cs:166 msgid "" "Here is an example of how one might continue a very long string\n" "for the common case the string represents multi-line output.\n" diff --git a/build-all.sh b/build-all.sh new file mode 100644 index 0000000..6f536db --- /dev/null +++ b/build-all.sh @@ -0,0 +1,4 @@ +#!bin/sh +common_build_options=/target:Build /verbosity:quiet +xbuild "./GNU.Gettext/GNU.Gettext.sln" $common_build_options /property:configuration=Release +xbuild "./GNU.Gettext/GNU.Gettext.sln" $common_build_options /property:configuration=Debug diff --git a/create-package.sh b/create-package.sh index f09cf57..2656d6e 100644 --- a/create-package.sh +++ b/create-package.sh @@ -1,10 +1,10 @@ #!bin/sh +sh ./build-all.sh + version=1.1 -common_build_options=/target:Build /verbosity:quiet product_name=GettextNet release_dir=GettextNet -xbuild "./GNU.Gettext/GNU.Gettext.sln" $common_build_options /property:configuration=Release -xbuild "./GNU.Gettext/GNU.Gettext.sln" $common_build_options /property:configuration=Debug + rm -f -r ./$release_dir mkdir $release_dir mkdir ./$release_dir/Bin