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

Translation support #6

Merged
merged 7 commits into from
Jan 11, 2024
Merged

Translation support #6

merged 7 commits into from
Jan 11, 2024

Conversation

Matyrobbrt
Copy link
Member

@Matyrobbrt Matyrobbrt commented Jan 6, 2024

Support translations through resource bundles.
By default the locale is set to the JVM's default locale (falling back to English), and once changed in the dropdown, it will be saved in the user's MC directory under (a hidden) .neoforge_installer.properties file.

The translations will be done through Crowdin, the same way we have it set up for the NeoForge repository.

Support translations through resource bundles.
By default the locale is set to the JVM's default locale (falling back to English), and once changed in the dropdown, it will be saved in the user's MC directory under (a hidden) `libraries/.neoforge_installer.properties` file
@Matyrobbrt Matyrobbrt added the enhancement New feature or request label Jan 6, 2024
@neoforged-pr-publishing
Copy link

neoforged-pr-publishing bot commented Jan 6, 2024

  • Publish PR to GitHub Packages

Last commit published: 68a5a4b83561aeafbfb4f7a0c4af207c4783d73c.

PR Publishing

The artifacts published by this PR:

Repository Declaration

In order to use the artifacts published by the PR, add the following repository to your buildscript:

repositories {
    maven {
        name 'Maven for PR #6' // https://github.com/neoforged/LegacyInstaller/pull/6
        url 'https://prmaven.neoforged.net/LegacyInstaller/pr6'
        content {
            includeModule('net.neoforged', 'legacyinstaller')
        }
    }
}

@Matyrobbrt Matyrobbrt marked this pull request as draft January 6, 2024 20:51
@Matyrobbrt Matyrobbrt marked this pull request as ready for review January 6, 2024 21:32
props.put("language", locale.toLanguageTag());
props.store(os, "NeoForge installer settings file");
}
Files.setAttribute(settingsFile, "dos:hidden", true);
Copy link
Contributor

Choose a reason for hiding this comment

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

...really

@Matyrobbrt Matyrobbrt requested a review from shartte January 10, 2024 10:58
@Matyrobbrt Matyrobbrt requested a review from shartte January 10, 2024 19:35
@shartte shartte merged commit 524fc20 into main Jan 11, 2024
2 checks passed
@shartte shartte deleted the translation-support branch January 11, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants