mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Added the functionality
This commit is contained in:
parent
2e064c370a
commit
1b1568d15e
2 changed files with 3 additions and 2 deletions
|
|
@ -126,6 +126,7 @@ public class AboutActivity extends NavigationBaseActivity {
|
|||
public void onClick(DialogInterface dialog, int which) {
|
||||
String languageSelected = spinner.getSelectedItem().toString();
|
||||
TokensTranslations tokensTranslations = new TokensTranslations();
|
||||
tokensTranslations.initailize();
|
||||
String token = tokensTranslations.getTranslationToken(languageSelected);
|
||||
Utils.handleWebUrl(AboutActivity.this,Uri.parse("https://translatewiki.net/w/i.php?title=Special:Translate&language="+token+"&group=commons-android-strings&filter=%21translated&action=translate ?"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ import java.util.HashMap;
|
|||
*/
|
||||
|
||||
public class TokensTranslations {
|
||||
private static HashMap<String,String> translationToken;
|
||||
HashMap<String,String> translationToken = new HashMap<String,String>();
|
||||
|
||||
TokensTranslations() {
|
||||
public void initailize() {
|
||||
translationToken.put("Kazakh", "ab");
|
||||
translationToken.put("Afrikaans", "af");
|
||||
translationToken.put("Arabic", "ar");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue