As suggested by VladimirSlavik axe those plural forms for percentages...

...that don't make much sense.

include the % sign in the translatable string since unlike english
some languages like french need to put a space in front of the % to
have a lexigraphically correct translation
This commit is contained in:
Benoît Timbert 2008-06-12 21:49:39 +00:00
parent 46d99875a9
commit 0873da9ce9
2 changed files with 4 additions and 4 deletions

View file

@ -268,12 +268,12 @@ Units cannot be killed by poison alone. The poison will not reduce it below 1 HP
const int accuracy = at_it->accuracy();
if(accuracy) {
tooltip << " " << (accuracy > 0 ? "+" : "") << accuracy << "% " << _n("tooltip^accuracy", "accuracy", accuracy);
tooltip << " " << (accuracy > 0 ? "+" : "") << accuracy << _("tooltip^% accuracy");
}
const int parry = at_it->parry();
if(parry) {
tooltip << " " << (parry > 0 ? "+" : "") << parry << "% " << _n("tooltip^parry", "parry", parry);
tooltip << " " << (parry > 0 ? "+" : "") << parry << _("tooltip^% parry");
}
str<<"\n";

View file

@ -211,7 +211,7 @@ bool attack_type::apply_modification(const config& cfg,std::string* description)
accuracy_ = utils::apply_modifier(accuracy_, increase_accuracy, 1);
if(description != NULL) {
desc << (increase_accuracy[0] == '-' ? "" : "+") << increase_accuracy << " " << _n("accuracy","accuracy",lexical_cast<int>(increase_accuracy));
desc << (increase_accuracy[0] == '-' ? "" : "+") << increase_accuracy << _("% accuracy");
}
}
@ -219,7 +219,7 @@ bool attack_type::apply_modification(const config& cfg,std::string* description)
parry_ = utils::apply_modifier(parry_, increase_parry, 1);
if(description != NULL) {
desc << (increase_parry[0] == '-' ? "" : "+") << increase_parry << " " << _n("parry","parry",lexical_cast<int>(increase_parry));
desc << (increase_parry[0] == '-' ? "" : "+") << increase_parry << _("% parry");
}
}