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

Localization #1346

Merged
merged 4 commits into from
Feb 10, 2018
Merged

Localization #1346

merged 4 commits into from
Feb 10, 2018

Conversation

Antifluxfield
Copy link
Contributor

In #1251 , I introduced the "%material" placeholder to better support localization; but seems that it doesn't work well as what I thought in some languages. Though you can overwrite the placeholder if necessary, the lang file is not that readable anymore. Thus, as a simple solution, I add a config to disable this placeholder in this PR.

@Antifluxfield Antifluxfield changed the title Config to disable placeholder "%material" Localization Dec 26, 2017
@Antifluxfield
Copy link
Contributor Author

Antifluxfield commented Dec 26, 2017

The last two commits fix some other l10n issues.

}
}

protected final void addInfo(int aID) {
ItemStack tStack = new ItemStack(GregTech_API.sBlockMachines, 1, aID);
Copy link
Contributor

Choose a reason for hiding this comment

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

You should add server side protection here, otherwise if someplace calls this without the check it'll crash.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep

@Blood-Asp Blood-Asp merged commit a3f1b52 into Blood-Asp:unstable Feb 10, 2018
@Antifluxfield Antifluxfield deleted the l10n branch February 11, 2018 05:22
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.

3 participants