# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR The FreeBSD Project # This file is distributed under the same license as the FreeBSD Documentation package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: FreeBSD Documentation VERSION\n" "POT-Creation-Date: 2026-08-16 15:11-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: Yaml Front Matter Hash Value: description #: documentation/content/en/books/handbook/l10n/_index.adoc:1 #, no-wrap msgid "FreeBSD supports localization into many languages, allowing users to view, input, or process data in non-English languages" msgstr "" #. type: Yaml Front Matter Hash Value: part #: documentation/content/en/books/handbook/l10n/_index.adoc:1 #, no-wrap msgid "Part III. System Administration" msgstr "" #. type: Yaml Front Matter Hash Value: title #: documentation/content/en/books/handbook/l10n/_index.adoc:1 #, no-wrap msgid "Chapter 26. Localization - i18n/L10n Usage and Setup" msgstr "" #. type: Title = #: documentation/content/en/books/handbook/l10n/_index.adoc:15 #, no-wrap msgid "Localization - i18n/L10n Usage and Setup" msgstr "" #. type: Title == #: documentation/content/en/books/handbook/l10n/_index.adoc:52 #, no-wrap msgid "Synopsis" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:57 msgid "" "FreeBSD is a distributed project with users and contributors located all " "over the world. As such, FreeBSD supports localization into many languages, " "allowing users to view, input, or process data in non-English languages. " "One can choose from most of the major languages, including, but not limited " "to: Chinese, German, Japanese, Korean, French, Russian, and Vietnamese." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:61 msgid "" "The term internationalization has been shortened to i18n, which represents " "the number of letters between the first and the last letters of " "`internationalization`. L10n uses the same naming scheme, but from " "`localization`. The i18n/L10n methods, protocols, and applications allow " "users to use languages of their choice." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:63 msgid "" "This chapter discusses the internationalization and localization features of " "FreeBSD." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:65 msgid "Read this chapter to learn:" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:67 msgid "How locale names are constructed." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:68 msgid "How to set the locale for a login shell." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:69 msgid "How to configure the console for non-English languages." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:70 msgid "How to configure Xorg for different languages." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:71 msgid "How to find i18n-compliant applications." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:72 msgid "Where to find more information for configuring specific languages." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:74 msgid "Before reading this chapter:" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:76 msgid "" "Know how to crossref:ports[ports,install additional third-party " "applications]." msgstr "" #. type: Title == #: documentation/content/en/books/handbook/l10n/_index.adoc:78 #, no-wrap msgid "Using Localization" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:82 msgid "" "Localization settings are based on three components: the language code, " "country code, and encoding. Locale names are constructed from these parts " "as follows:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:86 #, no-wrap msgid "LanguageCode_CountryCode.Encoding\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:90 msgid "" "The _LanguageCode_ and _CountryCode_ are used to determine the country and " "the specific language variation. crossref:l10n[locale-lang-country,Common " "Language and Country Codes] provides some examples of " "__LanguageCode_CountryCode__:" msgstr "" #. type: Block title #: documentation/content/en/books/handbook/l10n/_index.adoc:92 #, no-wrap msgid "Common Language and Country Codes" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:96 #, no-wrap msgid "LanguageCode_Country Code" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:98 #, no-wrap msgid "Description" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:99 #, no-wrap msgid "en_US" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:101 #, no-wrap msgid "English, United States" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:102 #, no-wrap msgid "ru_RU" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:104 #, no-wrap msgid "Russian, Russia" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:105 #, no-wrap msgid "zh_TW" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:106 #, no-wrap msgid "Traditional Chinese, Taiwan" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:109 msgid "A complete listing of available locales can be found by typing:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:113 #, no-wrap msgid "% locale -a | more\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:116 msgid "To determine the current locale setting:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:120 #, no-wrap msgid "% locale\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:124 msgid "" "Language specific character sets, such as ISO8859-1, ISO8859-15, KOI8-R, and " "CP437, are described in man:multibyte[3]. The active list of character sets " "can be found at the http://www.iana.org/assignments/character-sets[IANA " "Registry]." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:129 msgid "" "Some languages, such as Chinese or Japanese, cannot be represented using " "ASCII characters and require an extended language encoding using either wide " "or multibyte characters. Examples of wide or multibyte encodings include " "EUC and Big5. Older applications may mistake these encodings for control " "characters while newer applications usually recognize these characters. " "Depending on the implementation, users may be required to compile an " "application with wide or multibyte character support, or to configure it " "correctly." msgstr "" #. type: delimited block = 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:133 msgid "FreeBSD uses Xorg-compatible locale encodings." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:137 msgid "" "The rest of this section describes the various methods for configuring the " "locale on a FreeBSD system. The next section will discuss the " "considerations for finding and compiling applications with i18n support." msgstr "" #. type: Title === #: documentation/content/en/books/handbook/l10n/_index.adoc:139 #, no-wrap msgid "Setting Locale for Login Shell" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:142 msgid "" "Locale settings are configured either in a user's [.filename]#~/.login_conf# " "or in the startup file of the user's shell: [.filename]#~/.profile#, " "[.filename]#~/.bashrc#, or [.filename]#~/.cshrc#." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:144 msgid "Two environment variables should be set:" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:146 msgid "`LANG`, which sets the locale" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:147 msgid "`MM_CHARSET`, which sets the MIME character set used by applications" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:149 msgid "" "In addition to the user's shell configuration, these variables should also " "be set for specific application configuration and Xorg configuration." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:154 msgid "" "Two methods are available for making the needed variable assignments: the " "crossref:l10n[login-class,login class] method, which is the recommended " "method, and the crossref:l10n[startup-file,startup file] method. The next " "two sections demonstrate how to use both methods." msgstr "" #. type: Title ==== #: documentation/content/en/books/handbook/l10n/_index.adoc:156 #, no-wrap msgid "Login Classes Method" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:160 msgid "" "This first method is the recommended method as it assigns the required " "environment variables for locale name and MIME character sets for every " "possible shell. This setup can either be performed by each user or it can " "be configured for all users by the superuser." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:162 msgid "" "This minimal example sets both variables for Latin-1 encoding in the " "[.filename]#.login_conf# of an individual user's home directory:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:168 #, no-wrap msgid "" "me:\\\n" "\t:charset=ISO-8859-1:\\\n" "\t:lang=de_DE.ISO8859-1:\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:172 msgid "" "Here is an example of a user's [.filename]#~/.login_conf# that sets the " "variables for Traditional Chinese in BIG-5 encoding. More variables are " "needed because some applications do not correctly respect locale variables " "for Chinese, Japanese, and Korean:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:182 #, no-wrap msgid "" "#Users who do not wish to use monetary units or time formats\n" "#of Taiwan can manually change each variable\n" "me:\\\n" "\t:lang=zh_TW.Big5:\\\n" "\t:setenv=LC_ALL=zh_TW.Big5,LC_COLLATE=zh_TW.Big5,LC_CTYPE=zh_TW.Big5,LC_MESSAGES=zh_TW.Big5,LC_MONETARY=zh_TW.Big5,LC_NUMERIC=zh_TW.Big5,LC_TIME=zh_TW.Big5:\\\n" "\t:charset=big5:\\\n" "\t:xmodifiers=\"@im=gcin\": #Set gcin as the XIM Input Server\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:186 msgid "" "Alternately, the superuser can configure all users of the system for " "localization. The following variables in [.filename]#/etc/login.conf# are " "used to set the locale and MIME character set:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:193 #, no-wrap msgid "" "language_name|Account Type Description:\\\n" "\t:charset=MIME_charset:\\\n" "\t:lang=locale_name:\\\n" "\t:tc=default:\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:196 msgid "So, the previous Latin-1 example would look like this:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:203 #, no-wrap msgid "" "german|German Users Accounts:\\\n" "\t:charset=ISO-8859-1:\\\n" "\t:lang=de_DE.ISO8859-1:\\\n" "\t:tc=default:\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:207 msgid "" "See man:login.conf[5] for more details about these variables. Note that it " "already contains pre-defined _russian_ class." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:209 msgid "" "Whenever [.filename]#/etc/login.conf# is edited, remember to execute the " "following command to update the capability database:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:213 #, no-wrap msgid "# cap_mkdb /etc/login.conf\n" msgstr "" #. type: delimited block = 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:218 msgid "" "For an end user, the `cap_mkdb` command will need to be run on their " "[.filename]#~/.login_conf# for any changes to take effect." msgstr "" #. type: Title ===== #: documentation/content/en/books/handbook/l10n/_index.adoc:220 #, no-wrap msgid "Utilities Which Change Login Classes" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:223 msgid "" "In addition to manually editing [.filename]#/etc/login.conf#, several " "utilities are available for setting the locale for newly created users." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:225 msgid "" "When using `vipw` to add new users, specify the _language_ to set the locale:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:229 #, no-wrap msgid "user:password:1111:11:language:0:0:User Name:/home/user:/bin/sh\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:232 msgid "" "When using `adduser` to add new users, the default language can be pre-" "configured for all new users or specified for an individual user." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:234 msgid "" "If all new users use the same language, set `defaultclass=_language_` in " "[.filename]#/etc/adduser.conf#." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:236 msgid "" "To override this setting when creating a user, either input the required " "locale at this prompt:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:240 #, no-wrap msgid "Enter login class: default []:\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:243 msgid "or specify the locale to set when invoking `adduser`:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:247 #, no-wrap msgid "# adduser -class language\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:250 msgid "If `pw` is used to add new users, specify the locale as follows:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:254 #, no-wrap msgid "# pw useradd user_name -L language\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:258 msgid "" "To change the login class of an existing user, `chpass` can be used. Invoke " "it as superuser and provide the username to edit as the argument." msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:262 #, no-wrap msgid "# chpass user_name\n" msgstr "" #. type: Title ==== #: documentation/content/en/books/handbook/l10n/_index.adoc:266 #, no-wrap msgid "Shell Startup File Method" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:271 msgid "" "This second method is not recommended as each shell that is used requires " "manual configuration, where each shell has a different configuration file " "and differing syntax. As an example, to set the German language for the " "`sh` shell, these lines could be added to [.filename]#~/.profile# to set the " "shell for that user only. These lines could also be added to [.filename]#/" "etc/profile# or [.filename]#/usr/share/skel/dot.profile# to set that shell " "for all users:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:276 #, no-wrap msgid "" "LANG=de_DE.ISO8859-1; export LANG\n" "MM_CHARSET=ISO-8859-1; export MM_CHARSET\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:280 msgid "" "However, the name of the configuration file and the syntax used differs for " "the `csh` shell. These are the equivalent settings for " "[.filename]#~/.login#, [.filename]#/etc/csh.login#, or [.filename]#/usr/" "share/skel/dot.login#:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:285 #, no-wrap msgid "" "setenv LANG de_DE.ISO8859-1\n" "setenv MM_CHARSET ISO-8859-1\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:289 msgid "" "To complicate matters, the syntax needed to configure Xorg in " "[.filename]#~/.xinitrc# also depends upon the shell. The first example is " "for the `sh` shell and the second is for the `csh` shell:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:293 #, no-wrap msgid "LANG=de_DE.ISO8859-1; export LANG\n" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:299 #, no-wrap msgid "setenv LANG de_DE.ISO8859-1\n" msgstr "" #. type: Title === #: documentation/content/en/books/handbook/l10n/_index.adoc:303 #, no-wrap msgid "Console Setup" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:308 msgid "" "Several localized fonts are available for the console. To see a listing of " "available fonts, type `ls /usr/share/syscons/fonts`. To configure the " "console font, specify the _font_name_, without the [.filename]#.fnt# suffix, " "in [.filename]#/etc/rc.conf#:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:314 #, no-wrap msgid "" "font8x16=font_name\n" "font8x14=font_name\n" "font8x8=font_name\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:317 msgid "" "The keymap and screenmap can be set by adding the following to [.filename]#/" "etc/rc.conf#:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:323 #, no-wrap msgid "" "scrnmap=screenmap_name\n" "keymap=keymap_name\n" "keychange=\"fkey_number sequence\"\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:328 msgid "" "To see the list of available screenmaps, type `ls /usr/share/syscons/" "scrnmaps`. Do not include the [.filename]#.scm# suffix when specifying " "_screenmap_name_. A screenmap with a corresponding mapped font is usually " "needed as a workaround for expanding bit 8 to bit 9 on a VGA adapter's font " "character matrix so that letters are moved out of the pseudographics area if " "the screen font uses a bit 8 column." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:332 msgid "" "To see the list of available keymaps, type `ls /usr/share/syscons/keymaps`. " "When specifying the _keymap_name_, do not include the [.filename]#.kbd# " "suffix. To test keymaps without rebooting, use man:kbdmap[1]." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:334 msgid "" "The `keychange` entry is usually needed to program function keys to match " "the selected terminal type because function key sequences cannot be defined " "in the keymap." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:337 msgid "" "Next, set the correct console terminal type in [.filename]#/etc/ttys# for " "all virtual terminal entries. crossref:l10n[locale-charset,Defined Terminal " "Types for Character Sets] summarizes the available terminal types.:" msgstr "" #. type: Block title #: documentation/content/en/books/handbook/l10n/_index.adoc:339 #, no-wrap msgid "Defined Terminal Types for Character Sets" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:343 #, no-wrap msgid "Character Set" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:345 #, no-wrap msgid "Terminal Type" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:346 #, no-wrap msgid "ISO8859-1 or ISO8859-15" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:348 #, no-wrap msgid "`cons25l1`" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:349 #, no-wrap msgid "ISO8859-2" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:351 #, no-wrap msgid "`cons25l2`" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:352 #, no-wrap msgid "ISO8859-7" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:354 #, no-wrap msgid "`cons25l7`" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:355 #, no-wrap msgid "KOI8-R" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:357 #, no-wrap msgid "`cons25r`" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:358 #, no-wrap msgid "KOI8-U" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:360 #, no-wrap msgid "`cons25u`" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:361 #, no-wrap msgid "CP437 (VGA default)" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:363 #, no-wrap msgid "`cons25`" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:364 #, no-wrap msgid "US-ASCII" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:365 #, no-wrap msgid "`cons25w`" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:370 msgid "" "For languages with wide or multibyte characters, install a console for that " "language from the FreeBSD Ports Collection. The available ports are " "summarized in crossref:l10n[locale-console,Available Console from Ports " "Collection]. Once installed, refer to the port's [.filename]#pkg-message# " "or man pages for configuration and usage instructions." msgstr "" #. type: Block title #: documentation/content/en/books/handbook/l10n/_index.adoc:372 #, no-wrap msgid "Available Console from Ports Collection" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:376 #: documentation/content/en/books/handbook/l10n/_index.adoc:421 #, no-wrap msgid "Language" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:378 #, no-wrap msgid "Port Location" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:379 #, no-wrap msgid "Traditional Chinese (BIG-5)" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:381 #, no-wrap msgid "package:chinese/big5con[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:382 #: documentation/content/en/books/handbook/l10n/_index.adoc:385 #, no-wrap msgid "Chinese/Japanese/Korean" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:384 #, no-wrap msgid "package:chinese/cce[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:387 #, no-wrap msgid "package:chinese/zhcon[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:388 #: documentation/content/en/books/handbook/l10n/_index.adoc:391 #: documentation/content/en/books/handbook/l10n/_index.adoc:394 #: documentation/content/en/books/handbook/l10n/_index.adoc:445 #: documentation/content/en/books/handbook/l10n/_index.adoc:448 #: documentation/content/en/books/handbook/l10n/_index.adoc:451 #: documentation/content/en/books/handbook/l10n/_index.adoc:454 #: documentation/content/en/books/handbook/l10n/_index.adoc:457 #: documentation/content/en/books/handbook/l10n/_index.adoc:460 #: documentation/content/en/books/handbook/l10n/_index.adoc:463 #: documentation/content/en/books/handbook/l10n/_index.adoc:466 #: documentation/content/en/books/handbook/l10n/_index.adoc:469 #: documentation/content/en/books/handbook/l10n/_index.adoc:472 #: documentation/content/en/books/handbook/l10n/_index.adoc:475 #: documentation/content/en/books/handbook/l10n/_index.adoc:478 #: documentation/content/en/books/handbook/l10n/_index.adoc:481 #: documentation/content/en/books/handbook/l10n/_index.adoc:484 #: documentation/content/en/books/handbook/l10n/_index.adoc:487 #: documentation/content/en/books/handbook/l10n/_index.adoc:490 #: documentation/content/en/books/handbook/l10n/_index.adoc:493 #: documentation/content/en/books/handbook/l10n/_index.adoc:496 #, no-wrap msgid "Japanese" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:390 #, no-wrap msgid "package:chinese/kon2[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:393 #, no-wrap msgid "package:japanese/kon2-14dot[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:395 #, no-wrap msgid "package:japanese/kon2-16dot[]" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:400 msgid "" "If moused is enabled in [.filename]#/etc/rc.conf#, additional configuration " "may be required. By default, the mouse cursor of the man:syscons[4] driver " "occupies the `0xd0`-`0xd3` range in the character set. If the language uses " "this range, move the cursor's range by adding the following line to " "[.filename]#/etc/rc.conf#:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:404 #, no-wrap msgid "mousechar_start=3\n" msgstr "" #. type: Title === #: documentation/content/en/books/handbook/l10n/_index.adoc:406 #, no-wrap msgid "Xorg Setup" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:411 msgid "" "crossref:x11[x11,The X Window System] describes how to install and configure " "Xorg. When configuring Xorg for localization, additional fonts and input " "methods are available from the FreeBSD Ports Collection. Application " "specific i18n settings such as fonts and menus can be tuned in " "[.filename]#~/.Xresources# and should allow users to view their selected " "language in graphical application menus." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:415 msgid "" "The X Input Method (XIM) protocol is an Xorg standard for inputting non-" "English characters. crossref:l10n[locale-xim,Available Input Methods] " "summarizes the input method applications which are available in the FreeBSD " "Ports Collection. Additional Fcitx and Uim applications are also available." msgstr "" #. type: Block title #: documentation/content/en/books/handbook/l10n/_index.adoc:417 #, no-wrap msgid "Available Input Methods" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:423 #, no-wrap msgid "Input Method" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:424 #: documentation/content/en/books/handbook/l10n/_index.adoc:427 #: documentation/content/en/books/handbook/l10n/_index.adoc:430 #: documentation/content/en/books/handbook/l10n/_index.adoc:433 #: documentation/content/en/books/handbook/l10n/_index.adoc:436 #: documentation/content/en/books/handbook/l10n/_index.adoc:439 #: documentation/content/en/books/handbook/l10n/_index.adoc:442 #, no-wrap msgid "Chinese" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:426 #, no-wrap msgid "package:chinese/gcin[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:429 #, no-wrap msgid "package:chinese/ibus-chewing[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:432 #, no-wrap msgid "package:chinese/ibus-pinyin[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:435 #, no-wrap msgid "package:chinese/oxim[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:438 #, no-wrap msgid "package:chinese/scim-fcitx[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:441 #, no-wrap msgid "package:chinese/scim-pinyin[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:444 #, no-wrap msgid "package:chinese/scim-tables[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:447 #, no-wrap msgid "package:japanese/ibus-anthy[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:450 #, no-wrap msgid "package:japanese/ibus-mozc[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:453 #, no-wrap msgid "package:japanese/ibus-skk[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:456 #, no-wrap msgid "package:japanese/im-ja[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:459 #, no-wrap msgid "package:japanese/kinput2[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:462 #, no-wrap msgid "package:japanese/scim-anthy[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:465 #, no-wrap msgid "package:japanese/scim-canna[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:468 #, no-wrap msgid "package:japanese/scim-honoka[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:471 #, no-wrap msgid "package:japanese/scim-honoka-plugin-romkan[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:474 #, no-wrap msgid "package:japanese/scim-honoka-plugin-wnn[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:477 #, no-wrap msgid "package:japanese/scim-prime[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:480 #, no-wrap msgid "package:japanese/scim-skk[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:483 #, no-wrap msgid "package:japanese/scim-tables[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:486 #, no-wrap msgid "package:japanese/scim-tomoe[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:489 #, no-wrap msgid "package:japanese/scim-uim[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:492 #, no-wrap msgid "package:japanese/skkinput[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:495 #, no-wrap msgid "package:japanese/skkinput3[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:498 #, no-wrap msgid "package:japanese/uim-anthy[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:499 #: documentation/content/en/books/handbook/l10n/_index.adoc:502 #: documentation/content/en/books/handbook/l10n/_index.adoc:505 #: documentation/content/en/books/handbook/l10n/_index.adoc:508 #: documentation/content/en/books/handbook/l10n/_index.adoc:511 #, no-wrap msgid "Korean" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:501 #, no-wrap msgid "package:korean/ibus-hangul[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:504 #, no-wrap msgid "package:korean/imhangul[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:507 #, no-wrap msgid "package:korean/nabi[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:510 #, no-wrap msgid "package:korean/scim-hangul[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:513 #, no-wrap msgid "package:korean/scim-tables[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:514 #: documentation/content/en/books/handbook/l10n/_index.adoc:517 #, no-wrap msgid "Vietnamese" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:516 #, no-wrap msgid "package:vietnamese/xvnkb[]" msgstr "" #. type: Table #: documentation/content/en/books/handbook/l10n/_index.adoc:518 #, no-wrap msgid "package:vietnamese/x-unikey[]" msgstr "" #. type: Title == #: documentation/content/en/books/handbook/l10n/_index.adoc:521 #, no-wrap msgid "Finding i18n Applications" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:525 msgid "" "i18n applications are programmed using i18n kits under libraries. These " "allow developers to write a simple file and translate displayed menus and " "texts to each language." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:529 msgid "" "The link:https://ports.FreeBSD.org[FreeBSD Ports Collection] contains many " "applications with built-in support for wide or multibyte characters for " "several languages. Such applications include `i18n` in their names for easy " "identification. However, they do not always support the language needed." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:533 msgid "" "Some applications can be compiled with the specific charset. This is " "usually done in the port's [.filename]#Makefile# or by passing a value to " "configure. Refer to the i18n documentation in the respective FreeBSD port's " "source for more information on how to determine the needed configure value " "or the port's [.filename]#Makefile# to determine which compile options to " "use when building the port." msgstr "" #. type: Title == #: documentation/content/en/books/handbook/l10n/_index.adoc:535 #, no-wrap msgid "Locale Configuration for Specific Languages" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:539 msgid "" "This section provides configuration examples for localizing a FreeBSD system " "for the Russian language. It then provides some additional resources for " "localizing other languages." msgstr "" #. type: Title === #: documentation/content/en/books/handbook/l10n/_index.adoc:541 #, no-wrap msgid "Russian Language (KOI8-R Encoding)" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:545 msgid "" "This section shows the specific settings needed to localize a FreeBSD system " "for the Russian language. Refer to crossref:l10n[using-localization,Using " "Localization] for a complete description of each type of setting." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:547 msgid "" "To set this locale for the login shell, add the following lines to each " "user's [.filename]#~/.login_conf#:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:553 #, no-wrap msgid "" "me:My Account:\\\n" "\t:charset=KOI8-R:\\\n" "\t:lang=ru_RU.KOI8-R:\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:556 msgid "" "To configure the console, add the following lines to [.filename]#/etc/" "rc.conf#:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:565 #, no-wrap msgid "" "keymap=\"ru.utf-8\"\n" "scrnmap=\"utf-82cp866\"\n" "font8x16=\"cp866b-8x16\"\n" "font8x14=\"cp866-8x14\"\n" "font8x8=\"cp866-8x8\"\n" "mousechar_start=3\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:568 msgid "" "For each `ttyv` entry in [.filename]#/etc/ttys#, use `cons25r` as the " "terminal type." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:572 msgid "" "To configure printing, a special output filter is needed to convert from " "KOI8-R to CP866 since most printers with Russian characters come with " "hardware code page CP866. FreeBSD includes a default filter for this " "purpose, [.filename]#/usr/libexec/lpr/ru/koi2alt#. To use this filter, add " "this entry to [.filename]#/etc/printcap#:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:578 #, no-wrap msgid "" "lp|Russian local line printer:\\\n" "\t:sh:of=/usr/libexec/lpr/ru/koi2alt:\\\n" "\t:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:581 msgid "Refer to man:printcap[5] for a more detailed explanation." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:583 msgid "" "To configure support for Russian filenames in mounted MS-DOS(R) file " "systems, include `-L` and the locale name when adding an entry to " "[.filename]#/etc/fstab#:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:587 #, no-wrap msgid "/dev/ad0s2 /dos/c msdos rw,-Lru_RU.KOI8-R 0 0\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:590 msgid "Refer to man:mount_msdosfs[8] for more details." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:593 msgid "" "To configure Russian fonts for Xorg, install the package:x11-fonts/xorg-" "fonts-cyrillic[] package. Then, check the `\"Files\"` section in " "[.filename]#/etc/X11/xorg.conf#. The following line must be added _before_ " "any other `FontPath` entries:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:597 #, no-wrap msgid "FontPath \"/usr/local/lib/X11/fonts/cyrillic\"\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:600 msgid "Additional Cyrillic fonts are available in the Ports Collection." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:602 msgid "" "To activate a Russian keyboard, add the following to the `\"Keyboard\"` " "section of [.filename]#/etc/xorg.conf#:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:607 #, no-wrap msgid "" "Option \"XkbLayout\" \"us,ru\"\n" "Option \"XkbOptions\" \"grp:toggle\"\n" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:610 msgid "Make sure that `XkbDisable` is commented out in that file." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:613 msgid "" "For `grp:toggle` use kbd:[Right Alt], for `grp:ctrl_shift_toggle` use kbd:" "[Ctrl+Shift]. For `grp:caps_toggle` use kbd:[CapsLock]. The old kbd:" "[CapsLock] function is still available in LAT mode only using kbd:" "[Shift+CapsLock]. `grp:caps_toggle` does not work in Xorg for some unknown " "reason." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:615 msgid "" "If the keyboard has \"Windows(R)\" keys, and some non-alphabetical keys are " "mapped incorrectly, add the following line to [.filename]#/etc/xorg.conf#:" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:619 #, no-wrap msgid "Option \"XkbVariant\" \",winkeys\"\n" msgstr "" #. type: delimited block = 4 #: documentation/content/en/books/handbook/l10n/_index.adoc:625 msgid "" "The Russian XKB keyboard may not work with non-localized applications. " "Minimally localized applications should call a `XtSetLanguageProc (NULL, " "NULL, NULL);` function early in the program." msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:629 msgid "" "See http://koi8.pp.ru/xwin.html[http://koi8.pp.ru/xwin.html] for more " "instructions on localizing Xorg applications. For more general information " "about KOI8-R encoding, refer to http://koi8.pp.ru/[http://koi8.pp.ru/]." msgstr "" #. type: Title === #: documentation/content/en/books/handbook/l10n/_index.adoc:630 #, no-wrap msgid "Additional Language-Specific Resources" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:633 msgid "" "This section lists some additional resources for configuring other locales." msgstr "" #. type: Labeled list #: documentation/content/en/books/handbook/l10n/_index.adoc:634 #, no-wrap msgid "Traditional Chinese for Taiwan" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:636 msgid "" "The FreeBSD-Taiwan Project has a Chinese HOWTO for FreeBSD at http://" "netlab.cse.yzu.edu.tw/\\~statue/freebsd/zh-tut/[http://netlab.cse.yzu.edu.tw/" "~statue/freebsd/zh-tut/]." msgstr "" #. type: Labeled list #: documentation/content/en/books/handbook/l10n/_index.adoc:637 #, no-wrap msgid "Greek Language Localization" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:639 msgid "" "A complete article on Greek support in FreeBSD is available https://" "www.FreeBSD.org/doc/gr/articles/greek-language-support/[here], in Greek " "only, as part of the official FreeBSD Greek documentation." msgstr "" #. type: Labeled list #: documentation/content/en/books/handbook/l10n/_index.adoc:640 #, no-wrap msgid "Japanese and Korean Language Localization" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:642 msgid "" "For Japanese, refer to http://www.jp.FreeBSD.org/[http://" "www.jp.FreeBSD.org/], and for Korean, refer to http://www.kr.FreeBSD.org/" "[http://www.kr.FreeBSD.org/]." msgstr "" #. type: Labeled list #: documentation/content/en/books/handbook/l10n/_index.adoc:643 #, no-wrap msgid "Non-English FreeBSD Documentation" msgstr "" #. type: Plain text #: documentation/content/en/books/handbook/l10n/_index.adoc:645 msgid "" "Some FreeBSD contributors have translated parts of the FreeBSD documentation " "to other languages. They are available through links on the link:https://" "www.FreeBSD.org/[FreeBSD web site] or in [.filename]#/usr/share/doc#." msgstr ""