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
@@ -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>()
|
||||
|
||||
Reference in New Issue
Block a user