From efc1746db150c600ca79885492b38b2a4b546dc9 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 8 Feb 2016 12:02:24 +0100 Subject: [PATCH] Support for PO files compilation added --- .gitignore | 1 + ZRCola/ZRCola.props | 3 ++ ZRCola/ZRCola.vcxproj | 4 ++ ZRCola/ZRCola.vcxproj.filters | 9 ++++ include/common.props | 7 ++- include/xgettext.props | 45 ++++++++++++++++++ include/xgettext.targets | 65 ++++++++++++++++++++++++++ include/xgettext.xml | 83 ++++++++++++++++++++++++++++++++++ lib/wxExtend | 2 +- output/locale/sl/ZRCola.mo | Bin 1156 -> 0 bytes 10 files changed, 217 insertions(+), 2 deletions(-) create mode 100644 include/xgettext.props create mode 100644 include/xgettext.targets create mode 100644 include/xgettext.xml delete mode 100644 output/locale/sl/ZRCola.mo diff --git a/.gitignore b/.gitignore index 7fc867f..40c976b 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ temp /*.opensdf /ZRCola/locale/*.mo +/output/locale/sl/ZRCola.mo diff --git a/ZRCola/ZRCola.props b/ZRCola/ZRCola.props index a4c723a..d65a46e 100644 --- a/ZRCola/ZRCola.props +++ b/ZRCola/ZRCola.props @@ -6,6 +6,9 @@ ..\output\$(Platform).$(Configuration)\ + + ..\output\locale\%(Filename)\$(ProjectName).mo + ..\lib\wxExtend\include diff --git a/ZRCola/ZRCola.vcxproj b/ZRCola/ZRCola.vcxproj index 4080feb..db2e1ed 100644 --- a/ZRCola/ZRCola.vcxproj +++ b/ZRCola/ZRCola.vcxproj @@ -102,7 +102,11 @@ + + + + \ No newline at end of file diff --git a/ZRCola/ZRCola.vcxproj.filters b/ZRCola/ZRCola.vcxproj.filters index ee75585..bf0a0e3 100644 --- a/ZRCola/ZRCola.vcxproj.filters +++ b/ZRCola/ZRCola.vcxproj.filters @@ -13,6 +13,10 @@ {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + {e43059ae-37ac-4b28-84fb-18d1b3972b30} + po;pot + @@ -55,4 +59,9 @@ Resource Files + + + Resource Files\Localization + + \ No newline at end of file diff --git a/include/common.props b/include/common.props index 6cb1062..764d021 100644 --- a/include/common.props +++ b/include/common.props @@ -18,7 +18,9 @@ along with ZRCola. If not, see . --> - + + + temp\$(ProjectName).$(Platform).$(Configuration).$(PlatformToolset)\ @@ -45,6 +47,9 @@ WINVER=0x0501;_WIN32_WINNT=0x0501;%(PreprocessorDefinitions) + + Amperstand + \ No newline at end of file diff --git a/include/xgettext.props b/include/xgettext.props new file mode 100644 index 0000000..3ab4ae0 --- /dev/null +++ b/include/xgettext.props @@ -0,0 +1,45 @@ + + + + + Midl + CustomBuild + + + _SelectedFiles;$(POCompilationDependsOn) + + + + MO + false + false + false + false + false + None + $(OutDir)%(Filename).mo + false + 1 + LSB + + msgfmt.exe [AllOptions] [AdditionalOptions] [Inputs] + + + \ No newline at end of file diff --git a/include/xgettext.targets b/include/xgettext.targets new file mode 100644 index 0000000..138a382 --- /dev/null +++ b/include/xgettext.targets @@ -0,0 +1,65 @@ + + + + + + + POCompile + + + + $(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml + + + + + + + + + + + + + POCompilationClean;$(CleanDependsOn); + + \ No newline at end of file diff --git a/include/xgettext.xml b/include/xgettext.xml new file mode 100644 index 0000000..aa3779b --- /dev/null +++ b/include/xgettext.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/wxExtend b/lib/wxExtend index c86e4f5..62c74b5 160000 --- a/lib/wxExtend +++ b/lib/wxExtend @@ -1 +1 @@ -Subproject commit c86e4f51b5c99f51abca368270084672466fcb42 +Subproject commit 62c74b569466bd74da766c761be96a1e017c025e diff --git a/output/locale/sl/ZRCola.mo b/output/locale/sl/ZRCola.mo deleted file mode 100644 index 67009332345eb00660917e3c3cf027e4fbd14250..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1156 zcmaJ=-A)rh6dn~(YD`eCj9eTN1r6-7TL`HOMX`bqKpLoGxFOT-w4HW$W-~J_(C`Xe z8Q;RkAYS_fMiUcnd;sHx@ysqz5`QN1<(qHLIdjh0o_@ML@Q&abLX03n#7)F|gk7Hz zR}o(j!-#LE`UmnY#4p4R#PB6T?jesL=aCD@+2;6gg^)YQACa#ie?_+W zz9ZXrej?vR9vmQK0U40*Bkv*O6X~+`*w{hD_4I}iOhGU-UFe!Fn~#hw^N5kL6&6L( zb={$oQPIRodXbRDs_Ym@ZLlL%6p}yB`}Q8{O2)8%u*1U!GkVneC7_Msq5--o_XTi) znwpM=DpgRI3QUu0h?(dBH!LO7|LeC-wQ(wn3LQ}+ zRRG&OmIAh9FQx+KwN<^j{Vsji%ax=sOkh!m33g}LftgAo%EcVinpA0KimximPNDB- zi?1`~EQy*7@#hGjP~|4~#(BX6Q(0GK$wF?xcMI+;S~BT8qnahuGy`zmscfHp=cuD- zi|TON?n|pgX~y*C?4QvE*5=w0v@1CCi5u$zMO`mqchVCn(}Cxel*vwU|V)n zjg_*-0?0Z$uWyYV;$Vb&oof@o-i0tmRjpaZ(j5S8&s&sKB(#`~ikZ5Y9plgcOyoDKu0N^(