bugGNU gettext - Bugs: bug #26483, RFE: Retrieve translation of a...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #26483: RFE: Retrieve translation of a specific locale without calling setlocale()

Submitted by:  None
Submitted on:  Thu May 7 13:37:14 2009  
 
Category: Programmer interfaceSeverity: 3 - Normal
Item Group: NoneStatus: Confirmed
Privacy: PublicAssigned to: Bruno Haible <haible>
Open/Closed: Open

Thu May 7 22:43:58 2009, comment #1:

You are right. But it's hard to find an API that is at the
same time close to glibc APIs and easy to implement portably.

For something close to glibc APIs, there is the rejected
proposal in
http://sources.redhat.com/ml/libc-alpha/2005-04/msg00123.html

If only the glibc platforms are targeted, uselocale and gettext
do the trick:
http://lists.gnu.org/archive/html/bug-gnu-utils/2006-06/msg00037.html

If portability is desired, we tried to port the locale_t type
to all platforms here, but abandoned it:
http://svn.gnome.org/viewvc/giulia/trunk/glocale/libintl/

What is the right way to proceed on this issue?

Bruno Haible <haible>
Project AdministratorIn charge of this item.
Thu May 7 13:37:14 2009, original submission:

A very useful enhancement to gettext would be the availability of an interface such as:
char lgettext(const char locale, const char *msg_id)

This would allow the caller to specify, just for the duration of this call to gettext, which locale to use.

Being able to avoid the use of setlocale() would significantly reduce the risk of synchronization bugs in threaded programs.

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by haible (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Nov 27 00:16:17 2016haibleCategoryNone=>Programmer interface
    Thu May 7 22:43:58 2009haibleAssigned toNone=>haible
    Thu May 7 22:43:57 2009haibleStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup