A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 42 lines 1.8 kB view raw
1#ifndef __LANGUAGE_H 2#define __LANGUAGE_H 3/*************************************************************************** 4 * __________ __ ___. 5 * Open \______ \ ____ ____ | | _\_ |__ _______ ___ 6 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 7 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 8 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 9 * \/ \/ \/ \/ \/ 10 * $Id$ 11 * 12 * Copyright (C) 2002, 2008 Daniel Stenberg 13 * 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. 18 * 19 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 20 * KIND, either express or implied. 21 * 22 ****************************************************************************/ 23 24/* Initialize language array with the builtin strings */ 25void lang_init(const unsigned char *builtin, unsigned char **dest, int count); 26 27/* load a given language file */ 28int lang_core_load(const char *filename); 29 30int 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, 33 unsigned int max_id); 34 35/* get the ID of an english string so it can be localised */ 36int lang_english_to_id(const char *english); 37 38/* returns whether the loaded language is a right-to-left language */ 39int lang_is_rtl(void); 40/* returns whether the loaded language needs units spoken before the value */ 41int lang_units_first(void); 42#endif