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

@@ -31,22 +31,22 @@ namespace OpenRA.Mods.Common.Server
const int RateLimitInterval = 1000;
[TranslationReference]
const string NoPortForward = "no-port-forward";
const string NoPortForward = "notification-no-port-forward";
[TranslationReference]
const string BlacklistedTitle = "blacklisted-title";
const string BlacklistedTitle = "notification-blacklisted-server-name";
[TranslationReference]
const string InvalidErrorCode = "invalid-error-code";
const string InvalidErrorCode = "notification-invalid-error-code";
[TranslationReference]
const string Connected = "master-server-connected";
const string Connected = "notification-master-server-connected";
[TranslationReference]
const string Error = "master-server-error";
const string Error = "notification-master-server-error";
[TranslationReference]
const string GameOffline = "game-offline";
const string GameOffline = "notification-game-offline";
static readonly Beacon LanGameBeacon;
static readonly Dictionary<int, string> MasterServerErrors = new Dictionary<int, string>()