summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-16 19:04:43 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-16 19:04:43 +0300
commit92311f100efe888df9f8101d22ba9f2d7b483074 (patch)
treef59dcc185fd6e952b52607c164575a4c37052865 /src/client.cpp
parentb1f8a2eaab592b59b5946bdbe38f0d8f775cc434 (diff)
downloadplus-92311f100efe888df9f8101d22ba9f2d7b483074.tar.gz
plus-92311f100efe888df9f8101d22ba9f2d7b483074.tar.bz2
plus-92311f100efe888df9f8101d22ba9f2d7b483074.tar.xz
plus-92311f100efe888df9f8101d22ba9f2d7b483074.zip
Enable japanese language in gettext.
Add ability to use japanese font if current locale is japan locale.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index cc3c384f7..0e871ed91 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1802,6 +1802,7 @@ void Client::storeSafeParameters()
std::string particleFont;
std::string helpFont;
std::string secureFont;
+ std::string japanFont;
bool showBackground;
bool enableMumble;
bool enableMapReduce;
@@ -1829,6 +1830,7 @@ void Client::storeSafeParameters()
particleFont = config.getStringValue("particleFont");
helpFont = config.getStringValue("helpFont");
secureFont = config.getStringValue("secureFont");
+ japanFont = config.getStringValue("japanFont");
showBackground = config.getBoolValue("showBackground");
enableMumble = config.getBoolValue("enableMumble");
@@ -1847,6 +1849,7 @@ void Client::storeSafeParameters()
config.setValue("particleFont", "fonts/dejavusans.ttf");
config.setValue("helpFont", "fonts/dejavusansmono.ttf");
config.setValue("secureFont", "fonts/dejavusansmono.ttf");
+ config.setValue("japanFont", "fonts/mplus-1p-regular.ttf");
config.setValue("showBackground", false);
config.setValue("enableMumble", false);
config.setValue("enableMapReduce", false);
@@ -1872,6 +1875,7 @@ void Client::storeSafeParameters()
config.setValue("particleFont", particleFont);
config.setValue("helpFont", helpFont);
config.setValue("secureFont", secureFont);
+ config.setValue("japanFont", japanFont);
config.setValue("showBackground", showBackground);
config.setValue("enableMumble", enableMumble);
config.setValue("enableMapReduce", enableMapReduce);