diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a1b7ae88..cfdfc7a1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -24,6 +24,7 @@ In case you want to submit a bug report, please provide as much details as possi ## Translation Help us translate GitNex to your native language. -Take a look [here](https://gitea.com/mmarif/GitNex/src/branch/master/app/src/main/res/values/strings.xml) for strings, please ignore the lines with `translatable="false"`. It is recommended to create a Pull Request with your changes. +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. -Check the structure of other languages for example [French](https://gitea.com/mmarif/GitNex/src/branch/master/app/src/main/res/values-fr/strings.xml). \ No newline at end of file +**Link: https://crowdin.com/project/GitNex** diff --git a/README.md b/README.md index d1664eea..8f8911d3 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) [![Release](https://img.shields.io/badge/dynamic/json.svg?label=release&url=https://gitea.com/api/v1/repos/mmarif/GitNex/releases&query=$[0].tag_name)](https://gitea.com/mmarif/GitNex/releases) +[![Crowdin](https://badges.crowdin.net/gitnex/localized.svg)](https://crowdin.com/project/gitnex) [Become a Patroen](https://www.patreon.com/mmarif) [Donate using Liberapay](https://liberapay.com/mmarif/donate) diff --git a/app/src/main/java/org/mian/gitnex/fragments/AboutFragment.java b/app/src/main/java/org/mian/gitnex/fragments/AboutFragment.java index 936aa7d8..81b546c6 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/AboutFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/AboutFragment.java @@ -49,6 +49,7 @@ public class AboutFragment extends Fragment { final TextView appVerBuild; final TextView donationLink; final TextView donationLinkPatreon; + final TextView translateLink; final TextView creditsButton; final TextView sponsorsButton; final TextView appWebsite; @@ -64,6 +65,7 @@ public class AboutFragment extends Fragment { creditsButton = v.findViewById(R.id.creditsButton); donationLink = v.findViewById(R.id.donationLink); donationLinkPatreon = v.findViewById(R.id.donationLinkPatreon); + translateLink = v.findViewById(R.id.translateLink); sponsorsButton = v.findViewById(R.id.sponsorsButton); appWebsite = v.findViewById(R.id.appWebsite); appRepo = v.findViewById(R.id.appRepo); @@ -90,6 +92,16 @@ public class AboutFragment extends Fragment { } }); + translateLink.setOnClickListener(new View.OnClickListener() { + public void onClick(View v) { + Intent intent = new Intent(); + intent.setAction(Intent.ACTION_VIEW); + intent.addCategory(Intent.CATEGORY_BROWSABLE); + intent.setData(Uri.parse(getResources().getString(R.string.corwdinLink))); + startActivity(intent); + } + }); + appWebsite.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent intent = new Intent(); diff --git a/app/src/main/res/layout/fragment_about.xml b/app/src/main/res/layout/fragment_about.xml index 153a554c..c4b740b7 100644 --- a/app/src/main/res/layout/fragment_about.xml +++ b/app/src/main/res/layout/fragment_about.xml @@ -105,8 +105,21 @@ android:gravity="start" android:autoLink="web" android:visibility="visible" + android:layout_marginBottom="10dp" android:textColorLink="@color/lightBlue" /> + + https://www.patreon.com/mmarif %1$s / build %2$d GitNex is a free, open-source Android client for Git repository management tool Gitea. GitNex is Licensed under GPLv3.\n\nThanks to all the contributors and sponsors for your generous work and donations. + https://crowdin.com/project/gitnex @@ -493,6 +494,7 @@ Location Max 255 characters All fields are required + Translate GitNex with Crowdin