"Fossies" - the Fresh Open Source Software Archive

Member "klavaro-3.13/src/translation.h" (18 Apr 2021, 3891 Bytes) of package /linux/privat/klavaro-3.13.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "translation.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 3.12_vs_3.13.

    1 /**************************************************************************/
    2 /*  Klavaro - a flexible touch typing tutor                               */
    3 /*  Copyright (C) 2005-2021 Felipe Emmanuel Ferreira de Castro            */
    4 /*                                                                        */
    5 /*  This file is part of Klavaro, which is a free software: you can       */
    6 /*  redistribute it and/or modify it under the terms of the GNU General   */
    7 /*  Public License as published by the Free Software Foundation, either   */
    8 /*  version 3 of the License, or (at your option) any later version.      */
    9 /*                                                                        */
   10 /*  Klavaro is distributed in the hope that it will be useful,            */
   11 /*  but WITHOUT ANY WARRANTY; without even the implied warranty of        */
   12 /*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         */
   13 /*  GNU General Public License for more details (in the file COPYING).    */
   14 /*  You should have received a copy of the GNU General Public License     */
   15 /*  along with Klavaro.  If not, see <https://www.gnu.org/licenses/>      */
   16 /**************************************************************************/
   17 
   18 /*
   19  * This definition contains the set of languages configured for
   20  * localization.
   21  * The letters in parenthesis must agree with LL_CC,
   22  * where LL is the language code
   23  * and CC is the country code.
   24  * The only exception is for the generic
   25  * English, which uses the 'C' code.
   26  * Keep the alphabetic order, because it is put
   27  * in the interface as done here.
   28  */
   29 
   30 #define LANG_SET \
   31 "العربية (ar) [qwerty_ar]\n" \
   32 "български език (bg) [dvorak_bg]\n" \
   33 " বাংলা (bn) [qwerty_us]\n" \
   34 "བོད་ཡིག (bo) [qwerty_bo]\n" \
   35 "Català (ca) [qwerty_es]\n" \
   36 "Čeština (cs) [qwertz_cz]\n" \
   37 "Dansk (da) [qwerty_dk]\n" \
   38 "Deutsch (de) [qwertz_de]\n" \
   39 "ελληνικά (el) [qwerty_gr]\n" \
   40 "English (C) [qwerty_us]\n" \
   41 "English UK (en_GB) [qwerty_uk]\n" \
   42 "Esperanto (eo) [dvorak_eo_eurokeys]\n" \
   43 "Español (es) [qwerty_es]\n" \
   44 "Euskara (eu) [qwerty_es]\n" \
   45 "Français (fr) [azerty_fr]\n" \
   46 "Galego (gl) [qwerty_es]\n" \
   47 "Hrvatski (hr) [qwertz_hr]\n" \
   48 "Bahasa Indonesia (id) [qwerty_us]\n" \
   49 "Italiano (it) [qwerty_it]\n" \
   50 "Қазақ (kk) [jtsuken_kk]\n" \
   51 "한국어 (ko) [dubeolsik_kr]\n" \
   52 "Кыргызча (ky) [jtsuken_ru]\n" \
   53 "Magyar (hu) [qwertz_hu]\n" \
   54 "Bokmål (nb) [qwerty_no]\n" \
   55 "Nederlands (nl) [qwerty_us]\n" \
   56 "ਪੰਜਾਬੀ (pa) [gumurkhi_in_jehlum]\n" \
   57 "Polski (pl) [qwerty_pl_us]\n" \
   58 "Português BR (pt_BR) [qwerty_br_abnt2]\n" \
   59 "Português PT (pt_PT) [qwerty_pt]\n" \
   60 "Русский (ru) [jtsuken_ru]\n" \
   61 "Suomen kieli (fi) [qwerty_se]\n"\
   62 "Slovenščina (sl) [qwertz_si]\n" \
   63 "Српски (sr) [qwertz_rs]\n" \
   64 "Svenska (sv) [qwerty_se]\n" \
   65 "Türkçe (tr) [qwerty_tr]\n" \
   66 "తెలుగు (te) [qwerty_us]\n" \
   67 "Українська (uk) [jtsuken_ua]\n" \
   68 "اردو (ur) [qwerty_pk_crulp]\n" \
   69 "Tiếng Việt (vi) [qwerty_us]\n" \
   70 "Wolof (wo) [azerty_fr]\n" \
   71 "简体字 (zh_CN) [qwerty_cn_us]"
   72 
   73 #define LANG_NAME_MAX_LEN 60
   74 #define KBD_NAME_MAX_LEN 20
   75 typedef struct
   76 {
   77     gchar *name;
   78     gchar *code;
   79     gchar cd[3];
   80     gchar *kbd;
   81 } Lang_Name_Code;
   82 
   83 void trans_init_lang_name_code (void);
   84 
   85 const gchar * trans_code_to_country (gchar *code);
   86 
   87 gchar * trans_get_default_keyboard (void);
   88 
   89 gchar * trans_get_code (gint i);
   90 
   91 gboolean trans_lang_is_available (gchar * test);
   92 
   93 gboolean trans_lang_has_stopmark (void);
   94 
   95 gboolean trans_is_tibetan (void);
   96 
   97 FILE *trans_lang_get_similar_file (const gchar * file_end);
   98 
   99 gchar * trans_lang_get_similar_file_name (const gchar * file_end);
  100 
  101 void trans_init_language_env (void);
  102 
  103 void trans_set_combo_language (void);
  104 
  105 gchar *trans_get_current_language (void);
  106 
  107 void trans_change_language (gchar *language);
  108 
  109 gchar *trans_read_text (const gchar *);