-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Added Italian language support for the LessMSI GUI app #205
Conversation
@activescott can you please help me with the raised Codacy error: The |
@activescott any updates? Thank you. |
How can help you with the code? Could be a modifier (use of &) issue? |
Thank you for your help suggestion @bovirus. The issue is with the Codacy test rather than with the code itself. |
@mega5800 I ignored the codacy issue. Can you also try removing "partial" in that one place and see if it compiles. I can't remember if C# allows it to be omitted in that case or not - but that is what Codacy/Sonar# is implying. I don't have my windows dev box handy right now, but I'll investigate this more closely here soon. |
@activescott I tried removing the Is there an option of ignoring this Codacy issue while merging this pull request to the main repo? Thank you. |
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 pretty good, but a couple minor changes need made and a test for CI to make sure that the builds are always building properly translated apps.
A quick though on tests: Maybe after the build is done, some of the CLI could be run to confirm it returned translated text? Just a an idea.
@activescott thank you for your comments. Thank you. |
Hello @activescott. Following your advice, I added some tests for GUI in different languages (English and Italian). I believe my locale changing logic isn’t working properly on the app veyor server. Thank you. |
@activescott any updates? Thank you. |
I'll look at the test case. I see the code but I'll do some debugging myself too |
@activescott, as you requested I reverted the changes I made to the AboutBox logic and updated the pull request. I believe the only thing left is to sort the issue with If you will find any issues with the translations at that point, I will gladly assist you. |
@activescott any updates? Thank you. |
Hello @activescott. I'd be grateful if you could check the testing I’ve been having. Thank you. |
I am looking. Sorry for the delay |
If you run it locally using the build.bat, test.bat scripts locally it also fails. Those scripts are really the only reliable way to build and test the project as Visual Studio has various "magic" that isn't always obvious. In this case the magic is that it is running commans to build the resources, and those aren't included in the build and the deployed files. I'll take a stab at adding that and push it. |
@activescott, thank you for examining this issue. I would like to mention that the only test that currently fails is the locale test, where I am changing the locale and testing the texts displayed in different buttons across the GUI app. Perhaps, I can't change the locale on the AppVeyor server. |
Italian should be "Seleziona &tutto" |
@bovirus |
In Italian the grammtical rule is different. And "is "Seleziona tutto" and not "Selziona tutto". |
I just pushed 62138c1 which fixed it locally when runnig build.bat and test.bat. Lets just double-check it passes in CI... |
Didn't work. I'll leave some notes here in case I don't figure this out here shortly before I have to take off for a bit: https://ci.appveyor.com/project/activescott/lessmsi/builds/50698208#L250 shows that it did attempt to generate the it resources sattelite assembly. https://ci.appveyor.com/project/activescott/lessmsi/builds/50698208#L266 shows it was generated and copied to the VS also copied it into the tests directory: https://ci.appveyor.com/project/activescott/lessmsi/builds/50698208#L311 The msbuild script did NOT copy it to the deploy directory which I would expect to have seen two lines after https://ci.appveyor.com/project/activescott/lessmsi/builds/50698208#L437 🤔 |
Well the good news (?) is that it fails locally now for me :) it succeeded earlier though so apparently I had some msbuild syntax that worked and broke it lol |
i just tried another simpler approach in msbuild. Hope this works! 🤞 |
looks like the it directory isn't in the zip though. So couple things left here that I know of:
|
@activescott, thank you for your help. If so, I'd be grateful if you could provide some information, since I am not familiar with their content. @bovirus, I believe we are getting closer to releasing a version with the Italian captions. |
This is good for me now. Here is how you can test this for future reference: CI always publishes artifacts for every build. So for the most recent build on this PR at the time I'm writing this comment they are at https://ci.appveyor.com/project/activescott/lessmsi/builds/50698795/artifacts
|
@mega5800 Please confirm all tasks are complete here and that you want to merge it and I'll merge it. |
Hello @activescott. Thank you for your help. |
@activescott, can you please merge the pull request? Thank you. |
Merged. Sorry for the delay. I was/am traveling for work. |
🎉 This PR is included in version 2.2.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
👍🎉 First off, thanks for taking the time to contribute! 🎉👍
Please fill out the following checklist:
If you need any help at all, feel free to submit the PR and @-mention activescott and I'll be happy to assist!
Hello @activescott.
I took care of this ticket and added Italian text support for the LessMSI GUI app.
Here are some screenshots of my work:
@bovirus, thank you for your help with Italian translations.
Thank you.