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

 
 

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

Submitted by:  None
Submitted on:  Thu 07 May 2009 01:37:14 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Confirmed
Privacy: PublicAssigned to: Bruno Haible <haible>
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 07 May 2009 10:43:58 PM UTC, 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 07 May 2009 01:37:14 PM UTC, 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

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 07 May 2009 10:43:58 PM UTChaibleAssigned toNone=>haible
    Thu 07 May 2009 10:43:57 PM UTChaibleStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup