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
@@ -22,61 +22,61 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
public class InstallFromSourceLogic : ChromeLogic
|
||||
{
|
||||
[TranslationReference]
|
||||
const string DetectingSources = "detecting-sources";
|
||||
const string DetectingSources = "label-detecting-sources";
|
||||
|
||||
[TranslationReference]
|
||||
const string CheckingSources = "checking-sources";
|
||||
const string CheckingSources = "label-checking-sources";
|
||||
|
||||
[TranslationReference("title")]
|
||||
const string SearchingSourceFor = "searching-source-for";
|
||||
const string SearchingSourceFor = "label-searching-source-for";
|
||||
|
||||
[TranslationReference]
|
||||
const string ContentPackageInstallation = "content-package-installation";
|
||||
const string ContentPackageInstallation = "label-content-package-installation";
|
||||
|
||||
[TranslationReference]
|
||||
const string GameSources = "game-sources";
|
||||
const string GameSources = "label-game-sources";
|
||||
|
||||
[TranslationReference]
|
||||
const string DigitalInstalls = "digital-installs";
|
||||
const string DigitalInstalls = "label-digital-installs";
|
||||
|
||||
[TranslationReference]
|
||||
const string GameContentNotFound = "game-content-not-found";
|
||||
const string GameContentNotFound = "label-game-content-not-found";
|
||||
|
||||
[TranslationReference]
|
||||
const string AlternativeContentSources = "alternative-content-sources";
|
||||
const string AlternativeContentSources = "label-alternative-content-sources";
|
||||
|
||||
[TranslationReference]
|
||||
const string InstallingContent = "installing-content";
|
||||
const string InstallingContent = "label-installing-content";
|
||||
|
||||
[TranslationReference("filename")]
|
||||
public const string CopyingFilename = "copying-filename";
|
||||
public const string CopyingFilename = "label-copying-filename";
|
||||
|
||||
[TranslationReference("filename", "progress")]
|
||||
public const string CopyingFilenameProgress = "copying-filename-progress";
|
||||
public const string CopyingFilenameProgress = "label-copying-filename-progress";
|
||||
|
||||
[TranslationReference]
|
||||
const string InstallationFailed = "installation-failed";
|
||||
const string InstallationFailed = "label-installation-failed";
|
||||
|
||||
[TranslationReference]
|
||||
const string CheckInstallLog = "check-install-log";
|
||||
const string CheckInstallLog = "label-check-install-log";
|
||||
|
||||
[TranslationReference("filename")]
|
||||
public const string Extracing = "extracting-filename";
|
||||
public const string Extracing = "label-extracting-filename";
|
||||
|
||||
[TranslationReference("filename", "progress")]
|
||||
public const string ExtracingProgress = "extracting-filename-progress";
|
||||
public const string ExtracingProgress = "label-extracting-filename-progress";
|
||||
|
||||
[TranslationReference]
|
||||
public const string Continue = "continue";
|
||||
public const string Continue = "button-continue";
|
||||
|
||||
[TranslationReference]
|
||||
const string Cancel = "cancel";
|
||||
const string Cancel = "button-cancel";
|
||||
|
||||
[TranslationReference]
|
||||
const string Retry = "retry";
|
||||
const string Retry = "button-retry";
|
||||
|
||||
[TranslationReference]
|
||||
const string Back = "back";
|
||||
const string Back = "button-back";
|
||||
|
||||
// Hide percentage indicators for files smaller than 25 MB
|
||||
public const int ShowPercentageThreshold = 26214400;
|
||||
|
||||
Reference in New Issue
Block a user