Browse Source

add new languages

Co-Authored-By: retiolus <[email protected]>
Co-Authored-By: rikishi0071 <[email protected]>
renovate/org.robolectric-robolectric-4.x
Austin Huang 4 years ago
parent
commit
38d0bd56f8
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 1
      app/src/main/java/awais/instagrabber/activities/MainActivity.java
  2. 4
      app/src/main/java/awais/instagrabber/utils/LocaleUtils.java
  3. 6
      app/src/main/res/values/arrays.xml

1
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();
}

4
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;
}

6
app/src/main/res/values/arrays.xml

@ -16,7 +16,8 @@
<item>Macedonian [Thanks to @snajdovski]</item>
<item>Vietnamese [Thanks to @fouze555]</item>
<item>Chinese Traditional [Thanks to @Still34]</item>
<item>Hindi</item>
<item>Catalan [Thanks to @retiolus]</item>
<item>Russian [Thanks to @rikishi0071]</item>
</string-array>
<string-array name="languages_values">
<item>0</item>
@ -33,6 +34,9 @@
<item>11</item>
<item>12</item>
<item>13</item>
<item>14</item>
<item>15</item>
<item>16</item>
</string-array>
<string-array name="theme_presets">
<item>Auto / Follow System</item>

Loading…
Cancel
Save