-
Notifications
You must be signed in to change notification settings - Fork 95
Submodule i18n #528
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
base: main
Are you sure you want to change the base?
Submodule i18n #528
Conversation
Thank you for the pull request! 💙The Scribe-Android team will do our best to address your contribution as soon as we can. If you're not already a member of our public Matrix community, please consider joining! We'd suggest that you use the Element client as well as Element X for a mobile app, and definitely join the Note Scribe uses Conventional Comments in reviews to make sure that communication is as clear as possible. |
Maintainer ChecklistThe following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :)
|
|
@angrezichatterbox and @DeleMike: The commits that are in this PR now have us in a really great place as far as switching Scribe-i18n over to a submodule rather than a subtree. @catreedle will work on fixing the hard coded strings and keys that have changed since the last update of Scribe-i18n within the project, and then it'd be great if we could do a through review seeing as how this will update many of the texts across the application 😊 Great work so far, @catreedle! |
|
note: Updated the PR description to reflect that this PR will close #527 and #515. We need to bring in the latest version of Scribe-i18n, and then this will finalize both once we fix any keys that are now different and replace some hard coded strings with keys. Let us know if you need support here, @catreedle! note: Closed #526 in favor of this PR :) |
|
Hi @andrewtavis , I missed the session yesterday to learn how to use the |
|
Hi @DeleMike 👋 You can check the docs for Scribe-i18n - the readme - that explains it all. @catreedle will load in the submodule and then we'll be able to edit and load in new versions 😊 |
Thank you @andrewtavis , I will go through it. Thank you! |
|
Let us know when this is ready, @catreedle :) And feel free to start on bringing Scribe-i18n into Scribe-iOS when you're done here :) |
Hi @andrewtavis question: what to do when some strings are missing for Android but they are already available in i18n, for example "i18n._global.privacy_policy": "Privacy Policy". Because they don't start with "i18n.app" they got filtered out by the convert_jsons_to_strings script? |
|
Great question, @catreedle :) We should update the script to also convert the |
|
I'll quickly merge in the changes to Scribe-i18n and then you can bring them over to this PR :) |
sure! |
made the PR here :) |
|
Scribe-i18n has been updated, @catreedle :) Note that I needed to do another commit after I merged your PR as the scripts needed to factor for |
thank you! :) sorry for the oversight |
|
No need to apologize, @catreedle! 💙🩵 |
|
Checking in, @catreedle, are we ready for a review here? |
yes @andrewtavis, ready for review 😊 |
|
Hi @catreedle , currently looking at your work. Well done! |
DeleMike
left a comment
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.
@angrezichatterbox and @DeleMike: The commits that are in this PR now have us in a really great place as far as switching Scribe-i18n over to a submodule rather than a subtree. @catreedle will work on fixing the hard coded strings and keys that have changed since the last update of Scribe-i18n within the project, and then it'd be great if we could do a through review seeing as how this will update many of the texts across the application 😊
Thanks @andrewtavis, I have gone through it with the help of @catreedle, and the app is running as usual.
I was able to run it well and also understand the following:
-
If I am opening a project for the first time, how do I use this Scribe-i18n?
Answer: rungit clone --recurse-submodules -
If it already exists on the project, how do I get the latest values to sync properly with the project?
Answer: rungit submodule update --init --recursive
I ran the second command, and it was able to generate some files as seen in the attached image.

The files generated seem pretty consistent. Only surprise here was that the uk directory was empty. @catreedle replied me via my Matrix DM that it is because the other languages have not been updated yet so there are missing keys.
One thing is the documentation will need to be really explicit in steps so that people don't get stucked while trying to setup the project localization modules or use localized strings.
Also, @andrewtavis, is there also a specific thing I need to be looking at on this PR(so I do not miss out on an important thing)? This is what I understand so far.
Contributor checklist
./gradlew lintKotlin detekt testcommand as directed in the testing section of the contributing guideDescription
Related issue