1 .\" Hey Emacs, this is -*- nroff -*-
3 .\" This file is part of locale(1) which displays the settings of the
5 .\" Copyright (C) 1994 Jochen Hein (Hein@Student.TU-Clausthal.de)
6 .\" Copyright (C) 2008 Petr Baudis (pasky@suse.cz)
8 .\" This program is free software; you can redistribute it and/or modify
9 .\" it under the terms of the GNU General Public License as published by
10 .\" the Free Software Foundation; either version 2 of the License, or
11 .\" (at your option) any later version.
13 .\" This program is distributed in the hope that it will be useful,
14 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 .\" GNU General Public License for more details.
18 .\" You should have received a copy of the GNU General Public License
19 .\" along with this program; if not, write to the Free Software
20 .\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
22 .\" 2008-06-17 Petr Baudis <pasky@suse.cz>
23 .\" LC_TIME: Describe first_weekday and first_workday
25 .TH LOCALE 5 2008-06-17 "Linux" "Linux User Manual"
27 locale \- Describes a locale definition file
31 definition files contains all the information that the
33 command needs to convert it into the binary locale database.
35 The definition files consist of sections which each describe a
36 locale category in detail.
38 The locale definition file starts with a header that may consist
39 of the following keywords:
42 is followed by a character that should be used as the
43 escape-character for the rest of the file to mark characters that
44 should be interpreted in a special way.
45 It defaults to the backslash (\\).
48 is followed by a character that will be used as the
49 comment-character for the rest of the file.
50 It defaults to the number sign (#).
52 The locale definition has one part for each locale category.
53 Each part can be copied from another existing locale or
54 can be defined from scratch.
55 If the category should be copied,
56 the only valid keyword in the definition is
58 followed by the name of the locale which should be copied.
59 .\" FIXME glibc 2.2.2 added new nonstandard locale categories:
60 .\" LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_NAME,
61 .\" LC_PAPER, LC_TELEPHONE. These need to be documented.
63 The definition for the
65 category starts with the string
69 There are the following keywords allowed:
72 followed by a list of uppercase letters.
77 are included automatically.
78 Characters also specified as
87 followed by a list of lowercase letters.
92 are included automatically.
93 Characters also specified as
102 followed by a list of letters.
103 All character specified as either
107 are automatically included.
108 Characters also specified as
117 followed by the characters classified as numeric digits.
124 They are included by default in this class.
127 followed by a list of characters defined as white-space
129 Characters also specified as
142 .BR <carriage-return> ,
146 are automatically included.
149 followed by a list of control characters.
150 Characters also specified as
163 followed by a list of punctuation characters.
174 character are not allowed.
177 followed by a list of printable characters, not including the
180 The characters defined as
188 are automatically included.
189 Characters also specified as
194 followed by a list of printable characters, including the
197 The characters defined as
206 character are automatically included.
207 Characters also specified as
212 followed by a list of characters classified as hexadecimal
214 The decimal digits must be included followed by one or
215 more set of six characters in ascending order.
217 characters are included by default:
229 followed by a list of characters classified as
235 are automatically included.
238 followed by a list of mappings from lowercase to uppercase
240 Each mapping is a pair of a lowercase and an uppercase letter
243 and enclosed in parentheses.
244 The members of the list are separated
248 followed by a list of mappings from uppercase to lowercase
250 If the keyword tolower is not present, the reverse of the
251 toupper list is used.
255 definition ends with the string
260 category defines the rules for collating characters.
262 limitations of libc not all POSIX-options are implemented.
264 The definition starts with the string
268 There are the following keywords allowed:
274 The order-definition starts with a line:
278 followed by a list of keywords out of
283 The order definition consists of lines that describe the order
284 and is terminated with the keyword
288 For more details see the sources in
298 definition ends with the string
299 .IR "END LC_COLLATE" .
301 The definition starts with the string
305 There are the following keywords allowed:
308 followed by the international currency symbol.
310 4-character string containing the international currency symbol as
311 defined by the ISO 4217 standard (three characters) followed by a
315 followed by the local currency symbol.
318 followed by the string that will be used as the decimal delimiter
319 when formatting monetary quantities.
322 followed by the string that will be used as a group separator
323 when formatting monetary quantities.
326 followed by a string that describes the formatting of numeric
330 followed by a string that is used to indicate a positive sign for
334 followed by a string that is used to indicate a negative sign for
338 followed by the number of fractional digits that should be used when
340 .BR int_curr_symbol .
343 followed by the number of fractional digits that should be used when
345 .BR currency_symbol .
348 followed by an integer set to
354 should precede the formatted monetary quantity or set to
356 if the symbol succeeds the value.
359 followed by an integer.
363 means that no space should be printed between the symbol and the
367 means that a space should be printed between the symbol and the
371 means that a space should be printed between the symbol and the
372 sign string, if adjacent.
379 - the symbol succeeds the value.
382 - the symbol precedes the value.
388 if no space separates the
392 from the value for a negative monetary quantity, set to
394 if a space separates the symbol from the value and set to
396 if a space separates the symbol and the sign string, if adjacent.
402 Parentheses enclose the quantity and the
405 .IR int_curr_symbol .
408 The sign string precedes the quantity and the
411 .IR int_curr_symbol .
414 The sign string succeeds the quantity and the
417 .IR int_curr_symbol .
420 The sign string precedes the
423 .IR int_curr_symbol .
426 The sign string succeeds the
429 .IR int_curr_symbol .
436 Parentheses enclose the quantity and the
439 .IR int_curr_symbol .
442 The sign string precedes the quantity and the
445 .IR int_curr_symbol .
448 The sign string succeeds the quantity and the
451 .IR int_curr_symbol .
454 The sign string precedes the
457 .IR int_curr_symbol .
460 The sign string succeeds the
463 .IR int_curr_symbol .
468 definition ends with the string
469 .IR "END LC_MONETARY" .
471 The definition starts with the string
475 The following keywords are allowed:
478 followed by the string that will be used as the decimal delimiter
479 when formatting numeric quantities.
482 followed by the string that will be used as a group separator
483 when formatting numeric quantities.
486 followed by a string that describes the formatting of numeric
491 definition ends with the string
492 .IR "END LC_NUMERIC" .
494 The definition starts with the string
498 The following keywords are allowed:
501 followed by a list of abbreviated weekday names.
502 The list starts with the first day of the week
508 followed by a list of weekday names.
509 The list starts with the first day of the week
515 followed by a list of abbreviated month names.
518 followed by a list of month names.
521 The appropriate representation of the
528 The appropriate date and time format.
531 The appropriate date format.
534 The appropriate time format.
537 The appropriate time format when using 12h clock format.
540 followed by a list of three values:
541 The number of days in a week (by default 7),
542 a date of beginning of the week (by default corresponds to Sunday),
543 and the minimal length of the first week in year (by default 4).
544 Regarding the start of the week,
546 shall be used for Sunday and
548 shall be used for Monday.
549 Thus, countries using
551 should have local Sunday name as the first day in the
554 while countries using
556 should have Monday translation as the first item in the
560 .IR first_weekday " (since glibc 2.2)"
561 Number of the first day from the
563 list to be shown in calendar applications.
566 corresponds to either Sunday or Monday depending
567 on the value of the second
571 .IR first_workday " (since glibc 2.2)"
572 Number of the first working day from the
578 definition ends with the string
581 The definition starts with the string
585 The following keywords are allowed:
588 followed by a regular expression that describes possible
592 followed by a regular expression that describes possible
597 definition ends with the string
598 .IR "END LC_MESSAGES" .
600 See the POSIX.2 standard for details.
603 \(em database for the current locale setting of that category
605 /usr/lib/nls/charmap/* \(em charmap-files
607 POSIX.2, ISO/IEC 14652.
609 This manual page isn't complete.
611 .\" Jochen Hein (Hein@Student.TU-Clausthal.de)