Skip to Content.
Sympa Menu

en - Re: [sympa-users] Sympa only in English and no language selection dropdown box

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Amos Batto <address@concealed>
  • To: "address@concealed" <address@concealed>
  • Subject: Re: [sympa-users] Sympa only in English and no language selection dropdown box
  • Date: Sun, 16 Mar 2014 19:45:50 -0700 (PDT)

OK, I still can't figure out why  wwsympa only appears in English, but I have a few more details that might help debug this.

I added these lines to the end of the SetLang function in lib/Language.pm:
printf $locale;
printf $lang;
printf Sympa::Constants::LOCALEDIR;
 
The first time I opened wwsympa, "en_US us /usr/lib/sympa/locale/" appeared at the top of the screen, but it never appeared after that, so I assume that the SetLang function is only run once per session. The question is why isn't wwsympa reading the lang setting in my configuration file?  My /etc/sympa/sympa.conf file is readable:
-rw-r--r-- 1 sympa sympa 10561 mar 14 22:32 /etc/sympa/sympa.conf

There are no messages in my /var/log/sympa.log file to indicate that Sympa can't get the locale information. (According to the source code, the SetLang function should write an error message if it can't get the locale.)

Any suggestions?

-Amos

From: Amos Batto <address@concealed>
To: "address@concealed" <address@concealed>
Sent: Friday, March 14, 2014 10:31 PM
Subject: [sympa-users] Sympa only in English and no language selection dropdown box

Hi, I have installed Sympa 6.1in Debian Wheezy using the standard package (apt-get install sympa). Everything seems to be working, however, no "Language selection" dropdown box appears in the left-hand sidebar in my website at: http://www.reaccionclimatica.org/wws
The web page only appears in English, despite the fact that I have set "es" (Spanish) as the default language and the Spanish MO file is installed on my server.

When I try to configure a user in the web interface, there is a dropdown box to select the language of the user, but only "English" appears in the list of options.

In my /etc/sympa/sympa.conf file, I have:

###\\\\ Internationalization ////###

## Default lang (ca | cs | de | el | es | et_EE | en_US | fr | fi | hu | it | ja_JP | ko | nl | nb_NO | oc | pl | pt_BR | ru | sv | tr | vi | zh_CN | zh_TW)
## This is the default language used by Sympa
lang            es

## Supported languages
## This is the set of language that will be proposed to your users for the Sympa GUI. Don't select a language if you don't have the proper locale packages installed.
supported_lang  es,en,pt_BR,fr


In /etc/sympa/wwsympa.conf, I don't have anything under the "Internationalization" section. I have the translation files installed on the server
# locate -i sympa.mo
/usr/lib/sympa/locale/ar/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/bg/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/br/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/ca/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/cs/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/de/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/el/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/en_US/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/es/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/et/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/eu/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/fi/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/fr/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/gl/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/hu/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/id/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/ja/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/ko/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/la/LC_MESSAGES/sympa.mo
/usr/lib/sympa/local e/ml/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/nb_NO/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/nl/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/pl/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/pt/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/pt_BR/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/ro/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/ru/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/sv/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/tr/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/vi/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/zh_CN/LC_MESSAGES/sympa.mo
/usr/lib/sympa/locale/zh_TW/LC_MESSAGES/sympa.mo


Any idea what is wrong? Is this a bug in the Debian package?

I tried adding this option in sympa.conf:
localedir /usr/lib/sympa/locale/
But it gave an error message, when I restarted Sympa.

Regards,
Amos





Archive powered by MHonArc 2.6.19+.

Top of Page