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,19 +24,19 @@ namespace OpenRA.Mods.Common.Commands
public class DebugVisualizationCommands : IChatCommand, IWorldLoaded
{
[TranslationReference]
const string CombatGeometryDescription = "combat-geometry-description";
const string CombatGeometryDescription = "description-combat-geometry";
[TranslationReference]
const string RenderGeometryDescription = "render-geometry-description";
const string RenderGeometryDescription = "description-render-geometry";
[TranslationReference]
const string ScreenMapOverlayDescription = "screen-map-overlay-description";
const string ScreenMapOverlayDescription = "description-screen-map-overlay";
[TranslationReference]
const string DepthBufferDescription = "depth-buffer-description";
const string DepthBufferDescription = "description-depth-buffer";
[TranslationReference]
const string ActorTagsOverlayDescripition = "actor-tags-overlay-description";
const string ActorTagsOverlayDescripition = "description-actor-tags-overlay";
readonly IDictionary<string, (string Description, Action<DebugVisualizations, DeveloperMode> Handler)> commandHandlers = new Dictionary<string, (string Description, Action<DebugVisualizations, DeveloperMode> Handler)>
{