3 /***************************************************************************
5 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
6 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
7 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
8 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
12 * Copyright (C) 2002, 2008 Daniel Stenberg
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 * KIND, either express or implied.
22 ****************************************************************************/
24 /* Initialize language array with the builtin strings */
25 void lang_init(const unsigned char *builtin
, unsigned char **dest
, int count
);
27 /* load a given language file */
28 int lang_core_load(const char *filename
);
30 int lang_load(const char *filename
, const unsigned char *builtin
,
31 unsigned char **dest
, unsigned char *buffer
,
32 unsigned int user_num
, int max_lang_size
,
35 /* get the ID of an english string so it can be localised */
36 int lang_english_to_id(const char *english
);
38 /* returns whether the loaded language is a right-to-left language */
39 int lang_is_rtl(void);