From a6f470fd1e02ca11e98dca0af2c09f8d11797808 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Sat, 6 Feb 2016 09:08:28 +0100 Subject: [PATCH] Localization support added --- include/wxex/appbar.h | 2 +- locale/sl.mo | Bin 0 -> 970 bytes locale/sl.po | 32 ++++++++++++++++++++++++++++++++ locale/wxExtend.pot | 29 +++++++++++++++++++++++++++++ src/appex.cpp | 2 +- 5 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 locale/sl.mo create mode 100644 locale/sl.po create mode 100644 locale/wxExtend.pot diff --git a/include/wxex/appbar.h b/include/wxex/appbar.h index 4c69c32..84fa473 100644 --- a/include/wxex/appbar.h +++ b/include/wxex/appbar.h @@ -978,7 +978,7 @@ void wxAppBar::OnWindowsArrange(bool WXUNUSED(beginning)) template void wxAppBar::OnAutoHideDenied() { - wxMessageBox(wxT("There is already an auto hidden bar on this edge.\nOnly one auto hidden bar is allowed on each edge.\nAuto-hide feature is now off."), wxT("Warning"), wxOK | wxICON_WARNING, this); + wxMessageBox(_("There is already an auto hidden bar on this edge.\nOnly one auto hidden bar is allowed on each edge.\nAuto-hide feature is now off."), _("Warning"), wxOK | wxICON_WARNING, this); } diff --git a/locale/sl.mo b/locale/sl.mo new file mode 100644 index 0000000000000000000000000000000000000000..ef15235c66cd6188aa3f2f24dd0266febb392748 GIT binary patch literal 970 zcmZ`%&2G~`5H^28_{f>VT#!I?jh#lNxD8NBimIk0YQxVBCiW!W#NM@bH%$}u!V7TY zbr2U`g9}Gqf^keq5oNTWW@qP{zuoEqQLK} ze9lMo4{ezw*E3412*M=$9kIjt1m`0d61r(!Pw5%x;V|&tqES+fyq?ixN}SkF#TznK zY8Aumw0-JGrGBs57rWe`<74px9mUWHqYV)@M7ROr<2Ym@sbo7blSww)09dF zQLq_ou%|Y~bF@^V%VG!uzn4!9=3-Bq!p5M=rD0mPfG_hpJ|iYj7j2Af|fO=yy=#}kW?Jtn!-6~!P`l223ez3zZtpa7!> zQy3F``$Ax`&?$|T20Jm*A(Uukf`R`E;l$$P0zJoU!ZZ#5QuzPKMjw2`^?egX3XCQ<+Z literal 0 HcmV?d00001 diff --git a/locale/sl.po b/locale/sl.po new file mode 100644 index 0000000..974245f --- /dev/null +++ b/locale/sl.po @@ -0,0 +1,32 @@ +msgid "" +msgstr "" +"Project-Id-Version: wxExtend\n" +"POT-Creation-Date: 2016-02-06 09:04+0100\n" +"PO-Revision-Date: 2016-02-06 09:07+0100\n" +"Language-Team: Amebis, d. o. o., Kamnik \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.8.6\n" +"X-Poedit-Basepath: ..\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-KeywordsList: _\n" +"Last-Translator: Simon Rozman \n" +"Language: sl\n" +"X-Poedit-SearchPath-0: src\n" +"X-Poedit-SearchPath-1: include\n" + +#: include/wxex/appbar.h:981 +msgid "" +"There is already an auto hidden bar on this edge.\n" +"Only one auto hidden bar is allowed on each edge.\n" +"Auto-hide feature is now off." +msgstr "" +"Ob tem robu je že samodejno skrita pasica.\n" +"Na vsakem robu je lahko samo ena samodejno skrita pasica.\n" +"Samodejno skrivanje je zdaj izklopljeno." + +#: include/wxex/appbar.h:981 +msgid "Warning" +msgstr "Opozorilo" diff --git a/locale/wxExtend.pot b/locale/wxExtend.pot new file mode 100644 index 0000000..6731691 --- /dev/null +++ b/locale/wxExtend.pot @@ -0,0 +1,29 @@ +msgid "" +msgstr "" +"Project-Id-Version: wxExtend\n" +"POT-Creation-Date: 2016-02-06 09:04+0100\n" +"PO-Revision-Date: 2016-02-06 09:04+0100\n" +"Last-Translator: Simon Rozman \n" +"Language-Team: Amebis, d. o. o., Kamnik \n" +"Language: en\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.8.6\n" +"X-Poedit-Basepath: ..\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-KeywordsList: _\n" +"X-Poedit-SearchPath-0: src\n" +"X-Poedit-SearchPath-1: include\n" + +#: include/wxex/appbar.h:981 +msgid "" +"There is already an auto hidden bar on this edge.\n" +"Only one auto hidden bar is allowed on each edge.\n" +"Auto-hide feature is now off." +msgstr "" + +#: include/wxex/appbar.h:981 +msgid "Warning" +msgstr "" diff --git a/src/appex.cpp b/src/appex.cpp index 9ec22d8..2ae2a27 100644 --- a/src/appex.cpp +++ b/src/appex.cpp @@ -34,7 +34,7 @@ bool wxAppEx::OnInit() sPath << wxT("\\..\\locale"); m_locale.AddCatalogLookupPathPrefix(sPath); wxVERIFY(m_locale.Init(wxLANGUAGE_SLOVENIAN)); - wxVERIFY(m_locale.AddCatalog(wxT("ZRCola"))); + wxVERIFY(m_locale.AddCatalog(wxT("wxExtend"))); } return true;