2 * Copyright (C) 2012 Andreas Steffen
3 * HSR Hochschule fuer Technik Rapperswil
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 * @defgroup imv_lang_string_t imv_lang_string
19 * @{ @ingroup imv_lang_string
22 #ifndef IMV_LANG_STRING_H_
23 #define IMV_LANG_STRING_H_
26 #include <collections/enumerator.h>
28 typedef struct imv_lang_string_t imv_lang_string_t
;
31 * Define a language string entry
33 struct imv_lang_string_t
{
41 * UTF-8 string in the corresponding language
48 * Select the preferred language
50 * @param language_enumerator enumerator over user preferred languages
51 * @param languages string array of available languages
52 * @param lang_count number of available languages
53 * @return selected language as a language code
55 char* imv_lang_string_select_lang(enumerator_t
*language_enumerator
,
56 char* languages
[], int lang_count
);
59 * Select the preferred language string
61 * @param lang_string multi-lingual array of strings
62 * @param lang language code of preferred language
63 * @return selected string
65 char* imv_lang_string_select_string(imv_lang_string_t lang_string
[], char *lang
);
67 #endif /** IMV_LANG_STRING_H_ @}*/