Fix issue #532
This commit is contained in:
parent
14d8443ffe
commit
7cf95d12da
|
@ -38,6 +38,7 @@ public class PeertubeInformation {
|
|||
aMap.put("cs", "cs-CZ");
|
||||
aMap.put("zh-CN", "zh-Hans-CN");
|
||||
aMap.put("zh-TW", "zh-Hans-TW");
|
||||
aMap.put("sc", "sc");
|
||||
langueMapped = aMap;
|
||||
}
|
||||
|
||||
|
|
|
@ -2564,6 +2564,10 @@ public class ContentSettingsFragment extends Fragment implements OnRetrieveRemot
|
|||
editor.putString(Helper.SET_DEFAULT_LOCALE_NEW, "szl");
|
||||
editor.commit();
|
||||
break;
|
||||
case 23:
|
||||
editor.putString(Helper.SET_DEFAULT_LOCALE_NEW, "sc");
|
||||
editor.commit();
|
||||
break;
|
||||
}
|
||||
|
||||
PackageManager packageManager = context.getPackageManager();
|
||||
|
|
|
@ -255,7 +255,7 @@ public class BaseHelper {
|
|||
public static final String TAG = "mastodon_etalab";
|
||||
public static final String CLIENT_NAME_VALUE = "Fedilab";
|
||||
public static final String OAUTH_SCOPES = "read write follow push";
|
||||
public static final String OAUTH_SCOPES_ADMIN = "read write follow push admin:read admin:write admin";
|
||||
public static final String OAUTH_SCOPES_ADMIN = "read write follow push admin:read admin:write";
|
||||
public static final String OAUTH_SCOPES_PEERTUBE = "user";
|
||||
public static final String PREF_KEY_OAUTH_TOKEN = "oauth_token";
|
||||
|
||||
|
@ -3787,13 +3787,15 @@ public class BaseHelper {
|
|||
return 21;
|
||||
case "szl":
|
||||
return 22;
|
||||
case "sc":
|
||||
return 23;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public static String[] getLocales(Context context) {
|
||||
String[] locale = new String[23];
|
||||
String[] locale = new String[24];
|
||||
locale[0] = context.getString(R.string.default_language);
|
||||
locale[1] = context.getString(R.string.english);
|
||||
locale[2] = context.getString(R.string.french);
|
||||
|
@ -3817,6 +3819,7 @@ public class BaseHelper {
|
|||
locale[20] = context.getString(R.string.kabyle);
|
||||
locale[21] = context.getString(R.string.catalan);
|
||||
locale[22] = context.getString(R.string.silesian);
|
||||
locale[23] = context.getString(R.string.sardinian);
|
||||
return locale;
|
||||
}
|
||||
|
||||
|
|
|
@ -707,6 +707,7 @@
|
|||
<string name="ukrainian" translatable="false">Українська</string>
|
||||
<string name="russian" translatable="false">Русский</string>
|
||||
<string name="norwegian" translatable="false">Norsk</string>
|
||||
<string name="sardinian" translatable="false">Sarda</string>
|
||||
<string name="show_media_only">Media only</string>
|
||||
<string name="show_media_nsfw">Show NSFW</string>
|
||||
<string name="crowdin_translations">Crowdin translations</string>
|
||||
|
|
Loading…
Reference in New Issue