Commit b8c8a047 authored by Petr Prikryl's avatar Petr Prikryl

TranslatorJapaneseEn and TranslatorKoreanEn converted to UTF-8

Actually, the translator_je.h and translator_ke.h use only ASCII
characters. The idLanguageCharset() just returns "utf-8" now.
The TranslatorDecoder not used for the translator classes.
parent 07e98818
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "language.h" #include "language.h"
#include "lang_cfg.h" #include "lang_cfg.h"
#include "translator.h" #include "translator.h"
#include "translatordecoder.h"
#include "translator_en.h" #include "translator_en.h"
#if !defined(ENGLISH_ONLY) #if !defined(ENGLISH_ONLY)
#include "translator_adapter.h" #include "translator_adapter.h"
...@@ -231,7 +230,7 @@ bool setTranslator(const char *langName) ...@@ -231,7 +230,7 @@ bool setTranslator(const char *langName)
#ifdef LANG_JE #ifdef LANG_JE
else if (L_EQUAL("japanese-en")) else if (L_EQUAL("japanese-en"))
{ {
theTranslator=new TranslatorDecoder(new TranslatorJapaneseEn); theTranslator=new TranslatorJapaneseEn;
} }
#endif #endif
#ifdef LANG_ES #ifdef LANG_ES
...@@ -285,7 +284,7 @@ bool setTranslator(const char *langName) ...@@ -285,7 +284,7 @@ bool setTranslator(const char *langName)
#ifdef LANG_KE #ifdef LANG_KE
else if (L_EQUAL("korean-en")) else if (L_EQUAL("korean-en"))
{ {
theTranslator=new TranslatorDecoder(new TranslatorKoreanEn); theTranslator=new TranslatorKoreanEn;
} }
#endif #endif
#ifdef LANG_RO #ifdef LANG_RO
......
...@@ -41,14 +41,7 @@ class TranslatorJapaneseEn : public TranslatorEnglish ...@@ -41,14 +41,7 @@ class TranslatorJapaneseEn : public TranslatorEnglish
/*! returns the name of the package that is included by LaTeX */ /*! returns the name of the package that is included by LaTeX */
virtual QCString idLanguageCharset() virtual QCString idLanguageCharset()
{ {
//if (Config_getBool("USE_WINDOWS_ENCODING")) return "utf-8";
//{
// return "Shift_JIS";
//}
//else
//{
return "euc-jp";
//}
} }
virtual QCString trRTFansicp() virtual QCString trRTFansicp()
{ {
......
...@@ -40,7 +40,7 @@ class TranslatorKoreanEn : public TranslatorEnglish ...@@ -40,7 +40,7 @@ class TranslatorKoreanEn : public TranslatorEnglish
/*! returns the name of the package that is included by LaTeX */ /*! returns the name of the package that is included by LaTeX */
virtual QCString idLanguageCharset() virtual QCString idLanguageCharset()
{ {
return "euc-kr"; return "utf-8";
} }
virtual QCString trRTFansicp() virtual QCString trRTFansicp()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment