1
0
Fork 1

Add further strings

This commit is contained in:
Arne 2024-11-29 16:53:50 +01:00
parent 77ae0a9283
commit c3b3148a3f
6 changed files with 21 additions and 14 deletions

View file

@ -807,9 +807,9 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
if (offered > 0) return false;
getPreferences().edit().putInt("default_stickers_offered", 1).apply();
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("Download Stickers?");
builder.setMessage("Would you like to download some default sticker packs?");
MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(this);
builder.setTitle(getString(R.string.download_stickers_title));
builder.setMessage(getString(R.string.download_stickers_text));
builder.setPositiveButton(R.string.yes, (dialog, which) -> {
if (hasStoragePermission(REQUEST_DOWNLOAD_STICKERS)) {
downloadStickers();
@ -848,8 +848,8 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
if (fromPrefs.contains("UPGRADE")) return false;
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("Dialler Integration");
MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(this);
builder.setTitle(getString(R.string.dialler_integration_title));
builder.setMessage("monocles Android is able to integrate with your system's dialler app to allow dialling calls via your configured gateway " + String.join(", ", pstnGateways) + ".\n\nEnabling this integration will require granting microphone permission to the app. Would you like to enable it now?");
builder.setPositiveButton(R.string.yes, (dialog, which) -> {
final String[] permissions;

View file

@ -731,9 +731,9 @@ public class StartConversationActivity extends XmppActivity
ft.addToBackStack(null);
EnterJidDialog dialog = EnterJidDialog.newInstance(
mActivatedAccounts,
"Start Conversation",
getString(R.string.message),
"Call",
getString(R.string.start_chat),
getString(R.string.write),
getString(R.string.call),
prefilledJid,
invite == null ? null : invite.account,
invite == null || !invite.hasFingerprints(),
@ -900,8 +900,8 @@ public class StartConversationActivity extends XmppActivity
return;
}
if (binding.startConversationViewPager.getCurrentItem() == 0) {
mSearchEditText.setHint("Search chats");
mSearchEditText.setContentDescription("Search chats");
mSearchEditText.setHint(getString(R.string.search_chats));
mSearchEditText.setContentDescription(getString(R.string.search_chats));
} else {
mSearchEditText.setHint(R.string.search_group_chats);
mSearchEditText.setContentDescription(getString(R.string.search_group_chats));

View file

@ -49,6 +49,6 @@
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:checked="true"
android:text="Save as Contact / Bookmark"/>
android:text="@string/save_as_contact_bookmark"/>
</LinearLayout>
</layout>

View file

@ -151,6 +151,4 @@
<item>mpeg4</item>
<item>3gpp</item>
</string-array>
<string name="suspected_spam">Suspected SPAM</string>
<string name="chats_from_strangers">Chats from strangers</string>
</resources>

View file

@ -1362,4 +1362,13 @@
<string name="app_lock_forgot_password">Reinstall app and load chat backup</string>
<string name="new_message">New message</string>
<string name="action_fix">Fix</string>
<string name="download_stickers_title">Download stickers?</string>
<string name="download_stickers_text">Would you like to download some default sticker packs?</string>
<string name="dialler_integration_title">Dialler integration</string>
<string name="call">Call</string>
<string name="write">Write</string>
<string name="search_chats">Search chats</string>
<string name="save_as_contact_bookmark">Save as contact / bookmark</string>
<string name="suspected_spam">Suspected SPAM</string>
<string name="chats_from_strangers">Chats from strangers</string>
</resources>

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<PreferenceCategory android:title="Theme">
<PreferenceCategory android:title="@string/pref_theme_title">
<SwitchPreferenceCompat
android:icon="@drawable/ic_palette_24dp"
android:key="dynamic_colors"