From 9a2a524f1e311853d08050be2dcdddc09ac7759a Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:01:29 +0200 Subject: 3.0 --- shared/localization.cpp | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'shared/localization.cpp') diff --git a/shared/localization.cpp b/shared/localization.cpp index 20bf6d2e..ff14c980 100644 --- a/shared/localization.cpp +++ b/shared/localization.cpp @@ -1,6 +1,7 @@ #include "localization.h" #include #include "../shared/standardPaths.h" +#include "../shared/stringConv.h" #include "systemConstants.h" #include #include @@ -112,6 +113,13 @@ LocalizationInfo::LocalizationInfo() newEntry.languageFlag = wxT("brazil.png"); locMapping.push_back(newEntry); + newEntry.languageID = wxLANGUAGE_ROMANIAN; + newEntry.languageName = wxT("Română"); + newEntry.languageFile = wxT("romanian.lng"); + newEntry.translatorName = wxT("Alexandru Bogdan Munteanu"); + newEntry.languageFlag = wxT("romania.png"); + locMapping.push_back(newEntry); + newEntry.languageID = wxLANGUAGE_SLOVENIAN; newEntry.languageName = wxT("Slovenščina"); newEntry.languageFile = wxT("slovenian.lng"); @@ -119,6 +127,13 @@ LocalizationInfo::LocalizationInfo() newEntry.languageFlag = wxT("slovakia.png"); locMapping.push_back(newEntry); + newEntry.languageID = wxLANGUAGE_TURKISH; + newEntry.languageName = wxT("Türkçe"); + newEntry.languageFile = wxT("turkish.lng"); + newEntry.translatorName = wxT("H.Barbaros BIÇAKCI"); + newEntry.languageFlag = wxT("turkey.png"); + locMapping.push_back(newEntry); + newEntry.languageID = wxLANGUAGE_JAPANESE; newEntry.languageName = wxT("日本語"); newEntry.languageFile = wxT("japanese.lng"); @@ -236,9 +251,9 @@ CustomLocale& CustomLocale::getInstance() CustomLocale::CustomLocale() : - wxLocale(wxLANGUAGE_DEFAULT), //setting a different language needn't be supported on all systems! - translationDB(new Translation), - currentLanguage(wxLANGUAGE_ENGLISH) {} + wxLocale(wxLANGUAGE_DEFAULT), //setting a different language needn't be supported on all systems! + translationDB(new Translation), + currentLanguage(wxLANGUAGE_ENGLISH) {} inline @@ -290,7 +305,7 @@ class UnicodeFileReader { public: UnicodeFileReader(const wxString& filename) : - inputFile(NULL) + inputFile(NULL) { //workaround to get a FILE* from a unicode filename wxFFile dummyFile(filename, wxT("rb")); @@ -363,8 +378,8 @@ void CustomLocale::setLanguage(const int language) translationDB->clear(); if (!languageFile.empty()) { - UnicodeFileReader langFile(FreeFileSync::getInstallationDir() + globalFunctions::FILE_NAME_SEPARATOR + - wxT("Languages") + globalFunctions::FILE_NAME_SEPARATOR + languageFile); + UnicodeFileReader langFile(FreeFileSync::getInstallationDir() + zToWx(globalFunctions::FILE_NAME_SEPARATOR) + + wxT("Languages") + zToWx(globalFunctions::FILE_NAME_SEPARATOR) + languageFile); if (langFile.isOkay()) { int rowNumber = 0; -- cgit