URL:
<http://gna.org/bugs/?10774>
Summary: wrong i18n code
Project: Battle for Wesnoth
Submitted by: vladimirslavik
Submitted on: Tuesday 01/15/2008 at 13:04
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Translations
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.3.14+-
Operating System: Windows XP
_______________________________________________________
Details:
multiplayer_lobby.cpp : ~490 (488 in global rev. 23018)
Plural call is wrongly coded. String parameters are separately translated
before being passed to the function, so the function can't find this entry
(doesn't exist, too), so resulting value is *probably* pluralized only "the
English way" (1/more) with native texts.
Code (only relevant part):
games_.back().status = std::string(ngettext(_("Vacant Slot:"), _("Vacant
Slots:"), games_.back().vacant_slots)
...should become...
games_.back().status = std::string(ngettext("Vacant Slot:", "Vacant Slots:",
games_.back().vacant_slots)
...and even better, replace ngettext with _n as declared in gettext.hpp
The unfortunate person who committed this sin against translation efforts was
"uso" in r.20059
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?10774>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs