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
@@ -18,13 +18,13 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
public class SpawnSelectorTooltipLogic : ChromeLogic
|
||||
{
|
||||
[TranslationReference]
|
||||
const string DisabledSpawn = "disabled-spawn";
|
||||
const string DisabledSpawn = "label-disabled-spawn";
|
||||
|
||||
[TranslationReference]
|
||||
const string AvailableSpawn = "available-spawn";
|
||||
const string AvailableSpawn = "label-available-spawn";
|
||||
|
||||
[TranslationReference("team")]
|
||||
const string TeamNumber = "team-number";
|
||||
const string TeamNumber = "label-team-name";
|
||||
|
||||
readonly CachedTransform<int, string> teamMessage;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user