i18n

i18n — Internationalization and Localization Support Functions

Synopsis


#include <libxfce4util/libxfce4util.h>


#define     _                               (s)
#define     N_                              (s)
#define     xfce_textdomain                 (package, localedir, encoding)
#define     textdomain                      (s)
#define     gettext                         (s)
#define     dgettext                        (domain,s)
#define     dcgettext                       (domain,s,type)
#define     bindtextdomain                  (domain,directory)
gchar*      xfce_get_file_localized         (const gchar*);
gchar*      xfce_get_dir_localized          (const gchar*);
gchar*      xfce_get_file_localized_r       (gchar*,
                                             gsize,
                                             const gchar*);
gchar*      xfce_get_dir_localized_r        (gchar*,
                                             gsize,
                                             const gchar*);
gchar*      xfce_get_path_localized         (gchar*,
                                             gsize,
                                             const gchar*,
                                             const gchar*,
                                             GFileTest);

Description

Details

_()

#define     _(s)

Convience macro for the gettext function.

s :string to translate.

N_()

#define     N_(s)

s :

xfce_textdomain()

#define     xfce_textdomain(package, localedir, encoding)

package :
localedir :
encoding :

textdomain()

#define textdomain(s)				(s)

s :

gettext()

#define gettext(s)				(s)

s :

dgettext()

#define dgettext(domain,s)			(s)

domain :
s :

dcgettext()

#define dcgettext(domain,s,type)		(s)

domain :
s :
type :

bindtextdomain()

#define bindtextdomain(domain,directory)	(domain)

domain :
directory :

xfce_get_file_localized ()

gchar*      xfce_get_file_localized         (const gchar*);

Warning

xfce_get_file_localized is deprecated and should not be used in newly-written code.

Param1 :
Returns :

xfce_get_dir_localized ()

gchar*      xfce_get_dir_localized          (const gchar*);

Warning

xfce_get_dir_localized is deprecated and should not be used in newly-written code.

Param1 :
Returns :

xfce_get_file_localized_r ()

gchar*      xfce_get_file_localized_r       (gchar*,
                                             gsize,
                                             const gchar*);

Warning

xfce_get_file_localized_r is deprecated and should not be used in newly-written code.

Param1 :
Param2 :
Param3 :
Returns :

xfce_get_dir_localized_r ()

gchar*      xfce_get_dir_localized_r        (gchar*,
                                             gsize,
                                             const gchar*);

Warning

xfce_get_dir_localized_r is deprecated and should not be used in newly-written code.

Param1 :
Param2 :
Param3 :
Returns :

xfce_get_path_localized ()

gchar*      xfce_get_path_localized         (gchar*,
                                             gsize,
                                             const gchar*,
                                             const gchar*,
                                             GFileTest);

paths is a ':'-separated list of pathnames.

F - The filename L - The language string, as returned by setlocale(LC_MESSAGES, NULL) l - The language component of the language string N - application name

Example paths:

/usr/local/lib/L/F:/usr/local/share/N/l/F

Param1 :
Param2 :
Param3 :
Param4 :
Param5 :
Returns :