add translation comments (closes #3962)

This commit is contained in:
Severin Glöckner 2019-03-11 12:41:47 +01:00
parent 6c134a5132
commit 36d18e74b0
4 changed files with 12 additions and 0 deletions

View File

@ -228,6 +228,9 @@ namespace
}
virtual std::string description() const
{
// TRANSLATORS: In networked games, when one player has the choice
// between multiple advancements of a unit, this text is sent to
// other players. It will be embedded within a message.
return _("waiting for^an advancement choice");
}
private:

View File

@ -51,6 +51,9 @@ struct persist_choice: mp_sync::user_choice {
virtual std::string description() const
{
// TRANSLATORS: In networked games, this text is shown for other
// clients, while they wait to receive the content of a global variable
// from another player. This text will be embedded into a sentence.
return _("waiting for^a global variable");
}
virtual bool is_visible() const { return false; }

View File

@ -323,6 +323,9 @@ void user_choice_manager::update_local_choice()
}
}
// TRANSLATORS: In networked games, this text is shown on the map while
// waiting for $desc from another player.
// Don't end the text with a punctuation sign.
wait_message_ = VNGETTEXT(
"waiting for $desc from side $sides",
"waiting for $desc from sides $sides",

View File

@ -35,6 +35,9 @@ struct user_choice
///whether the choice is visible for the user like an advancement choice
///a non-visible choice is for example get_global_variable
virtual bool is_visible() const { return true; }
// TRANSLATORS: In networked games, this text is shown for other clients,
// while they wait for an action from another player.
// This text will be embedded into a sentence.
virtual std::string description() const { return _("waiting for^input"); }
};