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 @@
#include "language.h"
#include "lang_cfg.h"
#include "translator.h"
#include "translatordecoder.h"
#include "translator_en.h"
#if !defined(ENGLISH_ONLY)
#include "translator_adapter.h"
......@@ -231,7 +230,7 @@ bool setTranslator(const char *langName)
#ifdef LANG_JE
else if (L_EQUAL("japanese-en"))
{
theTranslator=new TranslatorDecoder(new TranslatorJapaneseEn);
theTranslator=new TranslatorJapaneseEn;
}
#endif
#ifdef LANG_ES
......@@ -285,7 +284,7 @@ bool setTranslator(const char *langName)
#ifdef LANG_KE
else if (L_EQUAL("korean-en"))
{
theTranslator=new TranslatorDecoder(new TranslatorKoreanEn);
theTranslator=new TranslatorKoreanEn;
}
#endif
#ifdef LANG_RO
......
......@@ -41,14 +41,7 @@ class TranslatorJapaneseEn : public TranslatorEnglish
/*! returns the name of the package that is included by LaTeX */
virtual QCString idLanguageCharset()
{
//if (Config_getBool("USE_WINDOWS_ENCODING"))
//{
// return "Shift_JIS";
//}
//else
//{
return "euc-jp";
//}
return "utf-8";
}
virtual QCString trRTFansicp()
{
......
......@@ -40,7 +40,7 @@ class TranslatorKoreanEn : public TranslatorEnglish
/*! returns the name of the package that is included by LaTeX */
virtual QCString idLanguageCharset()
{
return "euc-kr";
return "utf-8";
}
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