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