2002-10-22 Christian Stimming <stimming@tuhh.de>

* src/engine/FreqSpec.c (xaccFreqSpecGetFreqStr): Fix several
	translation strings.

        * Update de.po translation.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7375 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2002-10-22 21:31:20 +00:00
parent cb51625082
commit c9739ad9f2
3 changed files with 639 additions and 665 deletions

1207
po/de.po

File diff suppressed because it is too large Load Diff

View File

@ -686,6 +686,7 @@ get_dom_string(guint dom)
if(dom > 31) if(dom > 31)
{ {
/* This is displayed instead of the number of the day of month. */
g_string_sprintf(str, _( "last day")); g_string_sprintf(str, _( "last day"));
} }
else else
@ -714,16 +715,22 @@ xaccFreqSpecGetFreqStr( FreqSpec *fs, GString *str )
g_date_strftime( tmpStr, GDATE_STRING_SIZE, g_date_strftime( tmpStr, GDATE_STRING_SIZE,
GNC_D_FMT, GNC_D_FMT,
&fs->s.once.date ); &fs->s.once.date );
g_string_sprintf( str, "Once: %s", tmpStr ); /* %s is the strftime-string of the one-time date. */
g_string_sprintf( str, _("Once: %s"), tmpStr );
g_free( tmpStr ); g_free( tmpStr );
break; break;
case UIFREQ_DAILY: case UIFREQ_DAILY:
g_string_sprintf( str, "Daily" ); if ( fs->s.daily.interval_days > 1 )
if ( fs->s.daily.interval_days > 1 ) { {
g_string_sprintfa( str, " (x%u)", /* %u is the number of intervals */
fs->s.daily.interval_days ); g_string_sprintf( str, _("Daily (x%u)"),
} fs->s.daily.interval_days );
}
else
{
g_string_sprintf( str, _("Daily") );
}
break; break;
case UIFREQ_DAILY_MF: case UIFREQ_DAILY_MF:
@ -739,8 +746,9 @@ xaccFreqSpecGetFreqStr( FreqSpec *fs, GString *str )
subFS = (FreqSpec*)fs->s.composites.subSpecs->data; subFS = (FreqSpec*)fs->s.composites.subSpecs->data;
if ( subFS->s.weekly.interval_weeks > 1 ) { if ( subFS->s.weekly.interval_weeks > 1 ) {
g_string_sprintf( str, _("Weekdays: (x%u)"), /* %u is the number of intervals */
subFS->s.weekly.interval_weeks ); g_string_sprintf( str, _("Weekdays: (x%u)"),
subFS->s.weekly.interval_weeks );
} }
else else
{ {
@ -779,18 +787,23 @@ xaccFreqSpecGetFreqStr( FreqSpec *fs, GString *str )
} }
if ( tmpInt > 1 ) { if ( tmpInt > 1 ) {
/* %d are the number of intervals; %s is the name of
the weekday */
g_string_sprintf( str, _( "Weekly (x%d): %s"), tmpInt, tmpStr ); g_string_sprintf( str, _( "Weekly (x%d): %s"), tmpInt, tmpStr );
} }
else else
{ {
/* %s is the name of the weekday */
g_string_sprintf( str, _( "Weekly: %s"), tmpStr ); g_string_sprintf( str, _( "Weekly: %s"), tmpStr );
} }
g_free( tmpStr ); g_free( tmpStr );
break; break;
case UIFREQ_BI_WEEKLY: case UIFREQ_BI_WEEKLY:
g_string_sprintf( str, _("Bi-Weekly, %ss"), get_wday_name(fs->s.weekly.offset_from_epoch % 7) ); /* %s is the name of the weekday */
break; g_string_sprintf( str, _("Bi-Weekly, %ss"),
get_wday_name(fs->s.weekly.offset_from_epoch % 7) );
break;
case UIFREQ_SEMI_MONTHLY: case UIFREQ_SEMI_MONTHLY:
{ {
@ -806,6 +819,9 @@ xaccFreqSpecGetFreqStr( FreqSpec *fs, GString *str )
if ( tmpFS->s.monthly.interval_months > 1 ) { if ( tmpFS->s.monthly.interval_months > 1 ) {
/* %u is the number of intervals; %s is the day of month
of the starting month; %s is the day of month of the
ending month */
g_string_sprintf( str, _("Semi-monthly (x%u): %s, %s"), g_string_sprintf( str, _("Semi-monthly (x%u): %s, %s"),
tmpFS->s.monthly.interval_months, tmpFS->s.monthly.interval_months,
first_dom->str, first_dom->str,
@ -813,6 +829,8 @@ xaccFreqSpecGetFreqStr( FreqSpec *fs, GString *str )
} }
else else
{ {
/* %s is the day of month of the starting month; %s is the
day of month of the ending month */
g_string_sprintf( str, _("Semi-monthly: %s, %s"), g_string_sprintf( str, _("Semi-monthly: %s, %s"),
first_dom->str, first_dom->str,
second_dom->str); second_dom->str);
@ -826,12 +844,15 @@ xaccFreqSpecGetFreqStr( FreqSpec *fs, GString *str )
case UIFREQ_MONTHLY: case UIFREQ_MONTHLY:
if ( fs->s.monthly.interval_months > 1 ) { if ( fs->s.monthly.interval_months > 1 ) {
g_string_sprintf( str, _("Monthly (x%u): %u"), /* %u is the number of intervals; %u is the day of
fs->s.monthly.interval_months, month */
fs->s.monthly.day_of_month); g_string_sprintf( str, _("Monthly (x%u): %u"),
fs->s.monthly.interval_months,
fs->s.monthly.day_of_month);
} }
else else
{ {
/* %u is the day of month */
g_string_sprintf( str, _("Monthly: %u"), g_string_sprintf( str, _("Monthly: %u"),
fs->s.monthly.day_of_month ); fs->s.monthly.day_of_month );
} }
@ -839,12 +860,15 @@ xaccFreqSpecGetFreqStr( FreqSpec *fs, GString *str )
case UIFREQ_QUARTERLY: case UIFREQ_QUARTERLY:
if ( fs->s.monthly.interval_months != 3 ) { if ( fs->s.monthly.interval_months != 3 ) {
g_string_sprintf( str, _("Quarterly (x%u): %u"), /* %u is the number of intervals; %u is the day of
fs->s.monthly.interval_months/3, month */
fs->s.monthly.day_of_month); g_string_sprintf( str, _("Quarterly (x%u): %u"),
fs->s.monthly.interval_months/3,
fs->s.monthly.day_of_month);
} }
else else
{ {
/* %u is the day of month */
g_string_sprintf( str, _("Quarterly: %u"), g_string_sprintf( str, _("Quarterly: %u"),
fs->s.monthly.day_of_month ); fs->s.monthly.day_of_month );
} }
@ -853,38 +877,45 @@ xaccFreqSpecGetFreqStr( FreqSpec *fs, GString *str )
case UIFREQ_TRI_ANUALLY: case UIFREQ_TRI_ANUALLY:
if ( fs->s.monthly.interval_months != 4 ) { if ( fs->s.monthly.interval_months != 4 ) {
g_string_sprintf( str, _("Tri-Yearly (x%u): %u"), /* %u is the number of intervals; %u is the day of
fs->s.monthly.interval_months/4, month */
fs->s.monthly.day_of_month); g_string_sprintf( str, _("Tri-Yearly (x%u): %u"),
fs->s.monthly.interval_months/4,
fs->s.monthly.day_of_month);
} }
else else
{ {
g_string_sprintf( str, _("Tri-Yearly: %u"), /* %u is the day of month */
fs->s.monthly.day_of_month ); g_string_sprintf( str, _("Tri-Yearly: %u"),
fs->s.monthly.day_of_month );
} }
break; break;
case UIFREQ_SEMI_YEARLY: case UIFREQ_SEMI_YEARLY:
g_string_sprintf( str, "Semi-Yearly" ); /* FIXME: why is this here?
g_string_sprintf( str, "Semi-Yearly" ); */
if ( fs->s.monthly.interval_months != 6 ) { if ( fs->s.monthly.interval_months != 6 ) {
if ( (fs->s.monthly.interval_months % 6) != 0 ) { if ( (fs->s.monthly.interval_months % 6) != 0 ) {
PERR( "ERROR: FreqSpec Semi-Yearly month-interval " PERR( "ERROR: FreqSpec Semi-Yearly month-interval "
"is not a multiple of 6 [%d]", "is not a multiple of 6 [%d]",
fs->s.monthly.interval_months ); fs->s.monthly.interval_months );
} }
g_string_sprintf( str, _("Semi-Yearly(x%u): %u"), /* %u is the number of intervals; %u is the day of
month */
g_string_sprintf( str, _("Semi-Yearly (x%u): %u"),
fs->s.monthly.interval_months/6, fs->s.monthly.interval_months/6,
fs->s.monthly.day_of_month); fs->s.monthly.day_of_month);
} }
else else
{ {
/* %u is the day of month */
g_string_sprintf( str, _("Semi-Yearly: %u"), g_string_sprintf( str, _("Semi-Yearly: %u"),
fs->s.monthly.day_of_month ); fs->s.monthly.day_of_month );
} }
break; break;
case UIFREQ_YEARLY: case UIFREQ_YEARLY:
g_string_sprintf( str, "Yearly" ); /* g_string_sprintf( str, "Yearly" ); */
if ( fs->s.monthly.interval_months != 12 ) { if ( fs->s.monthly.interval_months != 12 ) {
if ( (fs->s.monthly.interval_months % 12) != 0 ) { if ( (fs->s.monthly.interval_months % 12) != 0 ) {
PERR( "ERROR: \"Yearly\" FreqSpec month-interval " PERR( "ERROR: \"Yearly\" FreqSpec month-interval "
@ -892,11 +923,15 @@ xaccFreqSpecGetFreqStr( FreqSpec *fs, GString *str )
fs->s.monthly.interval_months ); fs->s.monthly.interval_months );
} }
/* /* FIXME: This string *must* be translated for
* FIXME: This string *must* be translated for en_GB, en_AU en_GB, en_AU and everywhere else with the
* and everywhere else with the sensible ordering of ddmmyy sensible ordering of ddmmyy. Translators
*/ note: to switch the last two arguments,
write "Yearly (x%u): %3$u of month %2$s"
%u is the number of intervals; %s is the
abbreviated name of the month; %u is the
day of month. */
g_string_sprintf( str, _("Yearly (x%u): %s/%u"), g_string_sprintf( str, _("Yearly (x%u): %s/%u"),
fs->s.monthly.interval_months/12, fs->s.monthly.interval_months/12,
get_abbrev_month_name(fs->s.monthly.offset_from_epoch), get_abbrev_month_name(fs->s.monthly.offset_from_epoch),
@ -904,6 +939,8 @@ xaccFreqSpecGetFreqStr( FreqSpec *fs, GString *str )
} }
else else
{ {
/* %s is the abbreviated name of the month; %u is
the day of month */
g_string_sprintf( str, _("Yearly: %s/%u"), g_string_sprintf( str, _("Yearly: %s/%u"),
get_abbrev_month_name(fs->s.monthly.offset_from_epoch), get_abbrev_month_name(fs->s.monthly.offset_from_epoch),
fs->s.monthly.day_of_month ); fs->s.monthly.day_of_month );

View File

@ -1089,7 +1089,7 @@
<class>GtkButton</class> <class>GtkButton</class>
<child_name>Toolbar:button</child_name> <child_name>Toolbar:button</child_name>
<name>toolbar_schedule</name> <name>toolbar_schedule</name>
<tooltip>Create a scheduled transaction with the current transaction as a template</tooltip> <tooltip>Create a Scheduled Transaction with the current transaction as a template</tooltip>
<signal> <signal>
<name>clicked</name> <name>clicked</name>
<handler>gnc_register_recur_cb</handler> <handler>gnc_register_recur_cb</handler>