nekogram locale

This commit is contained in:
Riko Sakurauchi 2020-01-09 01:08:16 +08:00
parent 70f9bb86a1
commit 5b66a9f00d
No known key found for this signature in database
GPG Key ID: 25AC0345B92902AF
17 changed files with 38 additions and 33 deletions

View File

@ -21,7 +21,7 @@
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/AppNameBeta"
android:label="@string/NekogramBeta"
android:theme="@style/Theme.TMessages.Start"
android:hardwareAccelerated="@bool/useHardwareAcceleration"
android:largeHeap="true"

View File

@ -22,7 +22,7 @@
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/AppNameBeta"
android:label="@string/NekogramBeta"
android:theme="@style/Theme.TMessages.Start"
android:name=".ApplicationLoader"
android:hardwareAccelerated="@bool/useHardwareAcceleration"

View File

@ -21,7 +21,7 @@
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/AppName"
android:label="@string/Nekogram"
android:theme="@style/Theme.TMessages.Start"
android:hardwareAccelerated="@bool/useHardwareAcceleration"
android:largeHeap="true"

View File

@ -22,7 +22,7 @@
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/AppName"
android:label="@string/Nekogram"
android:theme="@style/Theme.TMessages.Start"
android:hardwareAccelerated="@bool/useHardwareAcceleration"
android:largeHeap="true"

View File

@ -280,7 +280,7 @@
<service
android:name="org.telegram.messenger.TgChooserTargetService"
android:label="@string/AppName"
android:label="@string/Nekogram"
android:permission="android.permission.BIND_CHOOSER_TARGET_SERVICE">
<intent-filter>
<action android:name="android.service.chooser.ChooserTargetService" />

View File

@ -972,7 +972,7 @@ public class PasscodeView extends FrameLayout {
fingerprintStatusTextView.setLayoutParams(layoutParams);
AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
builder.setTitle("\uD83D\uDE36 Nekogram");
builder.setTitle(LocaleController.getString("NekogramWithEmoji", R.string.NekogramWithEmoji));
builder.setView(relativeLayout);
builder.setNegativeButton(LocaleController.getString("Cancel", R.string.Cancel), null);
builder.setOnDismissListener(dialog -> {

View File

@ -3398,13 +3398,13 @@ public class DialogsActivity extends BaseFragment implements NotificationCenter.
if (folderId != 0) {
title = LocaleController.getString("ArchivedChats", R.string.ArchivedChats);
} else {
title = "Nekogram";
title = LocaleController.getString("Nekogram", R.string.Nekogram);
}
}
if (FilterPopup.getInstance(currentAccount).getTotalUnreadCount() == 0) {
return "\uD83D\uDE36 " + title;
return LocaleController.getString("NekogramEmojiDialogs", R.string.NekogramEmojiDialogs) + " " + title;
}
return "\uD83E\uDD14 " + title;
return LocaleController.getString("NekogramEmojiDialogsUnread", R.string.NekogramEmojiDialogsUnread) + " " + title;
}
@Override

View File

@ -243,7 +243,7 @@ public class LoginActivity extends BaseFragment {
@Override
public View createView(Context context) {
actionBar.setTitle("\uD83D\uDE36 Nekogram");
actionBar.setTitle(LocaleController.getString("NekogramWithEmoji", R.string.NekogramWithEmoji));
actionBar.setActionBarMenuOnItemClick(new ActionBar.ActionBarMenuOnItemClick() {
@Override
public void onItemClick(int id) {
@ -895,7 +895,7 @@ public class LoginActivity extends BaseFragment {
return;
}
AlertDialog.Builder builder = new AlertDialog.Builder(getParentActivity());
builder.setTitle("\uD83D\uDE36 Nekogram");
builder.setTitle(LocaleController.getString("NekogramWithEmoji", R.string.NekogramWithEmoji));
builder.setMessage(LocaleController.getString("StopLoading", R.string.StopLoading));
builder.setPositiveButton(LocaleController.getString("WaitMore", R.string.WaitMore), null);
builder.setNegativeButton(LocaleController.getString("Stop", R.string.Stop), (dialogInterface, i) -> {
@ -1707,14 +1707,14 @@ public class LoginActivity extends BaseFragment {
}*/
}
if (countryState == 1) {
needShowAlert("\uD83D\uDE36 Nekogram", LocaleController.getString("ChooseCountry", R.string.ChooseCountry));
needShowAlert(LocaleController.getString("NekogramWithEmoji", R.string.NekogramWithEmoji), LocaleController.getString("ChooseCountry", R.string.ChooseCountry));
return;
} else if (countryState == 2 && !BuildVars.DEBUG_VERSION) {
needShowAlert("\uD83D\uDE36 Nekogram", LocaleController.getString("WrongCountry", R.string.WrongCountry));
needShowAlert(LocaleController.getString("NekogramWithEmoji", R.string.NekogramWithEmoji), LocaleController.getString("WrongCountry", R.string.WrongCountry));
return;
}
if (codeField.length() == 0) {
needShowAlert("\uD83D\uDE36 Nekogram", LocaleController.getString("InvalidPhoneNumber", R.string.InvalidPhoneNumber));
needShowAlert(LocaleController.getString("NekogramWithEmoji", R.string.NekogramWithEmoji), LocaleController.getString("InvalidPhoneNumber", R.string.InvalidPhoneNumber));
return;
}
if (phoneField.length() == 0) {
@ -1732,7 +1732,7 @@ public class LoginActivity extends BaseFragment {
if (PhoneNumberUtils.compare(phone, userPhone)) {
final int num = a;
AlertDialog.Builder builder = new AlertDialog.Builder(getParentActivity());
builder.setTitle("\uD83D\uDE36 Nekogram");
builder.setTitle(LocaleController.getString("NekogramWithEmoji", R.string.NekogramWithEmoji));
builder.setMessage(LocaleController.getString("AccountAlreadyLoggedIn", R.string.AccountAlreadyLoggedIn));
builder.setPositiveButton(LocaleController.getString("AccountSwitch", R.string.AccountSwitch), (dialog, which) -> {
if (UserConfig.selectedAccount != num) {
@ -2681,7 +2681,7 @@ public class LoginActivity extends BaseFragment {
public boolean onBackPressed(boolean force) {
if (!force) {
AlertDialog.Builder builder = new AlertDialog.Builder(getParentActivity());
builder.setTitle("\uD83D\uDE36 Nekogram");
builder.setTitle(LocaleController.getString("NekogramWithEmoji", R.string.NekogramWithEmoji));
builder.setMessage(LocaleController.getString("StopVerification", R.string.StopVerification));
builder.setPositiveButton(LocaleController.getString("Continue", R.string.Continue), null);
builder.setNegativeButton(LocaleController.getString("Stop", R.string.Stop), (dialogInterface, i) -> {
@ -3899,7 +3899,7 @@ public class LoginActivity extends BaseFragment {
public boolean onBackPressed(boolean force) {
if (!force) {
AlertDialog.Builder builder = new AlertDialog.Builder(getParentActivity());
builder.setTitle("\uD83D\uDE36 Nekogram");
builder.setTitle(LocaleController.getString("NekogramWithEmoji", R.string.NekogramWithEmoji));
builder.setMessage(LocaleController.getString("AreYouSureRegistration", R.string.AreYouSureRegistration));
builder.setNegativeButton(LocaleController.getString("Stop", R.string.Stop), (dialogInterface, i) -> {
onBackPressed(true);

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="AppName">Nekogram</string>
<string name="AppNameBeta">Nekogram Beta</string>
<string name="AppName">Telegram</string>
<string name="AppNameBeta">Telegram Beta</string>
<string name="LanguageName">العربية</string>
<string name="English">الإنجليزية</string>
<string name="LanguageNameInEnglish">Arabic</string>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="AppName">Nekogram</string>
<string name="AppNameBeta">Nekogram Beta</string>
<string name="AppName">Telegram</string>
<string name="AppNameBeta">Telegram Beta</string>
<string name="LanguageName">Deutsch</string>
<string name="English">Englisch</string>
<string name="LanguageNameInEnglish">German</string>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="AppName">Nekogram</string>
<string name="AppNameBeta">Nekogram Beta</string>
<string name="AppName">Telegram</string>
<string name="AppNameBeta">Telegram Beta</string>
<string name="LanguageName">Español</string>
<string name="English">Inglés</string>
<string name="LanguageNameInEnglish">Spanish</string>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="AppName">Nekogram</string>
<string name="AppNameBeta">Nekogram Beta</string>
<string name="AppName">Telegram</string>
<string name="AppNameBeta">Telegram Beta</string>
<string name="LanguageName">Italiano</string>
<string name="English">Inglese</string>
<string name="LanguageNameInEnglish">Italian</string>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="AppName">Nekogram</string>
<string name="AppNameBeta">Nekogram Beta</string>
<string name="AppName">Telegram</string>
<string name="AppNameBeta">Telegram Beta</string>
<string name="LanguageName">한국어</string>
<string name="English">영어</string>
<string name="LanguageNameInEnglish">한국어</string>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="AppName">Nekogram</string>
<string name="AppNameBeta">Nekogram Beta</string>
<string name="AppName">Telegram</string>
<string name="AppNameBeta">Telegram Beta</string>
<string name="LanguageName">Nederlands</string>
<string name="English">Engels</string>
<string name="LanguageNameInEnglish">Dutch</string>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="AppName">Nekogram</string>
<string name="AppNameBeta">Nekogram Beta</string>
<string name="AppName">Telegram</string>
<string name="AppNameBeta">Telegram Beta</string>
<string name="LanguageName">Português (Brasil)</string>
<string name="English">Inglês</string>
<string name="LanguageNameInEnglish">Portuguese (Brazil)</string>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="AppName">Nekogram</string>
<string name="AppNameBeta">Nekogram Beta</string>
<string name="AppName">Telegram</string>
<string name="AppNameBeta">Telegram Beta</string>
<string name="LanguageName">English</string>
<string name="English">English</string>
<string name="LanguageNameInEnglish">English</string>

View File

@ -1,5 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="Nekogram">Nekogram</string>
<string name="NekogramBeta">Nekogram Beta</string>
<string name="NekogramWithEmoji">&#128566; Nekogram</string>
<string name="NekogramEmojiDialogs">&#128566;</string>
<string name="NekogramEmojiDialogsUnread">&#129300;</string>
<string name="NekoSettings">Neko Settings</string>
<string name="IPv6">Try connecting through IPv6</string>
<string name="MessageMenu">Message menu</string>