Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
set default language locale
Browse files Browse the repository at this point in the history
  • Loading branch information
n8fr8 committed Feb 13, 2018
1 parent 859a929 commit 2601e94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/org/awesomeapp/messenger/Preferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

import org.awesomeapp.messenger.util.Languages;

import java.util.Locale;

import im.zom.messenger.R;


Expand Down Expand Up @@ -35,7 +37,7 @@ public class Preferences {
OTR_MODE_REQUESTED,
OTR_MODE_DISABLED
};
public static final String DEFAULT_LANGUAGE = null;
public static final String DEFAULT_LANGUAGE = Locale.getDefault().getLanguage();
public static final String DEFAULT_OTR_MODE = OTR_MODE_AUTO;
public static final String DEFAULT_NOTIFICATION_RINGTONE_URI = "content://settings/system/notification_sound";
public static final int DEFAULT_HEARTBEAT_INTERVAL = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ private Languages(Activity activity) {
|| locale.equals(Locale.ENGLISH))
localeSet.add(locale);
}

for (Locale locale : localeSet) {
if (locale.equals(TIBETAN)) {
// include English name for devices without Tibetan font support
Expand Down

0 comments on commit 2601e94

Please sign in to comment.