Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

speakup: Add documentation on changing the speakup messages language

This documents how to use speakup_setlocale to set the speakup messages
language.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Link: https://lore.kernel.org/r/20210126222147.3848175-5-samuel.thibault@ens-lyon.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Samuel Thibault and committed by
Greg Kroah-Hartman
cae2181b 11742252

+46 -2
+46 -2
Documentation/admin-guide/spkguide.txt
··· 1033 1033 The speakup key is depressed, so the name of the key state is speakup. 1034 1034 This part of the message comes from the states collection. 1035 1035 1036 - 14.2. Loading Your Own Messages 1036 + 14.2. Changing language 1037 + 1038 + 14.2.1. Loading Your Own Messages 1037 1039 1038 1040 The files under the i18n subdirectory all follow the same format. 1039 1041 They consist of lines, with one message per line. ··· 1068 1066 The next time that Speakup says message 1 from the colors group, it will 1069 1067 say "azul", rather than "blue." 1070 1068 1069 + 14.2.2. Choose a language 1070 + 1071 1071 In the future, translations into various languages will be made available, 1072 - and most users will just load the files necessary for their language. 1072 + and most users will just load the files necessary for their language. So far, 1073 + only French language is available beyond native Canadian English language. 1074 + 1075 + French is only available after you are logged in. 1076 + 1077 + Canadian English is the default language. To toggle another language, 1078 + download the source of Speakup and untar it in your home directory. The 1079 + following command should let you do this: 1080 + 1081 + tar xvjf speakup-<version>.tar.bz2 1082 + 1083 + where <version> is the version number of the application. 1084 + 1085 + Next, change to the newly created directory, then into the tools/ directory, and 1086 + run the script speakup_setlocale. You are asked the language that you want to 1087 + use. Type the number associated to your language (e.g. fr for French) then press 1088 + Enter. Needed files are copied in the i18n directory. 1089 + 1090 + Note: the speakupconf must be installed on your system so that settings are saved. 1091 + Otherwise, you will have an error: your language will be loaded but you will 1092 + have to run the script again every time Speakup restarts. 1093 + See section 16.1. for information about speakupconf. 1094 + 1095 + You will have to repeat these steps for any change of locale, i.e. if you wish 1096 + change the speakup's language or charset (iso-8859-15 ou UTF-8). 1097 + 1098 + If you wish store the settings, note that at your next login, you will need to 1099 + do: 1100 + 1101 + speakup load 1102 + 1103 + Alternatively, you can add the above line to your file 1104 + ~/.bashrc or ~/.bash_profile. 1105 + 1106 + If your system administrator ran himself the script, all the users will be able 1107 + to change from English to the language choosed by root and do directly 1108 + speakupconf load (or add this to the ~/.bashrc or 1109 + ~/.bash_profile file). If there are several languages to handle, the 1110 + administrator (or every user) will have to run the first steps until speakupconf 1111 + save, choosing the appropriate language, in every user's home directory. Every 1112 + user will then be able to do speakupconf load, Speakup will load his own settings. 1073 1113 1074 1114 14.3. No Support for Non-Western-European Languages 1075 1115