Le vendredi 1er septembre 2006 à 08:41:05 -0700 minet écrivait :

> I install Lyx 1.4.2 with a package named lyx-1.4.2_1.4.2-1_i386.deb
> [...] It works in french except for the menu bar where the accent are
> lost.

Here is another solution that works well for me (Ubuntu Dapper)

Edit as root (sudo) /var/lib/locales/supported.d/local which is the
file read to generate your locales in Ubuntu Dapper. I suggest these
lines to be ajusted following your own locales. For someone in Québec,
it is :

fr_CA.UTF-8 UTF-8
fr_CA ISO-8859-1
en_US.UTF-8 UTF-8

for someone in France it may be:

fr_FR.UTF-8 UTF-8
fr_FR ISO-8859-15
fr_FR ISO-8859-1
en_GB.UTF-8 UTF-8

save the file and, in a terminal, type

sudo dpkg-reconfigure locales

Finally, to launch LyX you type this command

LANG=fr_CA;lyx
if your locale is fr_CA or
LANG=fr_FR;lyx
if your locale is fr_FR

to make permanent this command, you may edit your menu, create an icon
with the command or edit your .bashrc by adding this alias

alias lyx='LANG=fr_CA;lyx'

Don't forget to adjust your french locale according to your country
code (FR, CA, BE, CH) in all the above. fr_CA ISO-8859-15 doesn't seem
to work nor can be generated, that's why it is absent from the
file /var/lib/locales/supported.d/local.

Raymond

-- 

Édité et transmis avec des logiciels libres sous Linux !

Reply via email to