diff --git a/.gitignore b/.gitignore
index 66ca69c..56b1517 100644
--- a/.gitignore
+++ b/.gitignore
@@ -214,4 +214,6 @@ gradle-app.setting
# End of https://www.gitignore.io/api/java,gradle,android,androidstudio
-release/
\ No newline at end of file
+release/
+
+crowdin.properties
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5577434..1348501 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+**1.5.3.01/02**
+
+- Added translation link to the settings page.
+
+- Added the translation link to the README.
+
**1.5.3.00**
- (BETA) Added pull from bottom to load more pages of results. May be buggy.
diff --git a/app/build.gradle b/app/build.gradle
index 86f1b70..cc0e6bf 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -58,6 +58,7 @@ android {
buildConfigField "String", "FEEDBACK_EMAIL", feedbackEmail
buildConfigField "String", "SOURCE_URL", sourceUrl
buildConfigField "String", "TRACKER_URL", trackerUrl
+ buildConfigField "String", "TRANSLATION_URL", translationUrl
}
buildTypes {
release {
@@ -204,6 +205,7 @@ def initAppForSecretPropertiesIfNeeded() {
entry(key: "feedbackEmail", value: System.getProperty("feedbackEmail"))
entry(key: "sourceUrl", value: System.getProperty("sourceUrl"))
entry(key: "trackerUrl", value: System.getProperty("trackerUrl"))
+ entry(key: "translationUrl", value: System.getProperty("translationUrl"))
}
}
}
diff --git a/app/src/main/java/apps/amine/bou/readerforselfoss/settings/SettingsActivity.java b/app/src/main/java/apps/amine/bou/readerforselfoss/settings/SettingsActivity.java
index 1712917..555c934 100644
--- a/app/src/main/java/apps/amine/bou/readerforselfoss/settings/SettingsActivity.java
+++ b/app/src/main/java/apps/amine/bou/readerforselfoss/settings/SettingsActivity.java
@@ -255,6 +255,14 @@ public class SettingsActivity extends AppCompatPreferenceActivity {
return false;
}
});
+
+ findPreference("translation").setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
+ @Override
+ public boolean onPreferenceClick(Preference preference) {
+ openUrl(Uri.parse(BuildConfig.TRANSLATION_URL));
+ return false;
+ }
+ });
}
@Override
diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml
index b4d96e5..ef9c686 100644
--- a/app/src/main/res/values-fr/strings.xml
+++ b/app/src/main/res/values-fr/strings.xml
@@ -151,4 +151,5 @@
Aucun appel à l\'API ne sera logué
Tous les appels à l\'API vont êtres logués
(BETA) Charger plus d\'articles au scroll
+ Traduction
\ No newline at end of file
diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml
index 545dd9b..70a15ba 100644
--- a/app/src/main/res/values-nl/strings.xml
+++ b/app/src/main/res/values-nl/strings.xml
@@ -152,4 +152,5 @@
No api call will be logged
This will log every api call for debug purpose.
(BETA) Load more articles on scroll
+ Vertaling
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index a4172fe..b87e5da 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -154,4 +154,5 @@
This will log every api call for debug purpose.
No api call will be logged
(BETA) Load more articles on scroll
+ Translation
\ No newline at end of file
diff --git a/app/src/main/res/xml/pref_links.xml b/app/src/main/res/xml/pref_links.xml
index 29e9bfa..262feaa 100644
--- a/app/src/main/res/xml/pref_links.xml
+++ b/app/src/main/res/xml/pref_links.xml
@@ -7,4 +7,7 @@
+
+
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
index ffeee94..4518158 100644
--- a/build.gradle
+++ b/build.gradle
@@ -7,7 +7,7 @@ buildscript {
google()
}
dependencies {
- classpath 'com.android.tools.build:gradle:3.0.0-beta5'
+ classpath 'com.android.tools.build:gradle:3.0.0-beta6'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong