mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Mark the number-to-word code as non-translatable because, as the
comment in the code says, adding a word-by-word translation is almost surely wrong for almost every language. This change was recommended by the translation manager. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15903 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
68e28cfd05
commit
aa8e077947
@ -1575,16 +1575,14 @@ xaccPrintAmount (gnc_numeric val, GNCPrintAmountInfo info)
|
|||||||
|
|
||||||
#define FUDGE .00001
|
#define FUDGE .00001
|
||||||
|
|
||||||
/* Sigh. This (from r15709) is a translators/i18nator's nightmare. I'd
|
/* This function is basically untranslatable. I'd
|
||||||
guess out of the 29 translations we have, 20 will have their number
|
guess out of the 29 translations we have, 20 will have their number
|
||||||
wordings in a totally different way than English has (not to
|
wordings in a totally different way than English has (not to
|
||||||
mention gender-dependent number endings). Which means this
|
mention gender-dependent number endings). Which means this
|
||||||
word-by-word translation will be useless or even plain
|
word-by-word translation will be useless or even plain
|
||||||
wrong. However, in many of those countries there might be no need
|
wrong. For this reason, we don't even start to pretend a
|
||||||
for check printing with amounts in words anyway, which means many
|
word-by-word translation would be of any use, so we don't mark any
|
||||||
of those languages probably can ignore this whole section
|
of these strings for translation. cstim, 2007-04-15. */
|
||||||
altogether. Let's simply pretend a word-by-word translation were
|
|
||||||
"almost" correct. cstim, 2007-04-14. */
|
|
||||||
static gchar *small_numbers[] = {
|
static gchar *small_numbers[] = {
|
||||||
/* Translators: This section is for generating the "amount, in
|
/* Translators: This section is for generating the "amount, in
|
||||||
words" field when printing a check. This function gets the
|
words" field when printing a check. This function gets the
|
||||||
@ -1592,35 +1590,35 @@ static gchar *small_numbers[] = {
|
|||||||
languages. Decide for yourself whether the check printing is
|
languages. Decide for yourself whether the check printing is
|
||||||
actually needed in your language; if not, you can safely skip the
|
actually needed in your language; if not, you can safely skip the
|
||||||
translation of all of these strings. */
|
translation of all of these strings. */
|
||||||
N_("Zero"), N_("One"), N_("Two"), N_("Three"), N_("Four"),
|
"Zero", "One", "Two", "Three", "Four",
|
||||||
N_("Five"), N_("Six"), N_("Seven"), N_("Eight"), N_("Nine"),
|
"Five", "Six", "Seven", "Eight", "Nine",
|
||||||
N_("Ten"), N_("Eleven"), N_("Twelve"), N_("Thirteen"), N_("Fourteen"),
|
"Ten", "Eleven", "Twelve", "Thirteen", "Fourteen",
|
||||||
N_("Fifteen"), N_("Sixteen"), N_("Seventeen"), N_("Eighteen"), N_("Nineteen"),
|
"Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen",
|
||||||
N_("Twenty")};
|
"Twenty"};
|
||||||
static gchar *medium_numbers[] = {
|
static gchar *medium_numbers[] = {
|
||||||
N_("Zero"), N_("Ten"), N_("Twenty"), N_("Thirty"), N_("Forty"),
|
"Zero", "Ten", "Twenty", "Thirty", "Forty",
|
||||||
N_("Fifty"), N_("Sixty"), N_("Seventy"), N_("Eighty"), N_("Ninety")};
|
"Fifty", "Sixty", "Seventy", "Eighty", "Ninety"};
|
||||||
static gchar *big_numbers[] = {
|
static gchar *big_numbers[] = {
|
||||||
/* Translators: This is the word for the number 10^2 */
|
/* Translators: This is the word for the number 10^2 */
|
||||||
N_("Hundred"),
|
"Hundred",
|
||||||
/* Translators: This is the word for the number 10^3 */
|
/* Translators: This is the word for the number 10^3 */
|
||||||
N_("Thousand"),
|
"Thousand",
|
||||||
/* Translators: This is the word for the number 10^6, one thousand
|
/* Translators: This is the word for the number 10^6, one thousand
|
||||||
thousands. */
|
thousands. */
|
||||||
N_("Million"),
|
"Million",
|
||||||
/* Translators: This is the word for the number 10^9, one thousand
|
/* Translators: This is the word for the number 10^9, one thousand
|
||||||
millions. WATCH OUT: In British english and many other languages
|
millions. WATCH OUT: In British english and many other languages
|
||||||
this word is used for 10^12 which is one million millions! In
|
this word is used for 10^12 which is one million millions! In
|
||||||
contrast to this, here in GnuCash this is used in the American
|
contrast to this, here in GnuCash this is used in the American
|
||||||
english meaning of 10^9. */
|
english meaning of 10^9. */
|
||||||
N_("Billion"),
|
"Billion",
|
||||||
/* Translators: This is the word for the number 10^12, one million
|
/* Translators: This is the word for the number 10^12, one million
|
||||||
millions. */
|
millions. */
|
||||||
N_("Trillion"),
|
"Trillion",
|
||||||
/* Translators: This is the word for the number 10^15 */
|
/* Translators: This is the word for the number 10^15 */
|
||||||
N_("Quadrillion"),
|
"Quadrillion",
|
||||||
/* Translators: This is the word for the number 10^18 */
|
/* Translators: This is the word for the number 10^18 */
|
||||||
N_("Quintillion")};
|
"Quintillion"};
|
||||||
|
|
||||||
static gchar *
|
static gchar *
|
||||||
integer_to_words(gint64 val)
|
integer_to_words(gint64 val)
|
||||||
@ -1696,7 +1694,7 @@ number_to_words(gdouble val, gint64 denom)
|
|||||||
printing. The first %s is the integer amount of dollars (or
|
printing. The first %s is the integer amount of dollars (or
|
||||||
whatever currency), the second and third %s the cent amount as
|
whatever currency), the second and third %s the cent amount as
|
||||||
a fraction, e.g. 47/100. */
|
a fraction, e.g. 47/100. */
|
||||||
g_strdup_printf(_("%s and %s/%s"),
|
g_strdup_printf("%s and %s/%s",
|
||||||
int_string, nomin_string, denom_string);
|
int_string, nomin_string, denom_string);
|
||||||
g_free(int_string);
|
g_free(int_string);
|
||||||
g_free(nomin_string);
|
g_free(nomin_string);
|
||||||
|
Loading…
Reference in New Issue
Block a user