Refactor translation files

- Add prefixes to all message keys to provide context
- Use messages with attributes for some UI elements (dropdowns, dialogs, checkboxes, menus)
- Rename some class fields for consistency with translation keys
This commit is contained in:
Ivaylo Draganov
2022-11-10 13:46:51 +02:00
committed by Paul Chote
parent 46caa2d889
commit a0f17b15ec
89 changed files with 1095 additions and 1053 deletions

View File

@@ -24,22 +24,22 @@ namespace OpenRA.Mods.Common.Widgets.Logic
public class ObserverShroudSelectorLogic : ChromeLogic
{
[TranslationReference]
const string CameraOptionAllPlayers = "camera-option-all-players";
const string CameraOptionAllPlayers = "options-shroud-selector.all-players";
[TranslationReference]
const string CameraOptionDisableShroud = "camera-option-disable-shroud";
const string CameraOptionDisableShroud = "options-shroud-selector.disable-shroud";
[TranslationReference]
const string CameraOptionOther = "camera-option-other";
const string CameraOptionOther = "options-shroud-selector.other";
[TranslationReference]
const string Players = "players";
const string Players = "label-players";
[TranslationReference("team")]
const string TeamNumber = "team-number";
const string TeamNumber = "label-team-name";
[TranslationReference]
const string NoTeam = "no-team";
const string NoTeam = "label-no-team";
readonly CameraOption combined, disableShroud;
readonly IOrderedEnumerable<IGrouping<int, CameraOption>> teams;