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
both the GUI and the TUI are translated. E.g.
/ / __ / | / / / / __/ / /
/ / __/ // / /| | _ \ \ / / __ / / _
/ // / , / ___ |/ // / / // // / / /
_// |// |/// _///_/
Bienvenue dans le SIG GRASS 7.7.svn (exported)
Page d’accueil du SIG GRASS : https://grass.osgeo.org
Cette version fonctionne avec : Z Shell (/usr/bin/zsh)
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
Si requis, redémarrer l’interface graphique avec :g.gui wxpython
Lors prêt pour la fermeture entrer : exit

Nevertheless, the command descriptions and options are not. E.g.:
r3.cross.rast --help
Creates cross section 2D raster map from 3D raster map based on 2D elevation map
Usage:
r3.cross.rast [-m] input=string elevation=string output=string
[–overwrite] [–help] [–verbose] [–quiet] [–ui]
Flags:
-m Use 3D raster mask (if exists) with input map
Parameters:
input Input 3D raster map for cross section
elevation 2D elevation map used to create the cross section map
output Resulting cross section 2D raster map

The question is: Are command description supposed to be translated too or not? I mean, is everything working as expected or is there something wrong in my setup?
with kind regards,
Panos
On Wed, Mar 6, 2019 at 8:20 PM Panagiotis Mavrogiorgos <pmav99@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@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@oboe ~ ]$ . ~/bin/fr.sh
[mneteler@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
Paramètres :
input Carte raste 3D d’entrée pour la section de coupe
elevation Carte 2D d’altitudes pour créer la carte de section de coupe
output Carte raster 2D en sortie de la section de coupe
Looks ok to me…
Markus
On Wed, Mar 6, 2019 at 10:26 PM Markus Neteler <neteler@osgeo.org> wrote:
On Wed, Mar 6, 2019 at 8:20 PM Panagiotis Mavrogiorgos <pmav99@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@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@oboe ~ ]$ . ~/bin/fr.sh
[mneteler@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
Paramètres :
input Carte raste 3D d’entrée pour la section de coupe
elevation Carte 2D d’altitudes pour créer la carte de section de coupe
output Carte raster 2D en sortie de la section de coupe
Looks ok to me…
Markus
Thank you Markus
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.
So does anyone has any ideas?
Panos
On Wed, Mar 6, 2019 at 9:48 PM Panagiotis Mavrogiorgos <pmav99@gmail.com> wrote:
On Wed, Mar 6, 2019 at 10:26 PM Markus Neteler <neteler@osgeo.org> wrote:
On Wed, Mar 6, 2019 at 8:20 PM Panagiotis Mavrogiorgos <pmav99@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@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@oboe ~ ]$ . ~/bin/fr.sh
[mneteler@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
On Wed, Mar 6, 2019 at 10:53 PM Markus Neteler <neteler@osgeo.org> wrote:
On Wed, Mar 6, 2019 at 9:48 PM Panagiotis Mavrogiorgos <pmav99@gmail.com> wrote:
On Wed, Mar 6, 2019 at 10:26 PM Markus Neteler <neteler@osgeo.org> wrote:
On Wed, Mar 6, 2019 at 8:20 PM Panagiotis Mavrogiorgos <pmav99@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@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@oboe ~ ]$ . ~/bin/fr.sh
[mneteler@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
→ what is your shell?
I use zsh. I just tried this with bash but I still don’t get the translations, so we can probably rule this out.
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?
Yes I believe so. Here is mine:
$ 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