Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
l10n.c File Reference
#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>
+ Include dependency graph for l10n.c:

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_tdt_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)
 

Function Documentation

◆ _dt_full_locale_name()

static gchar * _dt_full_locale_name ( const char *  locale)
static
Todo:
: check a way to do above on windows

References error().

Referenced by set_locale().

◆ dt_l10n_get_current_lang()

const char * dt_l10n_get_current_lang ( dt_l10n_t l10n)

◆ dt_l10n_get_name()

const char * dt_l10n_get_name ( const dt_l10n_language_t language)

◆ dt_l10n_init()

◆ get_language_names()

◆ set_locale()

static void set_locale ( const char *  ui_lang,
const char *  old_env 
)
static

References _dt_full_locale_name(), and TRUE.

Referenced by dt_l10n_init().

◆ sort_languages()

static gint sort_languages ( gconstpointer  a,
gconstpointer  b 
)
static

References dt_l10n_get_name().

Referenced by dt_l10n_init().