• sikeda's avatar
    [change] Sympa::Language, rewriting of Language module to handle i18n. · d364ff49
    sikeda authored
    The new module is committed for purpose of unit test.
    
    Coming features:
    - Language/locale contexts are identified by IETF language tags defined by RFC 5646 (BCP 47).  Older style "locale" by earlier releases would be canonicalized.
    - System locale is not absolutely nessessary to add a new language: gettext catalog is required.
    - If appropriate POSIX locale is not installed, gettext_strftime() emulates POSIX::strftime(): names of days, months etc. will be taken from catalog.
    - Content negotiation used by HTTP 1.1 was implemented.
    
    Internal changes:
    - "Language:" field in PO header became mandatory to determine actually selected catalog.  Modified po/Makefile.in.in to run msgcat, msgen or msgmerge with --lang option.
    - Dependent libintl-perl (Locale::Messages) requires 1.22 (virtually 1.23) or later to use locale-independent gettext_dumb feature.
    - Default language context is fixed to "en" and no longer retrieved implicitly from site config (charset.conf).  $Language::default_lang was deprecated.
    
    Miscelaneous:
    - Added unittest t/Language.t and several test data.
    - Added test stub module for Sympa::Constants.
    
    
    git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@10529 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
    d364ff49