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
+2
View File
@@ -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"))
}
}
}
@@ -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
+1
View File
@@ -151,4 +151,5 @@
<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="pref_general_infinite_loading_title">(BETA) Charger plus d\'articles au scroll</string>
<string name="translation">Traduction</string>
</resources>
+1
View File
@@ -152,4 +152,5 @@
<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="pref_general_infinite_loading_title">(BETA) Load more articles on scroll</string>
<string name="translation">Vertaling</string>
</resources>
+1
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_off">No api call will be logged</string>
<string name="pref_general_infinite_loading_title">(BETA) Load more articles on scroll</string>
<string name="translation">Translation</string>
</resources>
+3
View File
@@ -7,4 +7,7 @@
<Preference android:title="@string/source_code"
android:key="sourceLink" />
<Preference android:title="@string/translation"
android:key="translation" />
</PreferenceScreen>