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
@@ -20,11 +20,11 @@ namespace OpenRA.Traits
|
||||
{
|
||||
[TranslationReference]
|
||||
[Desc("Descriptive label for the fog checkbox in the lobby.")]
|
||||
public readonly string FogCheckboxLabel = "fog-of-war.label";
|
||||
public readonly string FogCheckboxLabel = "checkbox-fog-of-war.label";
|
||||
|
||||
[TranslationReference]
|
||||
[Desc("Tooltip description for the fog checkbox in the lobby.")]
|
||||
public readonly string FogCheckboxDescription = "fog-of-war.description";
|
||||
public readonly string FogCheckboxDescription = "checkbox-fog-of-war.description";
|
||||
|
||||
[Desc("Default value of the fog checkbox in the lobby.")]
|
||||
public readonly bool FogCheckboxEnabled = true;
|
||||
@@ -40,11 +40,11 @@ namespace OpenRA.Traits
|
||||
|
||||
[TranslationReference]
|
||||
[Desc("Descriptive label for the explored map checkbox in the lobby.")]
|
||||
public readonly string ExploredMapCheckboxLabel = "explored-map.label";
|
||||
public readonly string ExploredMapCheckboxLabel = "checkbox-explored-map.label";
|
||||
|
||||
[TranslationReference]
|
||||
[Desc("Tooltip description for the explored map checkbox in the lobby.")]
|
||||
public readonly string ExploredMapCheckboxDescription = "explored-map.description";
|
||||
public readonly string ExploredMapCheckboxDescription = "checkbox-explored-map.description";
|
||||
|
||||
[Desc("Default value of the explore map checkbox in the lobby.")]
|
||||
public readonly bool ExploredMapCheckboxEnabled = false;
|
||||
|
||||
Reference in New Issue
Block a user