This project is mirrored from https://github.com/sympa-community/sympa.git. Pull mirroring updated .
  1. 14 May, 2014 1 commit
  2. 13 May, 2014 1 commit
    • sikeda's avatar
      [dev] Rewriting Sympa::Language. · 9e24975b
      sikeda authored
      - Now Sympa::Language is singleton class.  Get instance using Sympa::Language->instance().
      - Changed names of functions.
        CanonicLang     => canonic_lang
        ImplicatedLangs => implicated_langs
        Lang2Locale     => lang2locale
        Lang2Locale_old => lang2oldlocale (ex. Lang2Locale() in Language package)
        NegotiateLang   => negotiate_lang
      - Changed names of methods (formerly functions).
        PushLang        => push_lang
        PopLang         => pop_lang (allows multiple arguments)
        SetLang         => set_lang (ditto)
        GetLangName     => native_name (optional argment was deprecated)
        GetLang         => get_lang
        sympa_dgettext  => dgettext
      - Added a new method gettext_sprintf().  It will be extracted by po/xgettext.pl.
      - Now POSIX locale will be set at inside of gettext_sprintf() and gettext_strftime().  Native strftime(), sprintf() etc. won't be affected by set_lang().
      - maketext() was deprecated.
      - GetCharset() was deprecated.  Use tools::lang2charset().
      
      
      git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@10608 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
      9e24975b
  3. 09 Apr, 2014 1 commit
  4. 08 Apr, 2014 1 commit
  5. 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/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