2008-02-18 12:17:34 +00:00
|
|
|
#ifndef __LANGUAGE_H
|
|
|
|
#define __LANGUAGE_H
|
2002-09-24 12:39:33 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
2008-02-18 12:17:34 +00:00
|
|
|
* Copyright (C) 2002, 2008 Daniel Stenberg
|
2002-09-24 12:39:33 +00:00
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-09-24 12:39:33 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2005-01-19 21:43:15 +00:00
|
|
|
/* Initialize language array with the builtin strings */
|
2009-10-17 06:07:50 +00:00
|
|
|
void lang_init(const unsigned char *builtin, unsigned char **dest, int count);
|
2005-01-19 21:43:15 +00:00
|
|
|
|
2002-09-24 12:39:33 +00:00
|
|
|
/* load a given language file */
|
2009-10-18 00:56:42 +00:00
|
|
|
int lang_core_load(const char *filename);
|
|
|
|
|
|
|
|
int lang_load(const char *filename, const unsigned char *builtin,
|
|
|
|
unsigned char **dest, unsigned char *buffer,
|
|
|
|
unsigned int user_num, int max_lang_size,
|
|
|
|
unsigned int max_id);
|
2008-02-18 12:17:34 +00:00
|
|
|
|
2009-09-26 00:58:32 +00:00
|
|
|
/* get the ID of an english string so it can be localised */
|
2009-10-17 06:07:50 +00:00
|
|
|
int lang_english_to_id(const char *english);
|
2009-09-26 00:58:32 +00:00
|
|
|
|
2009-10-05 11:43:38 +00:00
|
|
|
/* returns whether the loaded language is a right-to-left language */
|
|
|
|
int lang_is_rtl(void);
|
2008-02-18 12:17:34 +00:00
|
|
|
#endif
|