[Freeciv-Dev] Re: l18n corrupts integer output? (PR#924)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Christian Knoke wrote:
>
> CVS 29 AUG 2001 Linux i386 GTK+
>
> With the new autoconnect feature of civclient, I get:
>
> chris@max:~/freeciv > LANG= civclient -n oskar -s bolte -a
> 0: Failed to contact server "bolte" at port 5555 as "oskar" after 100 attempts
> chris@max:~/freeciv > civclient -n oskar -s bolte -a
> 0: Konnte Server 'bolte' an Port 5555 nicht finden (135434336 Versuche).
>
> I can't see why this happens.
>
> The code:
> freelog(LOG_FATAL,
> _("Failed to contact server \"%s\" at port "
> "%d as \"%s\" after %d attempts"),
> server_host, server_port, player_name, count);
>
> The de.po entry:
> #: client/gui-gtk/connectdlg.c:308
> #, c-format
> msgid "Failed to contact server \"%s\" at port %d as \"%s\" after %d attempts"
> msgstr "Konnte Server '%s' an Port %d nicht finden (%d Versuche)."
The translation is missing a %s.
English: ...%s...%d...%s...%d
German: ...%s...%d...%d
In other words, the 'as "oskar"' part of the message didn't get
translated, so the big number being displayed is the pointer to the
string "oskar".
You'd think gettext would be able to check for this.
jason
|
|