This project is mirrored from Pull mirroring updated .
  1. 28 Jan, 2020 1 commit
  2. 07 Apr, 2014 1 commit
    • 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/ 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.
      - Added unittest t/Language.t and several test data.
      - Added test stub module for Sympa::Constants.
      git-svn-id: 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce