Index

Package: Set_Translate_Func_User_Data (generic)

Description

generic
      type User_Data_Type (<>) is private;
      with procedure Destroy (Data : in out User_Data_Type) is null;
   package Set_Translate_Func_User_Data is

Types

User_Data_Type

type User_Data_Type (<>) is private;

Gtranslate_Func

type Gtranslate_Func is access function
        (Str  : UTF8_String;
         Data : User_Data_Type) return UTF8_String;
The type of functions which are used to translate user-visible strings, for <option>--help</option> output. "str": the untranslated string "data": user data specified when installing the function, e.g. in g_option_group_set_translate_func

Subprograms & Entries

Destroy

procedure Destroy 
(Data: in out User_Data_Type) is null;

Set_Translate_Func

procedure Set_Translate_Func 
(Self: Glib.Option.Goption_Context;
Func: Gtranslate_Func;
Data: User_Data_Type;
Destroy_Notify: Glib.G_Destroy_Notify_Address);
Sets the function which is used to translate the contexts user-visible strings, for <option>--help</option> output. If Func is null, strings are not translated. Note that option groups have their own translation functions, this function only affects the Parameter_String (see Glib.Option.G_New), the summary (see Glib.Option.Set_Summary) and the description (see Glib.Option.Set_Description). If you are using gettext, you only need to set the translation domain, see Glib.Option.Set_Translation_Domain. Since: gtk+ 2.12 "func": the Gtranslate_Func, or null "data": user data to pass to Func, or null "destroy_notify": a function which gets called to free Data, or null