From 38d0bd56f8c86575275052ca1eecca1de08f1de7 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Mon, 30 Nov 2020 12:43:33 -0500 Subject: [PATCH] add new languages Co-Authored-By: retiolus <65604466+retiolus@users.noreply.github.com> Co-Authored-By: rikishi0071 <18183855+rikishi0071@users.noreply.github.com> --- .../java/awais/instagrabber/activities/MainActivity.java | 1 + app/src/main/java/awais/instagrabber/utils/LocaleUtils.java | 4 ++-- app/src/main/res/values/arrays.xml | 6 +++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/activities/MainActivity.java b/app/src/main/java/awais/instagrabber/activities/MainActivity.java index 3986e4f4..bcc8f5a9 100644 --- a/app/src/main/java/awais/instagrabber/activities/MainActivity.java +++ b/app/src/main/java/awais/instagrabber/activities/MainActivity.java @@ -556,6 +556,7 @@ public class MainActivity extends BaseLanguageActivity implements FragmentManage } else { Toast.makeText(getApplicationContext(), R.string.post_not_found, Toast.LENGTH_SHORT).show(); + alertDialog.dismiss(); } }).execute(); } diff --git a/app/src/main/java/awais/instagrabber/utils/LocaleUtils.java b/app/src/main/java/awais/instagrabber/utils/LocaleUtils.java index 988fd6d5..4d5644f4 100755 --- a/app/src/main/java/awais/instagrabber/utils/LocaleUtils.java +++ b/app/src/main/java/awais/instagrabber/utils/LocaleUtils.java @@ -74,8 +74,8 @@ public final class LocaleUtils { if (appLanguageIndex == 12) return "mk"; if (appLanguageIndex == 13) return "vi"; if (appLanguageIndex == 14) return "zh_TW"; - if (appLanguageIndex == 15) return "hi"; - if (appLanguageIndex == 16) return "cs"; + if (appLanguageIndex == 15) return "ca"; + if (appLanguageIndex == 16) return "ru"; return null; } diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index 0da39041..7970918c 100755 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -16,7 +16,8 @@ Macedonian [Thanks to @snajdovski] Vietnamese [Thanks to @fouze555] Chinese Traditional [Thanks to @Still34] - Hindi + Catalan [Thanks to @retiolus] + Russian [Thanks to @rikishi0071] 0 @@ -33,6 +34,9 @@ 11 12 13 + 14 + 15 + 16 Auto / Follow System