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

Use ISO639 language codes #1784

Merged
merged 6 commits into from
Apr 23, 2022

Conversation

Jannify
Copy link
Member

@Jannify Jannify commented Apr 17, 2022

This pr changes our language file names to the ISO639-1 standard. As weblate only outputs these we are kinda required to implement it this way.

@Jannify Jannify changed the title Use ISO639-1 language codes Use ISO639 language codes Apr 23, 2022
@@ -6,6 +6,7 @@
<Nullable>disable</Nullable>
<UseWPF>true</UseWPF>
<ApplicationIcon>icon.ico</ApplicationIcon>
<DisableFastUpToDateCheck>True</DisableFastUpToDateCheck>
Copy link
Member

Choose a reason for hiding this comment

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

What is this purpose of this ?

Copy link
Member Author

Choose a reason for hiding this comment

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

The result of this change is that it executes the AfterBuild targets of NitroxLauncher even if just a dependency of it (like Nitrox client) has changed code.

{
___strings[key] = (string)json[key];
strings[key] = (string)jsonKey;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
strings[key] = (string)jsonKey;
strings[key] = (string)json[key];

Copy link
Member Author

Choose a reason for hiding this comment

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

If I change it to that I have two dictionary lookups.

Comment on lines +82 to +86
// This language isn't registered in CultureInfo
if (existingLanguageNames.Contains("Spanish (Latin America)"))
{
languageToIsoCode.Add("Spanish (Latin America)", new Tuple<string, string>("es-419", "es"));
}
Copy link
Member

Choose a reason for hiding this comment

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

Even if european spanish and latin america spanish does use different words for the same thing, I don't think it's worth doing special treatment for this one since both countries will understand the sentences (similar for US and UK english)

Copy link
Member Author

Choose a reason for hiding this comment

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

While I agree with the thought that it's normally not worth I think we should support any language SN also supports, even if it's just a en vs en-UK thing.

@Jannify Jannify merged commit ee36b8a into SubnauticaNitrox:master Apr 23, 2022
@Jannify Jannify deleted the rework/posixLanguageCode branch April 23, 2022 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants