[Doc] [UI] Use Crowdin for Translation #96
No reviewers
Labels
No Label
Priority-high
Accepting-merge-requests
API
API-dependency
Backport
Blocked
Brainstorming
Breaking
Bug
Changelog
CI
Cleanup
Confirmed
Discussion
Documentation
Duplicate
Enhancement
External-dependecy
F-droid
Feature
Google-play
Improvement
Invalid
Investigate
LGTM-done
LGTM-need
Long-term
Major-release
Minor-release
Needs-cleanup
Needs-feedback
Needs-help
Priority-critical
Priority-low
Priority-medium
Question
Ready
Refactor
Regression
Release
Repository
Security
Suggestion
Support
Testing
Translation
UI/UX
Upstream
Website
WIP
No Milestone
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitnex/GitNex#96
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "6543/GitNex:translation-tool"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changes
75ac6ff113
9ef04b1287
We use [Crowdin](https://crowdin.com/project/gitnex).
could be for better understanding.
We use [Crowdin](https://crowdin.com/project/gitnex) for translation. If your language is not listed, please request [here](https://gitea.com/mmarif/GitNex/issues) to add it to the project.
The rest are fine.
about page
[WIP] Use Crowdin for Translation [Doc]to [Doc] Use Crowdin for Translation[Doc] Use Crowdin for Translationto [Doc] [UI] Use Crowdin for TranslationThis is awesome. I have added comment on contribution file to modify it little bit.
About UI looks nice.
Seems this is hard coded. Can you add this link to strings.xml with translatable set to false?
Just one more comment to address, after that all good.
i dont cnow how to access @string in java :(
Add the following in strings.xml below
appDesc
string.<string name="corwdinLink" translatable="false">https://crowdin.com/project/gitnex</string>
Change this line
intent.setData(Uri.parse("https://crowdin.com/project/gitnex"));
to
intent.setData(Uri.parse(getResources().getString(R.string.corwdinLink)));
ok this is just fine! with each "comment" we all improve (app,knowlange,...)
now the url is in the string.xml :) -> Android Studio resolve
getResources().getString(R.string.StringID)
to its value so i didnt noticed this until you told me soMost of the strings(text, urls etc) are all in strings.xml file. Nothing is hard coded, which is sometime pain to change when hard coded.
getResources()
andgetString()
depend on where you are like activity or fragment or other java file. Sometime you will need app context to access the resources(getApplicationContext()
orgetContext()
).I guess this PR is ready to merge?
it is 🚀