2 translatorlanguages.cpp - Kopete Translatorfish Translator plugin
4 Copyright (c) 2001-2002 by Duncan Mac-Vicar Prett <duncan@kde.org>
5 Copyright (c) 2002-2003 by Olivier Goffart <ogoffart@kde.org>
6 Copyright (c) 2003 by Matt Rogers <matt@matt.rogers.name>
8 Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
10 *************************************************************************
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
17 *************************************************************************
24 #include "translatorlanguages.h"
26 TranslatorLanguages::TranslatorLanguages()
30 // m_services.insert("babelfish", "BabelFish");
31 m_services
.insert("google", "Google");
33 m_langs
.insert("null", i18n("Unknown"));
34 m_langs
.insert("en", i18n("English"));
35 m_langs
.insert("zh", i18n("Chinese"));
36 m_langs
.insert("fr", i18n("French"));
37 m_langs
.insert("de", i18n("German"));
38 m_langs
.insert("it", i18n("Italian"));
39 m_langs
.insert("ja", i18n("Japanese"));
40 m_langs
.insert("ko", i18n("Korean"));
41 m_langs
.insert("pt", i18n("Portuguese"));
42 m_langs
.insert("ru", i18n("Russian"));
43 m_langs
.insert("es", i18n("Spanish"));
46 // m_supported["babelfish"].append("en_zh");
47 // m_supported["babelfish"].append("en_fr");
48 // m_supported["babelfish"].append("en_de");
49 // m_supported["babelfish"].append("en_it");
50 // m_supported["babelfish"].append("en_ja");
51 // m_supported["babelfish"].append("en_ko");
52 // m_supported["babelfish"].append("en_pt");
53 // m_supported["babelfish"].append("en_es");
55 // m_supported["babelfish"].append("zh_en");
57 // m_supported["babelfish"].append("fr_en");
58 // m_supported["babelfish"].append("fr_de");
60 // m_supported["babelfish"].append("de_en");
61 // m_supported["babelfish"].append("de_fr");
63 // m_supported["babelfish"].append("it_en");
64 // m_supported["babelfish"].append("ko_en");
65 // m_supported["babelfish"].append("pt_en");
66 // m_supported["babelfish"].append("ru_en");
67 // m_supported["babelfish"].append("es_en");
70 m_supported
["google"].append("en_de");
71 m_supported
["google"].append("en_es");
72 m_supported
["google"].append("en_fr");
73 m_supported
["google"].append("en_it");
74 m_supported
["google"].append("en_pt");
75 m_supported
["google"].append("de_en");
76 m_supported
["google"].append("de_fr");
77 m_supported
["google"].append("es_en");
78 m_supported
["google"].append("fr_en");
79 m_supported
["google"].append("fr_de");
80 m_supported
["google"].append("it_en");
81 m_supported
["google"].append("pt_en");
83 QMap
<QString
,QString
>::ConstIterator i
;
85 for ( i
= m_langs
.begin(); i
!= m_langs
.end() ; ++i
)
87 m_langIntKeyMap
[m_lc
] = i
.key();
88 m_langKeyIntMap
[i
.key()] = m_lc
;
92 for ( i
= m_services
.begin(); i
!= m_services
.end() ; ++i
)
94 m_servicesIntKeyMap
[m_sc
] = i
.key();
95 m_servicesKeyIntMap
[i
.key()] = m_sc
;