[Mapbender-users] what is needed to get mapbender 2.5 make use of new po translation files
Peter Freimuth
freimuth at rapideye.de
Wed Jan 28 06:14:45 EST 2009
On Wednesday 28 January 2009 11:03:17 Christoph Baudson wrote:
> Hi Peter,
>
> did you check the Mapbender log file? Maybe set your log level to
> "notice" to find out what went wrong.
>
> Did you install the locales? Check via
>
> locale -a
>
> You might also have to add code to the function setSystemLocales() in
> class_locale.php, in order to link the locale to the system locale.
>
> Maybe also restart your web server, if the above is fine. I experienced
> caching issues after editing and compiling po-files.
>
> Christoph
>
>
> Peter Freimuth schrieb:
> > Hi list,
> > we are still trying to get the translation stuff running. We added all translations to to translations table and this works fine. We have also created the new po files based with all translations for the current modules. But somehow, these new po files (allready compiled into mo format by msgfmt resources/locale/pt_PT/LC_MESSAGES/Mapbender.po -o resources/locale/pt_PT/LC_MESSAGES/Mapbender.mo ) is not used at all. We added the new language to class_language
> > /**
> > * set the known languages
> > */
> > function setKnownLanguages() {
> > $this->knownLanguages = array('en_US' => 'en_US',
> > 'en' => 'en_US',
> > 'de_DE' => 'de_DE',
> > 'de' => 'de_DE',
> > 'bg_BG' => 'bg_BG',
> > 'bg' => 'bg_BG',
> > 'es_ES' => 'es_ES',
> > 'es' => 'es_ES',
> > 'pt_PT' => 'pt_PT',
> > 'pt' => 'pt_PT',
> > 'nl_NL' => 'nl_NL',
> > 'nl' => 'nl_NL',
> > 'fr_FR' => 'fr_FR',
> > 'fr' => 'fr_FR',
> > 'gr_GR' => 'gr_GR',
> > 'gr' => 'gr_GR',
> > 'it_IT' => 'it_IT',
> > 'it' => 'it_IT');
> > }
> > but somehow nothing happens with the digitize and spatial select button tooltips when language is change in the interface.
> > Any ideas?
> > Peter
> >
> >
>
>
OK,
the missing part was to add the new locales to
function setSystemLocales() {
$this->systemLocales['pt_PT'] = array('linux' => 'pt_PT.utf8',
'windows' => 'Portuguese_Portugal.1252',
'bsd' => 'pt_PT',
'posix' => 'pt_PT');
$this->systemLocales['fr_FR'] = array('linux' => 'fr_FR.utf8',
'windows' => 'French_France.1252',
'bsd' => 'fr_FR',
'posix' => 'fr_FR');
$this->systemLocales['es_ES'] = array('linux' => 'es_ES.utf8',
'windows' => 'Spanish_Spain.1252',
'bsd' => 'es_ES',
'posix' => 'es_ES');
$this->systemLocales['it_IT'] = array('linux' => 'it_IT.utf8',
'windows' => 'Italian_Italy.1252',
'bsd' => 'it_IT',
'posix' => 'it_IT');
$this->systemLocales['de_DE'] = array('linux' => 'de_DE.utf8',
'windows' => 'German_Germany.1252',
'bsd' => 'de_DE',
'posix' => 'de_DE');
$this->systemLocales['en_US'] = array('linux' => 'en_US.utf8',
'windows' => 'English_United States.1252',
'bsd' => 'en_US',
'posix' => 'en_US');
}
Thanks for the hint!
How to contribute the new translations to the project?
Kind regards,
Peter
--
_______________________________________________________________________
Peter Freimuth phone: +49 3381 8904327
Product Development fax: +49 3381 8904101
RapidEye AG email: freimuth at rapideye.de
Molkenmarkt 30
14776 Brandenburg an der Havel http://www.rapideye.de
Germany
_______________________________________________________________________
PRIVILEGE AND CONFIDENTIALITY NOTICE:
The information in this email is intended for the named recipients
only. It may contain privileged and confidential information. If you
have received this communication in error, any use, copying or
dissemination of its contents is strictly prohibited. Please erase all
copies of the message along with any included attachments and notify
RapidEye AG or the sender immediately by telephone at the number
indicated on this page.
_______________________________________________________________________
RapidEye AG
Molkenmarkt 30
14776 Brandenburg an der Havel
Germany
Head Office/Sitz der Gesellschaft: Brandenburg an der Havel
Management Board/Vorstand: Wolfgang G. Biedermann
Chairman of Supervisory Board/Vorsitzender des Aufsichtsrates: Axel Schmalz
Commercial Register/Handelsregister Potsdam HRB 17 796
Tax Number/Steuernummer: 048/100/00053
VAT-Ident-Number/Ust.-ID: DE 199331235
DIN EN ISO 9001 certified
*************************************************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie
die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
The information in this e-mail is intended for the named recipients
only. It may contain privileged and confidential information. If you
have received this communication in error, any use, copying or
dissemination of its contents is strictly prohibited. Please erase all
copies of the message along with any included attachments and notify
RapidEye AG or the sender immediately by telephone at the number
indicated on this page.
More information about the Mapbender_users
mailing list