Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Localizations / Локализация #92

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Content.Shared/Localizations/ContentLocalizationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public void Initialize()
var fallbackCulture = new CultureInfo(FallbackCulture);

_loc.LoadCulture(culture);
_loc.LoadCulture(fallbackCulture);
if (_culture != FallbackCulture)
_loc.LoadCulture(fallbackCulture);
_loc.SetFallbackCluture(fallbackCulture);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fix typo in method name

There's a typo in the method name SetFallbackCluture. It should be SetFallbackCulture.

Please apply the following change:

- _loc.SetFallbackCluture(fallbackCulture);
+ _loc.SetFallbackCulture(fallbackCulture);
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
_loc.SetFallbackCluture(fallbackCulture);
_loc.SetFallbackCulture(fallbackCulture);


_loc.AddFunction(culture, "PRESSURE", FormatPressure);
Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/_White/CVars.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static readonly CVarDef<string>
CVarDef.Create("ghost.respawn_max_players", 40, CVar.SERVERONLY);

#endregion

#region OptionsMisc

public static readonly CVarDef<bool> LogInChat =
Expand Down
Loading