From b9dd675701271b4602db13a2de1e8e3cf92785ef Mon Sep 17 00:00:00 2001 From: Lary <89530982+LaryNevesPR@users.noreply.github.com> Date: Mon, 20 Jan 2025 02:52:33 -0300 Subject: [PATCH] =?UTF-8?q?Visual=20studio=20n=C3=A3o=20quis=20enviar=20o?= =?UTF-8?q?=20restante=20da=20tradu=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Localizations/ContentLocalizationManager.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Localizations/ContentLocalizationManager.cs b/Content.Shared/Localizations/ContentLocalizationManager.cs index ad8890ae0fd..0458db7ca0d 100644 --- a/Content.Shared/Localizations/ContentLocalizationManager.cs +++ b/Content.Shared/Localizations/ContentLocalizationManager.cs @@ -10,7 +10,7 @@ public sealed class ContentLocalizationManager [Dependency] private readonly ILocalizationManager _loc = default!; // If you want to change your codebase's language, do it here. - private const string Culture = "en-US"; + private const string Culture = "pt-BR"; /// /// Custom format strings used for parsing and displaying minutes:seconds timespans. @@ -44,9 +44,19 @@ public void Initialize() * This ensures the english translations continue to work as expected when fallbacks are needed. */ var cultureEn = new CultureInfo("en-US"); + _loc.LoadCulture(cultureEn); + _loc.SetFallbackCluture(cultureEn); _loc.AddFunction(cultureEn, "MAKEPLURAL", FormatMakePlural); _loc.AddFunction(cultureEn, "MANY", FormatMany); + _loc.AddFunction(cultureEn, "POWERWATTS", FormatPowerWatts); + _loc.AddFunction(cultureEn, "POWERJOULES", FormatPowerJoules); + _loc.AddFunction(cultureEn, "UNITS", FormatUnits); + _loc.AddFunction(cultureEn, "TOSTRING", args => FormatToString(cultureEn, args)); + _loc.AddFunction(cultureEn, "LOC", FormatLoc); + _loc.AddFunction(cultureEn, "NATURALFIXED", FormatNaturalFixed); + _loc.AddFunction(cultureEn, "NATURALPERCENT", FormatNaturalPercent); + _loc.AddFunction(cultureEn, "PRESSURE", FormatPressure); } private ILocValue FormatMany(LocArgs args)