-
Notifications
You must be signed in to change notification settings - Fork 22
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 fixes and improvements #289
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me.
If you're interested / have some extra time:
One good addition would be adding "Fuel used" (or maybe better "fuel used") to translations.
Could just use some online translation service like google translate, ppl can suggest better translations later.
Actually switching to "fuel remaining" / "fuel left" would be better as it allows meaningful use of non-proportional units but that would require also changing some logic...
At least fuel fired generator could also use that, more/better infotexts been requested for many things anyway.
Tried some smodin.io online multi translator service which gave these results, I guess that or some other similar thing could be used if you'd like to extend this pr to translation improvements: English French Italian Finnish Polish Spanish Chinese Simplified Portuguese |
I think I will make this a translation improvements PR, there are some new strings in #288 that need to be added, and there are also other strings that have not been wrapped by the translator yet. For example, in the reactor formspec, only the label is translated: technic/technic/machines/HV/nuclear_reactor.lua Lines 33 to 52 in 25b2d0f
|
also fix some things in init.lua because i can't help myself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
Oh, renaming the branch closes the PR... 🤦 EDIT: ...and you can't change the source branch... pfft |
Yeah, better to have some translation there, even if it's not perfect.
That would be better, but it might confuse some players that got used to the current functionality... but I guess the clarification will solve that anyway. Also the fuel-fired generator already uses the "fuel left" logic, and could make use of the translation too:
The fuel-fired stuff also should take into account the number of items left, currently the percentage is just for a single item. |
also remove duplicate technic_flush_switch_cache command
@OgelGames ready for review, but neither todos are checked off? |
I'm not sure if I'm going to include those in this PR, I don't really want to touch @S-S-X's multimeter code, and I don't know if the commands need to be translated. |
Now that I think of it, I probably should check the translations for the other sub-mods, they might need updating too... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. at this scale, probably best to have a double check on it however
as big as this pr is already, probably best for another one? |
Yeah, the other translations seem more complete (nothing much has changed since #255), so those can wait for another PR. |
Click for detailed source code test coverage reportTest coverage report for Technic CNC 87.36% in 11/14 files:
Test coverage report for technic chests 45.56% in 6/6 files:
Test coverage report for technic 63.41% in 97/97 files:
Raw test runner output for geeks:CNC:
Chests:
Technic:
|
I think this should be safe to merge, the "fuel used"/"fuel left" logic changes are best done in another PR, preferably with other improvements to infotexts, such as #154. |
See also 25b2d0f
Not included in this PR: