Localization clean up + temp eng switch (#325)

* Update ContentLocalizationManager.cs

* Update battle_royale_temp.yml

* Update basic-effect-reagent.ftl
This commit is contained in:
Ed
2024-07-12 08:34:08 +03:00
committed by GitHub
parent 1ac9ec85c5
commit e87994ae40
3 changed files with 8 additions and 6 deletions

View File

@@ -10,9 +10,7 @@ namespace Content.Shared.Localizations
[Dependency] private readonly ILocalizationManager _loc = default!;
// If you want to change your codebase's language, do it here.
private const string Culture = "ru-RU"; // CrystallPunk-Localization
private const string FallbackCulture = "en-US"; // CrystallPunk-Localization
//Creating an English CrystallPunk server? Set Culture to "en-US"
private const string Culture = "en-US"; // CrystallPunk-Localization. "ru-RU" or "en-US"
/// <summary>
/// Custom format strings used for parsing and displaying minutes:seconds timespans.
@@ -28,11 +26,8 @@ namespace Content.Shared.Localizations
public void Initialize()
{
var culture = new CultureInfo(Culture);
var fallbackCulture = new CultureInfo(FallbackCulture);
_loc.LoadCulture(culture);
_loc.LoadCulture(fallbackCulture); // CrystallPunk-Localization
_loc.SetFallbackCluture(fallbackCulture); // CrystallPunk-Localization
_loc.AddFunction(culture, "PRESSURE", FormatPressure);
_loc.AddFunction(culture, "POWERWATTS", FormatPowerWatts);
_loc.AddFunction(culture, "POWERJOULES", FormatPowerJoules);

View File

@@ -25,5 +25,11 @@ cp14-reagent-desc-basic-satiate-thirst = A liquid that tastes very much like wat
cp14-reagent-name-basic-emote-cough = Coughing solution
cp14-reagent-desc-basic-emote-cough = Coughs profusely, but harmlessly.
cp14-reagent-name-basic-heal-cold = Warming Solution
cp14-reagent-desc-basic-heal-cold = Capable of healing even serious frostbite.
cp14-reagent-name-basic-damage-cold = Ice solution
cp14-reagent-desc-basic-damage-cold = Dangerous substance that causes severe frostbite.
cp14-reagent-name-basic-vomit = Vomit solution
cp14-reagent-desc-basic-vomit = A substance that causes severe vomiting spasms. May help with food poisoning.

View File

@@ -23,6 +23,7 @@
- CP14BaseSickle
- CP14BaseThrowableSpear
- CP14BaseTwoHandedSword
- CP14TwoHandedSwordScythe
- CP14BaseLightCrossbow
- CP14Crossbolt
- CP14Crossbolt