| 1 |
Minicom Native Language Support |
| 2 |
|
| 3 |
Now minicom has internationalization (i18n for short) support. To make it |
| 4 |
work please do the following steps: |
| 5 |
|
| 6 |
- make sure you have gettext installed and if you compile the program |
| 7 |
yourself, check src/Makefile that "PO = po" is defined and "-D_I18N_" |
| 8 |
is included in the OPFLAGS definition |
| 9 |
|
| 10 |
- in your profile (/etc/profile or something like that for the system |
| 11 |
profile, or $HOME/.profile for your personal profile) include the |
| 12 |
following environment variable settings: |
| 13 |
|
| 14 |
---------------------------- 8< ------------------------------------------ |
| 15 |
LC_CTYPE=ISO-8859-1 # or the correct ISO code for your character set |
| 16 |
LANG=pt_BR # change pt_BR to the correct iso code for your language |
| 17 |
export LANG LC_CTYPE |
| 18 |
---------------------------- 8< ------------------------------------------ |
| 19 |
|
| 20 |
In the next login just run minicom! |
| 21 |
|
| 22 |
Currently supported languages are Brasilian Portuguese (pt_BR), Finnish |
| 23 |
(fi), Hungarian (hu), Japanese (ja_JP.sjis and ja_JP.ujis), French (fr), |
| 24 |
Polish (pl), Czech (cs), Spanish (es) and Russian (ru). |
| 25 |
Turkish translations are under construction (for a long time... :( ). |
| 26 |
|
| 27 |
If you want to add support for more languages, this is what to do: |
| 28 |
(I suppose you already have downloaded and unpacked the source packet) |
| 29 |
|
| 30 |
- go to the po directory |
| 31 |
- copy minicom.pot (or some existing *.po file) as xx.po where xx is the |
| 32 |
iso code for your language |
| 33 |
- edit the xx.po file to include the translations of the English strings |
| 34 |
to your language. The lines beginning with "msgid" contain the English |
| 35 |
string, and the lines beginning with "msgstr" is where you should write |
| 36 |
the translations. See the existing *.po files. |
| 37 |
Check that the translated strings fit their places and don't overflow. |
| 38 |
(This shouldn't cause problems in running the program, but the user |
| 39 |
might not understand the truncated text, and screen layouts may become |
| 40 |
ugly.) |
| 41 |
Pay special attention to the dialing directory menu (Dial/Find/Add etc.) |
| 42 |
if you translate it, check that the highlight cursor makes sense. |
| 43 |
The width of the highlight will be the length of the whole string divided |
| 44 |
by the number of entries. Pad the string with spaces where necessary so |
| 45 |
that there is a reasonable "cell" for each entry. |
| 46 |
- add xx (the iso code of your language) to the ALL_LINGUAS list in |
| 47 |
the "configure" and "configure.in" files (depending on where you got the |
| 48 |
source, you might not have both of them) in the minicom source base |
| 49 |
directory and rerun ./configure to add it to all the other necessary |
| 50 |
places. |
| 51 |
- run "make" and "make install" in the minicom source base directory, |
| 52 |
or if you don't want to compile the program itself, you can just run |
| 53 |
them in the po directory. You'll probably need the root permissions to |
| 54 |
run "make install", but not for anything else in the process. |
| 55 |
- send your xx.po file to the address(es) below to get it included in |
| 56 |
the next version of Minicom. I'd appreciate it if you are willing to |
| 57 |
make the necessary changes to the translation file as the program itself |
| 58 |
is changed.. it is best done by a native speaker of the language, and |
| 59 |
I don't even understand all the languages in the world! |
| 60 |
- when new versions are released some new strings probably become available |
| 61 |
for translation, please go to the src/po directory and execute make |
| 62 |
update-po, the new strings will be added to the catalogs and should then |
| 63 |
be translated. Note that any strings already translated but modified |
| 64 |
should be also fixed/translated. The old ones will be left commented at |
| 65 |
the end of the catalog. |
| 66 |
|
| 67 |
|
| 68 |
Sat 21 Mar 1998 - Fri 21 Dec 2001 |
| 69 |
Arnaldo Carvalho de Melo <[email protected]> |
| 70 |
Jukka Lahtinen <[email protected]> |