1 .\" Copyright 1993 X Consortium
3 .\" Permission is hereby granted, free of charge, to any person obtaining
4 .\" a copy of this software and associated documentation files (the
5 .\" "Software"), to deal in the Software without restriction, including
6 .\" without limitation the rights to use, copy, modify, merge, publish,
7 .\" distribute, sublicense, and/or sell copies of the Software, and to
8 .\" permit persons to whom the Software is furnished to do so, subject to
9 .\" the following conditions:
11 .\" The above copyright notice and this permission notice shall be
12 .\" included in all copies or substantial portions of the Software.
14 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17 .\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 .\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 .\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 .\" OTHER DEALINGS IN THE SOFTWARE.
22 .\" Except as contained in this notice, the name of the X Consortium shall
23 .\" not be used in advertising or otherwise to promote the sale, use or
24 .\" other dealings in this Software without prior written authorization
25 .\" from the X Consortium.
28 .ds xT X Toolkit Intrinsics \- C Language Interface
30 .ds xW X Toolkit Athena Widgets \- C Language Interface
31 .ds xL Xlib \- C Language X Interface
32 .ds xC Inter-Client Communication Conventions Manual
35 .hw XtSet-Language-Proc wid-get
42 .\".if \\n(VS>=40 .vs \\n(VSu
43 .\".if \\n(VS<=39 .vs \\n(VSp
54 .de IN \" send an index entry to the stderr
57 .ie t \\$1\fB\^\\$2\^\fR\\$3
58 .el \\$1\fI\^\\$2\^\fP\\$3
61 .ie t \fB\^\\$1\^\fR\\$2
62 .el \fI\^\\$1\^\fP\\$2
65 .TH XtSetLanguageProc __libmansuffix__ __xorgversion__ "XT FUNCTIONS"
67 XtSetLanguageProc \- set the language procedure
70 Widget XtSetLanguageProc(XtAppContext \fIapp_context\fP, XtLanguageProc
71 \fIproc\fP, XtPointer \fIclient_data\fP);
73 .IP \fIapp_context\fP 1i
74 Specifies the application context in which the language procedure
75 is to be used, or NULL.
78 Specifies the language procedure, or NULL.
80 .IP \fIclient_data\fP 1i
81 Specifies additional client data to be passed to the language procedure
85 sets the language procedure that will be called from
86 .ZN XtDisplayInitialize
87 for all subsequent Displays initialized in the specified application
88 context. If \fIapp_context\fP is NULL, the specified language procedure
89 is registered in all application contexts created by the calling process,
90 including any future application contexts that may be created. If
91 \fIproc\fP is NULL a default language procedure is registered.
93 returns the previously registered language procedure. If a language
94 procedure has not yet been registered, the return value is unspecified
95 but if this return value is used in a subsequent call to
96 .ZN XtSetLanguageProc ,
97 it will cause the default language procedure to be registered.
99 The default language procedure does the following:
101 Sets the locale according to the environment. On ANSI C-based systems
102 this is done by calling
105 language ). If an error is encountered a warning message is issued with
110 to verify that the current locale is supported. If the locale is not
111 supported, a warning message is issued with
113 and the locale is set to ``C''.
116 .ZN XSetLocaleModifiers
117 specifying the empty string.
119 Returns the value of the current locale. On ANSI C-based systems this
120 is the return value from a final call to
125 A client wishing to use this mechanism to establish locale can do so
127 .ZN XtSetLanguageProc
129 .ZN XtDisplayInitialize.