[Boost-bugs] [Boost C++ Libraries] #7266: Gettext path formats.

Subject: [Boost-bugs] [Boost C++ Libraries] #7266: Gettext path formats.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-23 05:47:10


#7266: Gettext path formats.
-------------------------------------+--------------------------------------
 Reporter: 166291@… | Owner: artyom
     Type: Patches | Status: new
Milestone: To Be Determined | Component: locale
  Version: Boost Development Trunk | Severity: Not Applicable
 Keywords: |
-------------------------------------+--------------------------------------
 {{{
 I'm extremely happy about Boost.Locale, but I've found a few things
 lacking. So at first I wrote a some wrappers to get around a few flaws
 with my usage of Boost.Locale. One of these flaws was how it's hardcoded
 to use the Gettext directory hierarchy.

 I'd rather store my stuff in 'lang/en_US.mo' rather than
 'lang/en_US/LC_MESSAGES/my_app.mo'.

 The patch adds a 'path format' feature, which allows you to format the
 directory structure when finding Gettext catalogs, to achieve the effect
 above. All you really have to do is run:

    gen.add_path_format("{1}/{2}.mo"); // Use a smaller hierarchy.

 to achieve the result that I prefer, or

    gen.add_path_format("{1}/{2}/{3}/{4}.mo"); // Use a Gettext hierarchy.

 to achieve the result that Boost.Locale uses right now. Ripped straight
 from Doxygen comments:

    {1} A path to search for catalogs in.
    {2} The locale's name.
    {3} The locale's category.
    {4} The Gettext domain.
 }}}

 I apologize for the cut and paste from it but I'm having trouble with
 trac.
 The full thread with patches can be found at:
 http://lists.boost.org/Archives/boost/2012/08/195789.php

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7266>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC