Locale Support

Locale Support

Functions

gboolean go_locale_24h ()
char const * go_locale_boolean_name ()
char go_locale_get_arg_sep ()
char go_locale_get_col_sep ()
GString const * go_locale_get_currency ()
GString const * go_locale_get_date_format ()
GString const * go_locale_get_decimal ()
char go_locale_get_row_sep ()
GString const * go_locale_get_thousand ()
GString const * go_locale_get_time_format ()
int go_locale_month_before_day ()
void go_locale_untranslated_booleans ()
char const * go_setlocale ()

Description

Functions

go_locale_24h ()

gboolean
go_locale_24h (void);

Returns

TRUE if the locale uses a 24h clock, FALSE otherwise.


go_locale_boolean_name ()

char const *
go_locale_boolean_name (gboolean b);

Parameters

b

a boolean value

 

Returns

Current locale's rendering of b .

[transfer none]


go_locale_get_arg_sep ()

char
go_locale_get_arg_sep (void);

go_locale_get_col_sep ()

char
go_locale_get_col_sep (void);

go_locale_get_currency ()

GString const *
go_locale_get_currency (gboolean *precedes,
                        gboolean *space_sep);

Play with the default logic so that things come out nicely for the default case.

Parameters

precedes

a pointer to a boolean which is set to TRUE if the currency should precede

 

space_sep

a pointer to a boolean which is set to TRUE if the currency should have a space separating it from the value

 

Returns

A string with the default currency.

[transfer none]


go_locale_get_date_format ()

GString const *
go_locale_get_date_format (void);

Returns

Current locale's date format as a string.

[transfer none]


go_locale_get_decimal ()

GString const *
go_locale_get_decimal (void);

Returns

Current locale's decimal separator.

[transfer none]


go_locale_get_row_sep ()

char
go_locale_get_row_sep (void);

go_locale_get_thousand ()

GString const *
go_locale_get_thousand (void);

Returns

Current locale's thousands separator. This may be an empty string.

[transfer none]


go_locale_get_time_format ()

GString const *
go_locale_get_time_format (void);

Returns

Current locale's time format as a string.

[transfer none]


go_locale_month_before_day ()

int
go_locale_month_before_day (void);

go_locale_untranslated_booleans ()

void
go_locale_untranslated_booleans (void);

Short circuit the current locale so that we can import files and still produce error messages in the current LC_MESSAGE


go_setlocale ()

char const *
go_setlocale (int category,
              char const *val);