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:
committed by
Paul Chote
parent
46caa2d889
commit
a0f17b15ec
@@ -28,37 +28,37 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
public class ObserverStatsLogic : ChromeLogic
|
||||
{
|
||||
[TranslationReference]
|
||||
const string InformationNone = "information-none";
|
||||
const string InformationNone = "options-observer-stats.none";
|
||||
|
||||
[TranslationReference]
|
||||
const string Basic = "basic";
|
||||
const string Basic = "options-observer-stats.basic";
|
||||
|
||||
[TranslationReference]
|
||||
const string Economy = "economy";
|
||||
const string Economy = "options-observer-stats.economy";
|
||||
|
||||
[TranslationReference]
|
||||
const string Production = "production";
|
||||
const string Production = "options-observer-stats.production";
|
||||
|
||||
[TranslationReference]
|
||||
const string SupportPowers = "support-powers";
|
||||
const string SupportPowers = "options-observer-stats.support-powers";
|
||||
|
||||
[TranslationReference]
|
||||
const string Combat = "combat";
|
||||
const string Combat = "options-observer-stats.combat";
|
||||
|
||||
[TranslationReference]
|
||||
const string Army = "army";
|
||||
const string Army = "options-observer-stats.army";
|
||||
|
||||
[TranslationReference]
|
||||
const string EarningsGraph = "earnings-graph";
|
||||
const string EarningsGraph = "options-observer-stats.earnings-graph";
|
||||
|
||||
[TranslationReference]
|
||||
const string ArmyGraph = "army-graph";
|
||||
const string ArmyGraph = "options-observer-stats.army-graph";
|
||||
|
||||
[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 ContainerWidget basicStatsHeaders;
|
||||
readonly ContainerWidget economyStatsHeaders;
|
||||
|
||||
Reference in New Issue
Block a user