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 regis‐
32 tered. XtSetLanguageProc returns the previously registered language
33 procedure. If a language procedure has not yet been registered, the
34 return value is unspecified but if this return value is used in a sub‐
35 sequent call to XtSetLanguageProc, it will cause the default language
36 procedure to be registered.
37
38 The default language procedure does the following:
39
40 · Sets the locale according to the environment. On ANSI C-based
41 systems this is done by calling setlocale( LC_ALL, language ). If
42 an error is encountered a warning message is issued with XtWarn‐
43 ing.
44
45 · Calls XSupportsLocale to verify that the current locale is sup‐
46 ported. If the locale is not supported, a warning message is
47 issued with XtWarning and the locale is set to “C”.
48
49 · Calls XSetLocaleModifiers specifying the empty string.
50
51 · Returns the value of the current locale. On ANSI C-based systems
52 this is the return value from a final call to setlocale( LC_ALL,
53 NULL ).
54
55 A client wishing to use this mechanism to establish locale can do so by
56 calling XtSetLanguageProc prior to XtDisplayInitialize.
57
59 X Toolkit Intrinsics - C Language Interface
60 Xlib - C Language X Interface
61
62
63
64X Version 11 libXt 1.2.0 XtSetLanguageProc(3)