Use C++ linker
[oweals/cde.git] / cde / programs / dtlogin / nlsREADME.txt
1 # $XConsortium: nlsREADME.txt /main/2 1996/11/11 11:30:53 drk $
2 # *                                                                      *
3 # * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
4 # * (c) Copyright 1993, 1994 International Business Machines Corp.       *
5 # * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
6 # * (c) Copyright 1993, 1994 Novell, Inc.                                *
7 # *
8 #############################################################################
9 #
10 # Component:  Dtlogin
11 #
12 ############################################################################
13
14 _DtMessage catalog source:
15
16    File name:   dtlogin.msg
17
18    Target:      /usr/lib/nls/%L/dtlogin.cat
19
20
21 If additional files are to be localized, for each file include:
22
23    File name:   Xresources
24
25    Target:      /usr/dt/config/Xresources
26
27    Purpose:
28
29      This file contains the appearance resources for the login screen.  The
30      traditional 'app-defaults' technology is not used since these resources
31      are specified on a per-display rather than a per-user basis.  When the
32      login screen is drawn, the user that will eventually log in is not yet
33      known.
34
35      There is only one file containing the login appearance resources to
36      service all languages, rather than an individual file per language.
37      Before the login screen is drawn, this file is scanned (with the xrdb
38      program) and the appropriate resources are used.  The current value of
39      the $LANG variable is available so that language specified resources
40      (such as font) can be selected.
41
42
43    Instructions:
44
45      If the font to be used for the localized login screen is different from
46      the default, then an entry must be made in this file to indicate the
47      desired font.
48    
49      At the end of the section labeled...
50
51         !!#################################################################
52         !!
53         !!  FONTS
54         !!
55
56
57         1. add...
58
59                 #ifdef <LANG>
60
61                         where <LANG> is replaced by the value of the $LANG
62                         variable appropriate for this language.
63
64         2. add...
65
66                 Dtlogin.labelFont:      <font for button labels>
67                 Dtlogin.textFont:       <font for dialog & help text>
68                 Dtlogin.greeting.fontList: <font for greeting text>             
69
70         3. add...
71
72                 #endif
73                 
74
75    ex.  for LANG=japanese
76    
77
78         #ifdef japanese
79           Dtlogin*labelFont:            jpn.16x32
80           Dtlogin*textFont:             jpn.12x24
81           Dtlogin.greeting.fontList:   <italic font of equivalent size> 
82         #endif
83
84
85
86
87      The message catalog contains the text for the first part of the
88      greeting message displayed below the HP logo.  This text is "Welcome
89      to" (set 1,16).  Dtlogin appends the system name to the text to
90      generate the complete greeting message.
91
92      This text can be overridden by the user via a resource in the
93      Xresources file.  The file is shipped with the resource commented out
94      so that the message catalog takes precedence.  The resource value
95      should be localized identically to the message catalog.
96
97      At the end of the section labeled...
98
99         !!#################################################################
100         !!
101         !!  GREETING
102         !!
103
104
105         1. add...
106
107                 #ifdef <LANG>
108
109                         where <LANG> is replaced by the value of the $LANG
110                         variable appropriate for this language.
111
112         2. add...
113
114                 !! Dtlogin*greeting.labelString:   <Welcome to> %LocalHost%
115                                                      ^^^^^^^^^^
116                                                      localized value
117         3. add...
118
119                 #endif
120                 
121
122    ex.  for LANG=japanese
123    
124
125         #ifdef japanese
126         !! Dtlogin*greeting.labelString: <Welcome to> %LocalHost%
127         #endif
128
129
130      To test this text, remove the comment characters "!!" from the line. To
131      test the text in the message catalog, insert the comment characters.
132
133
134      
135
136      The localized Xresources file along with the message catalog should be
137      returned to the DT development team.  In addition, it may be necessary
138      for the customize script (run after installing a language) to contain
139      instructions that would append the above lines to an existing
140      Xresources.