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
@@ -19,16 +19,16 @@ namespace OpenRA.Mods.Common.Server
|
||||
public class PlayerPinger : ServerTrait, ITick
|
||||
{
|
||||
[TranslationReference]
|
||||
const string PlayerDropped = "player-dropped";
|
||||
const string PlayerDropped = "notification-player-dropped";
|
||||
|
||||
[TranslationReference("player")]
|
||||
const string ConnectionProblems = "connection-problems";
|
||||
const string ConnectionProblems = "notification-connection-problems";
|
||||
|
||||
[TranslationReference("player")]
|
||||
const string Timeout = "timeout";
|
||||
const string Timeout = "notification-timeout-dropped";
|
||||
|
||||
[TranslationReference("player", "timeout")]
|
||||
const string TimeoutIn = "timeout-in";
|
||||
const string TimeoutIn = "notification-timeout-dropped-in";
|
||||
|
||||
static readonly int PingInterval = 5000; // Ping every 5 seconds
|
||||
static readonly int ConnReportInterval = 20000; // Report every 20 seconds
|
||||
|
||||
Reference in New Issue
Block a user