Opened 15 years ago

Closed 14 years ago

#549 closed enhancement (fixed)

i18n provide translations (.po) for the different locales

Reported by: astrid_emde Owned by: dev
Priority: major Milestone: 2.7 release
Component: i18n Version:
Keywords: i18n Cc:

Description

  • an example: the belgium french (fr_BE) translation maybe different than the french french (fr_FR), but in Mapbender we select just fr at the moement.
  • it would be better to select the language by fr_BE or fr_FR --> the locale code

Change History (2)

comment:1 by astrid_emde, 14 years ago

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");

  1. 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',   
                             ....
    

comment:2 by astrid_emde, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.