mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[I18N] use msgctxt for Reconciled flags
Final step for [Bug 797349] "A"ssociate header badly translated
This commit is contained in:
parent
48e81d221d
commit
bbcf19ae6a
@ -887,20 +887,6 @@ gnc_ui_account_get_tax_info_sub_acct_string (const Account *account)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *
|
|
||||||
string_after_colon (const char *msgstr)
|
|
||||||
{
|
|
||||||
const char *string_at_colon;
|
|
||||||
g_assert(msgstr);
|
|
||||||
string_at_colon = strchr(msgstr, ':');
|
|
||||||
if (string_at_colon)
|
|
||||||
return string_at_colon + 1;
|
|
||||||
else
|
|
||||||
/* No colon found; we assume the translation contains only the
|
|
||||||
part after the colon, similar to the disambiguation prefixes */
|
|
||||||
return msgstr;
|
|
||||||
}
|
|
||||||
|
|
||||||
/********************************************************************\
|
/********************************************************************\
|
||||||
* gnc_get_reconcile_str *
|
* gnc_get_reconcile_str *
|
||||||
* return the i18n'd string for the given reconciled flag *
|
* return the i18n'd string for the given reconciled flag *
|
||||||
@ -914,22 +900,15 @@ gnc_get_reconcile_str (char reconciled_flag)
|
|||||||
switch (reconciled_flag)
|
switch (reconciled_flag)
|
||||||
{
|
{
|
||||||
case NREC:
|
case NREC:
|
||||||
/* Translators: For the following strings, the single letters
|
return C_("Reconciled flag 'not cleared'", "n");
|
||||||
after the colon are abbreviations of the word before the
|
|
||||||
colon. You should only translate the letter *after* the colon. */
|
|
||||||
return string_after_colon(_("not cleared:n"));
|
|
||||||
case CREC:
|
case CREC:
|
||||||
/* Translators: Please only translate the letter *after* the colon. */
|
return C_("Reconciled flag 'cleared'", "c");
|
||||||
return string_after_colon(_("cleared:c"));
|
|
||||||
case YREC:
|
case YREC:
|
||||||
/* Translators: Please only translate the letter *after* the colon. */
|
return C_("Reconciled flag 'reconciled'", "y");
|
||||||
return string_after_colon(_("reconciled:y"));
|
|
||||||
case FREC:
|
case FREC:
|
||||||
/* Translators: Please only translate the letter *after* the colon. */
|
return C_("Reconciled flag 'frozen'", "f");
|
||||||
return string_after_colon(_("frozen:f"));
|
|
||||||
case VREC:
|
case VREC:
|
||||||
/* Translators: Please only translate the letter *after* the colon. */
|
return C_("Reconciled flag 'void'", "v");
|
||||||
return string_after_colon(_("void:v"));
|
|
||||||
default:
|
default:
|
||||||
PERR("Bad reconciled flag\n");
|
PERR("Bad reconciled flag\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user