-
Notifications
You must be signed in to change notification settings - Fork 5
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 into Hebrew #20
Comments
That would be wonderful, thank you for offering. The app has already been translated into German -- I'll post some links here showing how that was done:
|
https://developer.android.com/training/basics/supporting-devices/languages is also helpful:
There's a lot of info there about RTL layout mirroring, etc. |
And here's the pull request that added the German translation: #7. Notice that the MR is mainly adding the values-de/strings.xml file. |
Last year i translated another app using this site: https://crowdin.com/ |
Yes, you'll want to fork and then open a PR into this repo (from the feature branch in your repo to the main/master branch in this repo). See https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork |
If you click on the link to the German translation PR, you'll see it says atorch merged 4 commits into atorch:master from rillig:master -- you'll do something very similar for your PR adding a new Hebrew strings xml file |
@Roymaor01 The GitHub workflow is terribly complicated when you are new to GitHub and Git and all this stuff. I agree that Crowdin is much more human-friendly. @atorch Since Crowdin is free for public projects, maybe that's the way to go. @Roymaor01 For translating the App using GitHub, the basic workflow is:
|
Thanks for your instructions. |
Good question! There are a few ways to make sure everything is working correctly: When you open an MR like #25 (note that I changed the target branch to https://github.com/atorch/probability_puzzles/tree/hebrew instead of master), github will automatically run an action/check/workflow that tries to build the app and tells you if there are any errors. See https://github.com/atorch/probability_puzzles/pull/25/checks. In this case, the check failed (you'll see a red checkmark), with the following error:
So there's something about the syntax in line number 10 (I think that's https://github.com/atorch/probability_puzzles/blob/hebrew/app/src/main/res/values-he/strings.xml#L11) that is causing an error, although it isn't immediately obvious to me what is wrong. Maybe the question mark at the beginning of the string needs to be replaced with a special character? I'll see what I can find online. The github check is nice because it runs automatically. To go deeper, you'd need to install something like https://developer.android.com/studio and inspect the code and error messages there. That's a lot of work, so if you open MRs pointing to this repo, I can load them into android studio and let you know what I see. Here's a screenshot: |
@Roymaor01 let's see whether we get a green or red check mark when the github check tries to build the app in Roymaor01#1 You'll have to click approve in order for the check to run (because I'm a first time contributor to your copy of the repo) If we get a green check mark, that'll tell us that the |
The error is indeed due to the question mark. When using a question mark at the beginning of a string, it must be written as |
1.I can translate the app to hebrew, if you'd like.
Please inform me how to continue.
Note that the app should be compatible to right-to-left text display
2. Using the app now, the text insertion is going from right to left , making the answers i type look unarrenged (but correct).
The text was updated successfully, but these errors were encountered: