![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/l10n.h"
#include "common/file_location.h"
#include "control/conf.h"
#include <libintl.h>
#include <locale.h>
#include <gtk/gtk.h>
#include <json-glib/json-glib.h>
Functions | |
static gchar * | _dt_full_locale_name (const char *locale) |
static void | set_locale (const char *ui_lang, const char *old_env) |
static gint | sort_languages (gconstpointer a, gconstpointer b) |
static void | get_language_names (GList *languages) |
dt_l10n_t * | dt_l10n_init (gboolean init_list) |
const char * | dt_l10n_get_name (const dt_l10n_language_t *language) |
const char * | dt_l10n_get_current_lang (dt_l10n_t *l10n) |
|
static |
const char * dt_l10n_get_current_lang | ( | dt_l10n_t * | l10n | ) |
References dt_l10n_t::languages, and dt_l10n_t::selected.
Referenced by dt_gui_gtk_init().
const char * dt_l10n_get_name | ( | const dt_l10n_language_t * | language | ) |
References dt_l10n_language_t::code, and dt_l10n_language_t::name.
Referenced by init_tab_general(), and sort_languages().
dt_l10n_t * dt_l10n_init | ( | gboolean | init_list | ) |
References dt_l10n_language_t::base_code, dt_l10n_language_t::code, dt_conf_get_string(), dt_loc_get_localedir(), dtwin_get_locale(), get_language_names(), GETTEXT_PACKAGE, dt_l10n_language_t::is_default, dt_l10n_t::languages, dt_l10n_language_t::name, PATH_MAX, dt_l10n_t::selected, set_locale(), sort_languages(), dt_l10n_t::sys_default, and TRUE.
Referenced by dt_init().
|
static |
|
static |
References _dt_full_locale_name(), and TRUE.
Referenced by dt_l10n_init().
|
static |
References dt_l10n_get_name().
Referenced by dt_l10n_init().