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.Mods.Common.Traits
|
||||
{
|
||||
[TranslationReference]
|
||||
[Desc("Descriptive label for the ally build radius checkbox in the lobby.")]
|
||||
public readonly string AllyBuildRadiusCheckboxLabel = "ally-build-radius.label";
|
||||
public readonly string AllyBuildRadiusCheckboxLabel = "checkbox-ally-build-radius.label";
|
||||
|
||||
[TranslationReference]
|
||||
[Desc("Tooltip description for the ally build radius checkbox in the lobby.")]
|
||||
public readonly string AllyBuildRadiusCheckboxDescription = "ally-build-radius.description";
|
||||
public readonly string AllyBuildRadiusCheckboxDescription = "checkbox-ally-build-radius.description";
|
||||
|
||||
[Desc("Default value of the ally build radius checkbox in the lobby.")]
|
||||
public readonly bool AllyBuildRadiusCheckboxEnabled = true;
|
||||
@@ -40,11 +40,11 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
[TranslationReference]
|
||||
[Desc("Tooltip description for the build radius checkbox in the lobby.")]
|
||||
public readonly string BuildRadiusCheckboxLabel = "build-radius.label";
|
||||
public readonly string BuildRadiusCheckboxLabel = "checkbox-build-radius.label";
|
||||
|
||||
[TranslationReference]
|
||||
[Desc("Tooltip description for the build radius checkbox in the lobby.")]
|
||||
public readonly string BuildRadiusCheckboxDescription = "build-radius.description";
|
||||
public readonly string BuildRadiusCheckboxDescription = "checkbox-build-radius.description";
|
||||
|
||||
[Desc("Default value of the build radius checkbox in the lobby.")]
|
||||
public readonly bool BuildRadiusCheckboxEnabled = true;
|
||||
|
||||
Reference in New Issue
Block a user