gui
[lbook_fbreader.git] / fbreader / moto / util / language_detector.cpp
bloba68383176796e92ea0ba04749fc31a4820062b59
1 #include <iostream>
2 #include <string>
4 #include <zlanguage.h>
6 int main() {
7 std::string language = (const char*)ZLanguage::getSystemLanguageCode().utf8();
8 language.erase(2);
9 if (language.length() != 2) {
10 language = "en";
12 std::cout << language;
13 return 0;