Bug 73658 - Using locale instead of translating currency info in redhat-config-network
Summary: Using locale instead of translating currency info in redhat-config-network
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: redhat-config-network
Version: 8.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-09-07 22:40 UTC by Christian Rose
Modified: 2008-05-01 15:38 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-12-16 11:49:27 UTC
Embargoed:


Attachments (Terms of Use)

Description Christian Rose 2002-09-07 22:40:34 UTC
#: src/netconfpkg/gui/neat-control-propertiesdialog.glade.h:1
msgid "$"

I reckon that this is a dollar sign as in the currency USD.

It would probably be much better if redhat-config-network could use the locale's
currency information than having it "translated". For example, some languages
are used in more than one country and are hence used with many different
currencies, so hardcoding a default like this in the translation is probably
very wrong.

With this code snippet I get the currency from the locale's information on the
console:

#--------------------
#define _GNU_SOURCE
#include <langinfo.h>
#include <locale.h>
#include <stdio.h>

int main ()
{
  setlocale (LC_ALL, "");
  printf (nl_langinfo (__CURRENCY_SYMBOL));
  printf ("\n");
  return 0;
}
#--------------------

You could probably use something similar.

Comment 1 Harald Hoyer 2002-12-16 11:49:27 UTC
unused

Comment 2 Christian Rose 2002-12-16 22:59:29 UTC
If it's not used anymore, how come this is marked as notabug? If it's not a bug
anymore, a more suiting resolution probably is "resolved".


Note You need to log in before you can comment on or make changes to this bug.