[GRASS-dev] Translations and command description/options
Markus Neteler
neteler at osgeo.org
Wed Mar 6 12:53:07 PST 2019
On Wed, Mar 6, 2019 at 9:48 PM Panagiotis Mavrogiorgos <pmav99 at gmail.com> wrote:
> On Wed, Mar 6, 2019 at 10:26 PM Markus Neteler <neteler at osgeo.org> wrote:
>>
>> On Wed, Mar 6, 2019 at 8:20 PM Panagiotis Mavrogiorgos <pmav99 at gmail.com> wrote:
>> >
>> > hello everyone
>> >
>> > After activating the french locale and running GRASS GIS with
>> >
>> >> LANG=fr_FR.UTF-8 LANGUAGE=fr_FR.UTF-8 LC_MESSAGES=fr_FR.UTF-8 bin.x86_64-pc-linux-gnu/grass77
>>
>> AFAIK you need to export the variables:
>>
>> # the content of my helper script:
>> [mneteler at oboe ~ ]$ cat ~/bin/fr.sh
>> export LANG=fr_FR.UTF-8
>> export LANGUAGE=fr_FR.UTF-8
>> export LC_MESSAGES=fr_FR.UTF-8
>>
>> # sourcing it into the current terminal session
>> [mneteler at oboe ~ ]$ . ~/bin/fr.sh
>>
>> [mneteler at oboe ~ ]$ grass77 ~/grassdata/nc_spm_08_grass7/user1
>> __________ ___ __________ _______________
>> / ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/
>> / / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \
>> / /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ /
>> \____/_/ |_/_/ |_/____/____/ \____/___//____/
>>
>> Bienvenue dans le SIG GRASS 7.7.svn (r74163)
>> Page d'accueil du SIG GRASS : https://grass.osgeo.org
>> Cette version fonctionne avec : Bash Shell (/bin/bash)
>> L'aide est disponible par la commande : g.manual -i
>> Voir les termes de la licence avec : g.version -c
>> Voir les termes de la licence avec : g.version -x
>> Démarrer l'interface graphique avec : g.gui wxpython
>> Lors prêt pour la fermeture entrer : exit
>>
>> GRASS 7.7.svn (nc_spm_08_grass7):~ > r3.cross.rast --help
>> Créer une section de coupe 2D depuis une carte raster 3D et une carte d'altitude 2D
>>
>> Utilisation :
>> r3.cross.rast [-m] input=string elevation=string output=string
>> [--overwrite] [--help] [--verbose] [--quiet] [--ui]
>>
>> Options :
>> -m Utiliser le masque raster 3D (s'il existe) surnla carte en entrée
[...]
> That's also what I was expecting to see, because the strings are wrapped with _() and they should be translated, but that's not what I observe... Here is what happens on my PC:
> https://asciinema.org/a/MWCHVRe70tpYJpFVYTMccNKdo
> At 0.11 you can clearly see that command description is not translated.
Indeed!
> So does anyone has any ideas?
Please check this:
GRASS 7.7.svn (nc_spm_08_grass7):~ > echo $SHELL
/bin/bash
--> what is your shell?
GRASS 7.7.svn (nc_spm_08_grass7):~ > set | grep fr
LANG=fr_FR
LANGUAGE=fr_FR
LC_ADDRESS=fr_FR.UTF-8
LC_COLLATE=fr_FR.UTF-8
LC_CTYPE=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_MESSAGES=fr_FR.UTF-8
LC_MONETARY=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_PAPER=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
.. do you have the same?
cheers
Markus
More information about the grass-dev
mailing list