/*****************************************************************************/ /* Klavaro - a flexible touch typing tutor */ /* Copyright (C) 2005, 2006, 2007, 2008 Felipe Castro */ /* Copyright (C) 2009 Free Software Foundation */ /* */ /* This program is free software, licensed under the terms of the GNU */ /* General Public License as published by the Free Software Foundation, */ /* either version 3 of the License, or (at your option) any later version. */ /* You should have received a copy of the GNU General Public License */ /* along with this program. If not, see . */ /*****************************************************************************/ /* * This file contains the set of languages configured for * internationalization. * The letters in parenthesis must agree with LL_CC, * where LL is the language code * and CC is the country code. * The only one exception is for the generic (and poor) * English, which uses the 'C' code. * Keep the alphabetic order, because it is put * in the interface as done here. */ #define LANG_SET \ "العربية (ar) [qwerty_ar] \n" \ " বাংলা (bn) [qwerty_us]\n" \ "Bokmål (nb) [qwerty_nb]\n" \ "Čeština (cs) [qwertz_cz]\n" \ "Dansk (da) [qwerty_dk]\n" \ "Deutsch (de) [qwertz_de]\n" \ "English (C) [qwerty_us]\n" \ "English UK (en_GB) [qwerty_uk]\n" \ "Esperanto (eo) [dvorak_eo_eurokeys]\n" \ "Español; Castellano (es) [qwerty_es]\n" \ "Français (fr) [azerty_fr]\n" \ "Galego (gl) [qwerty_es]\n" \ "Magyar (hu) [qwertz_hu]\n" \ "Nederlands (nl) [qwerty_us]\n" \ "Polski (pl) [qwertz_pl]\n" \ "Português (pt_BR) [qwerty_br_abnt2]\n" \ "Русский (ru) [jtsuken_ru]\n" \ "Svenska (sv) [qwerty_se]\n" \ "Valencià (qcv) [qwerty_es]\n"\ "اردو (ur) [qwerty_pk_crulp]\n" \ "Tiếng Việt (vi) [qwerty_us]" #define LANG_NAME_MAX_LEN 60 #define KBD_NAME_MAX_LEN 20 typedef struct { gchar *name; gchar *code; gchar cd[3]; gchar *kbd; } Lang_Name_Code; void trans_init_lang_name_code (void); const gchar * trans_code_to_country (gchar *code); gchar * trans_get_default_keyboard (void); gchar * trans_get_code (gint i); gboolean trans_lang_is_available (gchar * test); gboolean trans_lang_has_stopmark (void); FILE *trans_lang_get_similar_file (const gchar * file_end); gchar * trans_lang_get_similar_file_name (const gchar * file_end); void trans_init_language_env (void); void trans_set_combo_language (void); gchar *trans_get_current_language (void); void trans_change_language (gchar *language); gchar *trans_read_text (const gchar *);