1XtSetLanguageProc(3x) XT FUNCTIONS XtSetLanguageProc(3x)
2
3
4
6 XtSetLanguageProc - set the language procedure
7
9 Widget XtSetLanguageProc(XtAppContext app_context, XtLanguageProc proc,
10 XtPointer client_data);
11
13 app_context
14 Specifies the application context in which the language pro‐
15 cedure is to be used, or NULL.
16
17 proc Specifies the language procedure, or NULL.
18
19 client_data
20 Specifies additional client data to be passed to the language
21 procedure when it is called.
22
24 XtSetLanguageProc sets the language procedure that will be called from
25 XtDisplayInitialize for all subsequent Displays initialized in the
26 specified application context. If app_context is NULL, the specified
27 language procedure is registered in all application contexts created by
28 the calling process, including any future application contexts that may
29 be created. If proc is NULL a default language procedure is registered.
30 XtSetLanguageProc returns the previously registered language procedure.
31 If a language procedure has not yet been registered, the return value
32 is unspecified but if this return value is used in a subsequent call to
33 XtSetLanguageProc, it will cause the default language procedure to be
34 registered.
35
36 The default language procedure does the following:
37
38 · Sets the locale according to the environment. On ANSI C-based sys‐
39 tems this is done by calling setlocale( LC_ALL, language ). If an
40 error is encountered a warning message is issued with XtWarning.
41
42 · Calls XSupportsLocale to verify that the current locale is sup‐
43 ported. If the locale is not supported, a warning message is
44 issued with XtWarning and the locale is set to ``C''.
45
46 · Calls XSetLocaleModifiers specifying the empty string.
47
48 · Returns the value of the current locale. On ANSI C-based systems
49 this is the return value from a final call to setlocale( LC_ALL,
50 NULL ).
51
52 A client wishing to use this mechanism to establish locale can do so by
53 calling XtSetLanguageProc prior to XtDisplayInitialize.
54
56 X Toolkit Intrinsics - C Language Interface
57 Xlib - C Language X Interface
58
59
60
61X Version 11 libXt 1.0.4 XtSetLanguageProc(3x)