[Doc] [UI] Use Crowdin for Translation #96

Manually merged
mmarif merged 6 commits from 6543/GitNex:translation-tool into master 2019-10-04 15:56:44 +00:00
Member

Changes

# Changes * README https://gitea.com/6543/GitNex/commit/75ac6ff1137225a4ff67b122e31dab134029c6e3 * CONTRIBUTING https://gitea.com/6543/GitNex/commit/9ef04b1287e3cc2d5ffa42d3d4339e66b37febb6 * About UI (atatchment)
mmarif reviewed 2019-10-04 14:29:18 +00:00
Dismissed
CONTRIBUTING.md Outdated

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.

`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.
Author
Member

about page

about page
6543 changed title from [WIP] Use Crowdin for Translation [Doc] to [Doc] Use Crowdin for Translation 2019-10-04 14:30:43 +00:00
6543 changed title from [Doc] Use Crowdin for Translation to [Doc] [UI] Use Crowdin for Translation 2019-10-04 14:30:52 +00:00
Owner

This is awesome. I have added comment on contribution file to modify it little bit.

About UI looks nice.

This is awesome. I have added comment on contribution file to modify it little bit. About UI looks nice.
mmarif added the
Enhancement
label 2019-10-04 14:50:36 +00:00
mmarif added this to the 2.2.0 milestone 2019-10-04 14:51:07 +00:00
mmarif reviewed 2019-10-04 15:04:03 +00:00
Dismissed

Seems this is hard coded. Can you add this link to strings.xml with translatable set to false?

Seems this is hard coded. Can you add this link to strings.xml with translatable set to false?
Owner

Just one more comment to address, after that all good.

Just one more comment to address, after that all good.
6543 reviewed 2019-10-04 15:18:23 +00:00
Dismissed
Author
Member

i dont cnow how to access @string in java :(

i dont cnow how to access @string in java :(
mmarif reviewed 2019-10-04 15:32:59 +00:00
Dismissed

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)));

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)));`
Author
Member

ok this is just fine! with each "comment" we all improve (app,knowlange,...)

ok this is just fine! with each "comment" we all improve (app,knowlange,...)
Author
Member

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 so

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 so
Owner

Most 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() and getString() depend on where you are like activity or fragment or other java file. Sometime you will need app context to access the resources(getApplicationContext() or getContext()).

I guess this PR is ready to merge?

Most 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()` and `getString()` depend on where you are like activity or fragment or other java file. Sometime you will need app context to access the resources(`getApplicationContext()` or `getContext()`). I guess this PR is ready to merge?
Author
Member

it is 🚀

it is :rocket:
mmarif closed this pull request 2019-10-04 15:56:44 +00:00
mmarif closed this pull request 2019-10-04 15:56:44 +00:00
mmarif deleted branch translation-tool 2019-10-04 15:56:57 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitnex/GitNex#96
No description provided.