summaryrefslogtreecommitdiff
path: root/shared/localization.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:01:29 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:01:29 +0200
commit9a2a524f1e311853d08050be2dcdddc09ac7759a (patch)
treed8e4a24169fce88c2d89931d58514889a0bcb0ea /shared/localization.cpp
parent2.3 (diff)
downloadFreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.tar.gz
FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.tar.bz2
FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.zip
3.0
Diffstat (limited to 'shared/localization.cpp')
-rw-r--r--shared/localization.cpp27
1 files changed, 21 insertions, 6 deletions
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 <wx/msgdlg.h>
#include "../shared/standardPaths.h"
+#include "../shared/stringConv.h"
#include "systemConstants.h"
#include <fstream>
#include <map>
@@ -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;
bgstack15