[Mapbender-dev] Re: [Mapbender] #549: i18n provide translations (.po) for the different locales

Mapbender mapbender_dev at lists.osgeo.org
Mon Dec 21 08:18:46 EST 2009


#549: i18n provide translations (.po) for the different locales
--------------------------+-------------------------------------------------
  Reporter:  astrid_emde  |       Owner:  dev        
      Type:  enhancement  |      Status:  new        
  Priority:  major        |   Milestone:  2.7 release
 Component:  i18n         |     Version:             
Resolution:               |    Keywords:  i18n       
--------------------------+-------------------------------------------------
Comment (by astrid_emde):

 It is no problem to provide translations for fr_BE. This is what you have
 to do:

 1. In mapbender.conf I changed language to:
 define("LANGUAGE", "fr_BE");

 2. In class_locale.php add:
 {{{

 function setSystemLocales() {
  ...
  $this->systemLocales['fr_BE'] = array(
                 'linux' => 'fr_BE.utf8',
                 'windows' => 'French_Belgium.1252',
                 'bsd' => 'fr_BE',
                 'posix' => 'fr_BE'
   );
   ...

 and also:
   function setKnownLanguages() {
       $this->knownLanguages = array(
                         ...
                          'fr_BE' => 'fr_BE',
                          ....
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/mapbender/ticket/549#comment:1>
Mapbender <http://www.mapbender.org/>
Mapbender


More information about the Mapbender_dev mailing list