Localization support added

This commit is contained in:
Simon Rozman 2016-02-06 09:08:28 +01:00
parent a9f59160fa
commit a6f470fd1e
5 changed files with 63 additions and 2 deletions

View File

@ -978,7 +978,7 @@ void wxAppBar<W>::OnWindowsArrange(bool WXUNUSED(beginning))
template <class W>
void wxAppBar<W>::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);
}

BIN
locale/sl.mo Normal file

Binary file not shown.

32
locale/sl.po Normal file
View File

@ -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 <info@amebis.si>\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 <simon.rozman@amebis.si>\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"

29
locale/wxExtend.pot Normal file
View File

@ -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 <simon.rozman@amebis.si>\n"
"Language-Team: Amebis, d. o. o., Kamnik <info@amebis.si>\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 ""

View File

@ -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;