Crowdin translation.

This commit is contained in:
Amine 2017-09-16 22:28:20 +02:00
parent e0595957e2
commit 0051ed2e73
9 changed files with 26 additions and 2 deletions

4
.gitignore vendored
View File

@ -214,4 +214,6 @@ gradle-app.setting
# End of https://www.gitignore.io/api/java,gradle,android,androidstudio # End of https://www.gitignore.io/api/java,gradle,android,androidstudio
release/ release/
crowdin.properties

View File

@ -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** **1.5.3.00**
- (BETA) Added pull from bottom to load more pages of results. May be buggy. - (BETA) Added pull from bottom to load more pages of results. May be buggy.

View File

@ -58,6 +58,7 @@ android {
buildConfigField "String", "FEEDBACK_EMAIL", feedbackEmail buildConfigField "String", "FEEDBACK_EMAIL", feedbackEmail
buildConfigField "String", "SOURCE_URL", sourceUrl buildConfigField "String", "SOURCE_URL", sourceUrl
buildConfigField "String", "TRACKER_URL", trackerUrl buildConfigField "String", "TRACKER_URL", trackerUrl
buildConfigField "String", "TRANSLATION_URL", translationUrl
} }
buildTypes { buildTypes {
release { release {
@ -204,6 +205,7 @@ def initAppForSecretPropertiesIfNeeded() {
entry(key: "feedbackEmail", value: System.getProperty("feedbackEmail")) entry(key: "feedbackEmail", value: System.getProperty("feedbackEmail"))
entry(key: "sourceUrl", value: System.getProperty("sourceUrl")) entry(key: "sourceUrl", value: System.getProperty("sourceUrl"))
entry(key: "trackerUrl", value: System.getProperty("trackerUrl")) entry(key: "trackerUrl", value: System.getProperty("trackerUrl"))
entry(key: "translationUrl", value: System.getProperty("translationUrl"))
} }
} }
} }

View File

@ -255,6 +255,14 @@ public class SettingsActivity extends AppCompatPreferenceActivity {
return false; return false;
} }
}); });
findPreference("translation").setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick(Preference preference) {
openUrl(Uri.parse(BuildConfig.TRANSLATION_URL));
return false;
}
});
} }
@Override @Override

View File

@ -151,4 +151,5 @@
<string name="login_everything_off">Aucun appel à l\'API ne sera logué</string> <string name="login_everything_off">Aucun appel à l\'API ne sera logué</string>
<string name="login_everything_on">Tous les appels à l\'API vont êtres logués</string> <string name="login_everything_on">Tous les appels à l\'API vont êtres logués</string>
<string name="pref_general_infinite_loading_title">(BETA) Charger plus d\'articles au scroll</string> <string name="pref_general_infinite_loading_title">(BETA) Charger plus d\'articles au scroll</string>
<string name="translation">Traduction</string>
</resources> </resources>

View File

@ -152,4 +152,5 @@
<string name="login_everything_off">No api call will be logged</string> <string name="login_everything_off">No api call will be logged</string>
<string name="login_everything_on">This will log every api call for debug purpose.</string> <string name="login_everything_on">This will log every api call for debug purpose.</string>
<string name="pref_general_infinite_loading_title">(BETA) Load more articles on scroll</string> <string name="pref_general_infinite_loading_title">(BETA) Load more articles on scroll</string>
<string name="translation">Vertaling</string>
</resources> </resources>

View File

@ -154,4 +154,5 @@
<string name="login_everything_on">This will log every api call for debug purpose.</string> <string name="login_everything_on">This will log every api call for debug purpose.</string>
<string name="login_everything_off">No api call will be logged</string> <string name="login_everything_off">No api call will be logged</string>
<string name="pref_general_infinite_loading_title">(BETA) Load more articles on scroll</string> <string name="pref_general_infinite_loading_title">(BETA) Load more articles on scroll</string>
<string name="translation">Translation</string>
</resources> </resources>

View File

@ -7,4 +7,7 @@
<Preference android:title="@string/source_code" <Preference android:title="@string/source_code"
android:key="sourceLink" /> android:key="sourceLink" />
<Preference android:title="@string/translation"
android:key="translation" />
</PreferenceScreen> </PreferenceScreen>

View File

@ -7,7 +7,7 @@ buildscript {
google() google()
} }
dependencies { 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" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong