[Gambas-user] Linux Mint - Project Localization

David Sanromá dsanroma at gmail.com
Tue Nov 6 15:52:23 CET 2018


Hello everyone,


I am practicing some stuff in Gambas and I cannot make localization 
work. It does nothing. A line like:


GridView1.Columns[DEVICE_COL].Text = ("Device")


Does not translate at all... and of course I added a translation for it 
in the "Project translation" dialog. ;)


I read the documentation and I searched the mailing list and I cannot 
see what I am doing wrong.

I am running Mint 18.3 and I fully installed both English(US) and the 
Spanish languages, on top of following the translation instructions, of 
course.

I even checked if the translation get copied to temp and it does

$ tree /tmp/gambas.1000/
/tmp/gambas.1000/
└── 2906
     └── tr
         └── es_ES.UTF-8
             └── LC_MESSAGES
                 └── gb.mo


TIA,

David



Here is my System Information that Gambas gives:

[System]
Gambas=3.11.4
OperatingSystem=Linux
Kernel=4.15.0-38-generic
Architecture=x86_64
Distribution=Linux Mint 18.3 Sylvia
Desktop=CINNAMON
Theme=Gtk
Language=es_ES.UTF-8
Memory=32040M

[Libraries]
Cairo=libcairo.so.2.11400.6
Curl=libcurl.so.4.4.0
DBus=libdbus-1.so.3.14.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.803.0
GTK+2=libgtk-x11-2.0.so.0.2400.30
GTK+3=libgtk-3.so.0.1800.9
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.58.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.5.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
CINNAMON_VERSION=3.6.7
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-FlAT2wpUSp,guid=2dd2a1fda6faea7776fbc7155be1a5b1
DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path
DESKTOP_SESSION=cinnamon
DISPLAY=:0
GB_GUI=gb.qt4
GDMSESSION=cinnamon
GDM_LANG=es_ES
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=4092
GJS_DEBUG_OUTPUT=stderr
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GTK_MODULES=gail:atk-bridge
GTK_OVERLAY_SCROLLING=1
HOME=<home>
LANG=es_ES.UTF-8
LANGUAGE=es_ES:es
LC_ADDRESS=es_ES.UTF-8
LC_IDENTIFICATION=es_ES.UTF-8
LC_MEASUREMENT=es_ES.UTF-8
LC_MONETARY=es_ES.UTF-8
LC_NAME=es_ES.UTF-8
LC_NUMERIC=es_ES.UTF-8
LC_PAPER=es_ES.UTF-8
LC_TELEPHONE=es_ES.UTF-8
LC_TIME=es_ES.UTF-8
LOGNAME=<user>
MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path
PATH=<home>/bin:<home>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:<home>/.dotnet/tools
PWD=<home>
QT_ACCESSIBILITY=1
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
QT_QPA_PLATFORMTHEME=qgnomeplatform
QT_STYLE_OVERRIDE=gtk
ROOT_LANG=es_ES.UTF-8
ROOT_USES_LANG=yes
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1400,unix/<hostname>:/tmp/.ICE-unix/1400
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=1460
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
XDG_CURRENT_DESKTOP=X-Cinnamon
XDG_DATA_DIRS=<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share/:/usr/share/cinnamon:/usr/share/gnome:<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user>
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_DESKTOP=cinnamon
XDG_SESSION_ID=c1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7



More information about the User mailing list