From 9ef04b1287e3cc2d5ffa42d3d4339e66b37febb6 Mon Sep 17 00:00:00 2001
From: 6543 <6543@obermui.de>
Date: Fri, 4 Oct 2019 16:08:17 +0200
Subject: [PATCH 1/6] change CONTRIBUTING.md for Crowdin
---
CONTRIBUTING.md | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index a1b7ae88..f1999f82 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).
+So just have a look at it, you can easely contribute to it.
-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**
From 75ac6ff1137225a4ff67b122e31dab134029c6e3 Mon Sep 17 00:00:00 2001
From: 6543 <6543@obermui.de>
Date: Fri, 4 Oct 2019 16:08:40 +0200
Subject: [PATCH 2/6] Add Crowdin Badge
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index d1664eea..8f8911d3 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,6 @@
[](https://www.gnu.org/licenses/gpl-3.0)
[](https://gitea.com/mmarif/GitNex/releases)
+[](https://crowdin.com/project/gitnex)
[
](https://www.patreon.com/mmarif)
[
](https://liberapay.com/mmarif/donate)
From 7fa57621d9f76c71ec7b0c9a8e9e28602d61af52 Mon Sep 17 00:00:00 2001
From: 6543 <6543@obermui.de>
Date: Fri, 4 Oct 2019 16:20:46 +0200
Subject: [PATCH 3/6] change about layout
---
app/src/main/res/layout/fragment_about.xml | 13 +++++++++++++
app/src/main/res/values/strings.xml | 1 +
2 files changed, 14 insertions(+)
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" />
+
+
Location
Max 255 characters
All fields are required
+ Translate GitNex with Crowdin
From 1be577cd3f9fa88e411b49dd1103176e9c63d0e7 Mon Sep 17 00:00:00 2001
From: 6543 <6543@obermui.de>
Date: Fri, 4 Oct 2019 16:21:24 +0200
Subject: [PATCH 4/6] add ClickListener to open Translation URL
---
.../org/mian/gitnex/fragments/AboutFragment.java | 12 ++++++++++++
1 file changed, 12 insertions(+)
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..8e396190 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("https://crowdin.com/project/gitnex"));
+ startActivity(intent);
+ }
+ });
+
appWebsite.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Intent intent = new Intent();
From e32ccde9958159dfe2c1bfc3d37d840876e433c8 Mon Sep 17 00:00:00 2001
From: 6543 <6543@obermui.de>
Date: Fri, 4 Oct 2019 16:55:09 +0200
Subject: [PATCH 5/6] add info if lang is not listed
---
CONTRIBUTING.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f1999f82..cfdfc7a1 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -24,7 +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.
-We use [Crowdin](https://crowdin.com/project/gitnex).
-So just have a look at it, you can easely contribute to it.
+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.
**Link: https://crowdin.com/project/GitNex**
From 1512032f052267fc741235ab68a3c1e5a547cda0 Mon Sep 17 00:00:00 2001
From: 6543 <6543@obermui.de>
Date: Fri, 4 Oct 2019 17:44:38 +0200
Subject: [PATCH 6/6] move corwdin Link to strings
---
app/src/main/java/org/mian/gitnex/fragments/AboutFragment.java | 2 +-
app/src/main/res/values/strings.xml | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
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 8e396190..81b546c6 100644
--- a/app/src/main/java/org/mian/gitnex/fragments/AboutFragment.java
+++ b/app/src/main/java/org/mian/gitnex/fragments/AboutFragment.java
@@ -97,7 +97,7 @@ public class AboutFragment extends Fragment {
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.addCategory(Intent.CATEGORY_BROWSABLE);
- intent.setData(Uri.parse("https://crowdin.com/project/gitnex"));
+ intent.setData(Uri.parse(getResources().getString(R.string.corwdinLink)));
startActivity(intent);
}
});
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 3a5abcf1..8cfb0ada 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -14,6 +14,7 @@
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