1
mirror of https://github.com/m2049r/xmrwallet synced 2024-10-31 10:56:39 +01:00

Fix TalkBack Screen reader (#917)

* Fixing TalkBack p1

* Fix TalkBack español translate p2

* Fix TalkBack français translate p3

* Escape some apostrophe, Fix wrong Locale codes
This commit is contained in:
XD22 2024-01-13 15:03:31 +02:00 committed by GitHub
parent 59cc6b1864
commit 434dab55ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 73 additions and 26 deletions

View File

@ -126,21 +126,25 @@ public class Toolbar extends MaterialToolbar {
Timber.d("BUTTON_BACK");
bSettings.setImageResource(R.drawable.ic_arrow_back);
bSettings.setVisibility(View.VISIBLE);
bSettings.setContentDescription(getResources().getString(R.string.menu_back));
break;
case BUTTON_CLOSE:
Timber.d("BUTTON_CLOSE");
bSettings.setImageResource(R.drawable.ic_close_white_24dp);
bSettings.setVisibility(View.VISIBLE);
bSettings.setContentDescription(getResources().getString(R.string.menu_close));
break;
case BUTTON_SETTINGS:
Timber.d("BUTTON_SETTINGS");
bSettings.setImageResource(R.drawable.ic_settings);
bSettings.setVisibility(View.VISIBLE);
bSettings.setContentDescription(getResources().getString(R.string.menu_settings));
break;
case BUTTON_CANCEL:
Timber.d("BUTTON_CANCEL");
bSettings.setImageResource(R.drawable.ic_close_white_24dp);
bSettings.setVisibility(View.VISIBLE);
bSettings.setContentDescription(getResources().getString(R.string.menu_cancel));
break;
case BUTTON_NONE:
default:

View File

@ -60,7 +60,8 @@
android:background="?android:attr/selectableItemBackgroundBorderless"
android:gravity="center"
android:padding="12dp"
android:src="@drawable/ic_network_clearnet" />
android:src="@drawable/ic_network_clearnet"
android:contentDescription="@string/tor_enable" />
<FrameLayout
android:layout_width="match_parent"
@ -103,7 +104,8 @@
android:background="?android:attr/selectableItemBackgroundBorderless"
android:gravity="center"
android:padding="12dp"
android:src="@drawable/ic_renew" />
android:src="@drawable/ic_renew"
android:contentDescription="@string/node_refresh_hint" />
</RelativeLayout>
<EditText

View File

@ -69,6 +69,7 @@
app:elevation="0dp"
app:fabSize="normal"
app:pressedTranslationZ="0dp"
app:tint="?attr/toolbarTextColor" />
app:tint="?attr/toolbarTextColor"
android:contentDescription="@string/node_fab_add" />
</FrameLayout>
</RelativeLayout>

View File

@ -54,7 +54,8 @@
android:layout_marginStart="8dp"
android:background="?android:selectableItemBackground"
android:padding="8dp"
android:src="@drawable/ic_content_copy_24dp" />
android:src="@drawable/ic_content_copy_24dp"
android:contentDescription="@string/copy_receive_address" />
</LinearLayout>
@ -97,7 +98,8 @@
android:backgroundTint="#ffffffff"
android:clickable="true"
android:focusable="true"
card_view:contentPadding="4dp">
card_view:contentPadding="4dp"
android:contentDescription="@string/label_receive_info_gen_qr_code" >
<TextView
android:id="@+id/tvQrCode"

View File

@ -56,7 +56,8 @@
android:layout_gravity="center"
android:layout_marginStart="8dp"
android:background="?android:selectableItemBackgroundBorderless"
android:src="@drawable/ic_content_paste_24dp" />
android:src="@drawable/ic_content_paste_24dp"
android:contentDescription="@string/paste_give_address" />
</RelativeLayout>
<LinearLayout
@ -78,7 +79,8 @@
android:layout_weight="1"
android:background="@null"
android:padding="8dp"
android:src="@drawable/ic_monero" />
android:src="@drawable/ic_monero"
android:contentDescription="XMR" />
<ImageButton
android:id="@+id/ibBTC"
@ -87,7 +89,8 @@
android:layout_weight="1"
android:background="@null"
android:padding="8dp"
android:src="@drawable/ic_xmrto_btc_off" />
android:src="@drawable/ic_xmrto_btc_off"
android:contentDescription="BTC" />
<ImageButton
android:id="@+id/ibLTC"
@ -96,7 +99,8 @@
android:layout_weight="1"
android:background="@null"
android:padding="8dp"
android:src="@drawable/ic_xmrto_ltc_off" />
android:src="@drawable/ic_xmrto_ltc_off"
android:contentDescription="LTC"/>
<ImageButton
android:id="@+id/ibETH"
@ -105,7 +109,8 @@
android:layout_weight="1"
android:background="@null"
android:padding="8dp"
android:src="@drawable/ic_xmrto_eth_off" />
android:src="@drawable/ic_xmrto_eth_off"
android:contentDescription="ETH"/>
<ImageButton
android:id="@+id/ibDASH"
@ -114,7 +119,8 @@
android:layout_weight="1"
android:background="@null"
android:padding="8dp"
android:src="@drawable/ic_xmrto_dash_off" />
android:src="@drawable/ic_xmrto_dash_off"
android:contentDescription="DASH"/>
<ImageButton
android:id="@+id/ibDOGE"
@ -123,7 +129,8 @@
android:layout_weight="1"
android:background="@null"
android:padding="8dp"
android:src="@drawable/ic_xmrto_doge_off" />
android:src="@drawable/ic_xmrto_doge_off"
android:contentDescription="DOGE"/>
</LinearLayout>
<FrameLayout

View File

@ -70,6 +70,7 @@
app:elevation="0dp"
app:fabSize="normal"
app:pressedTranslationZ="0dp"
app:tint="?attr/toolbarTextColor" />
app:tint="?attr/toolbarTextColor"
android:contentDescription="@string/subaddress_add" />
</FrameLayout>
</FrameLayout>

View File

@ -12,6 +12,7 @@
android:layout_alignEnd="@id/fabL"
android:alpha="0.93"
android:background="?android:attr/colorBackground"
android:focusable="true"
android:visibility="invisible">
<RelativeLayout
@ -28,7 +29,8 @@
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginEnd="8dp"
android:text="@string/fab_create_new" />
android:text="@string/fab_create_new"
android:contentDescription="@string/fab_create_new" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fabNew"
@ -61,7 +63,8 @@
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginEnd="8dp"
android:text="@string/fab_restore_viewonly" />
android:text="@string/fab_restore_viewonly"
android:contentDescription="@string/fab_restore_viewonly" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fabView"
@ -91,7 +94,8 @@
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginEnd="8dp"
android:text="@string/fab_restore_key" />
android:text="@string/fab_restore_key"
android:contentDescription="@string/fab_restore_key" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fabKey"
@ -121,7 +125,8 @@
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginEnd="8dp"
android:text="@string/fab_restore_seed" />
android:text="@string/fab_restore_seed"
android:contentDescription="@string/fab_restore_seed" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fabSeed"
@ -151,7 +156,8 @@
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginEnd="8dp"
android:text="@string/menu_restore" />
android:text="@string/menu_restore"
android:contentDescription="@string/menu_restore" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fabImport"
@ -226,7 +232,8 @@
app:elevation="0dp"
app:fabSize="normal"
app:pressedTranslationZ="0dp"
app:tint="?attr/toolbarTextColor" />
app:tint="?attr/toolbarTextColor"
android:contentDescription="@string/fab_create_new" />
</LinearLayout>
</RelativeLayout>

View File

@ -32,5 +32,6 @@
android:backgroundTint="#00000000"
android:padding="8dp"
android:src="@drawable/ic_close_white_24dp"
app:tint="?colorOnSecondary" />
app:tint="?colorOnSecondary"
android:contentDescription="@string/label_close" />
</LinearLayout>

View File

@ -10,7 +10,8 @@
android:background="?android:attr/selectableItemBackgroundBorderless"
android:padding="2dp"
android:src="@drawable/ic_settings"
app:tint="?attr/toolbarTextColor" />
app:tint="?attr/toolbarTextColor"
android:contentDescription="@string/menu_settings" />
<FrameLayout
android:layout_width="wrap_content"

View File

@ -11,6 +11,9 @@
<string name="menu_rename">Cambiar nombre</string>
<string name="menu_backup">Copia de seguridad</string>
<string name="menu_changepw">Cambiar contraseña</string>
<string name="menu_back">Atrás</string>
<string name="menu_close">Cerca</string>
<string name="menu_cancel">Cancelar</string>
<string name="password_weak">Sigue escribiendo &#8230;</string>
<string name="password_fair">Mas o menos.</string>
@ -200,6 +203,8 @@
<string name="receive_amount_too_big">Max. %1$s</string>
<string name="receive_amount_negative">Min. 0</string>
<string name="receive_amount_nan">XMR no es un número</string>
<string name="copy_receive_address">Copiar dirección de recepción</string>
<string name="paste_give_address">Pegar dirección de recepción</string>
<string name="details_alert_message">Se va a mostrar información delicada. Cualquiera con acceso a ella tendría control sobre tus fondos.\n¡Mira detrás tuyo!</string>
<string name="details_alert_yes">Estoy seguro</string>
@ -400,6 +405,7 @@
<string name="subaddress_notx_label">Aún no hay transacciones recibidas en esta subdirección.</string>
<string name="subaddress_select_label">Elige una subdirección</string>
<string name="subaddress_details_hint">Mantén presionado para ver los detalles</string>
<string name="subaddress_add">Agregar subdirección</string>
<string name="menu_delete">Eliminar</string><!-- like: "Delete wallet!" -->
<string name="delete_failed">¡Falló la eliminación!</string>
@ -414,6 +420,7 @@
<string name="node_waiting">\u00A0ESPERANDO AL NODO\u00A0</string>
<string name="tor_enable_background">Selecciona "Permitir inicios en segundo plano" en los ajustes de Orbot para usar Tor</string>
<string name="tor_noshift">SideShift.ai no soporta Tor.\nDesactiva Tor para cambiar XMR.</string>
<string name="tor_enable">Habilitar TOR</string>
<string name="label_seed_offset_encrypt">Semilla encriptada (EXPERIMENTAL)</string>
<string name="seed_offset_hint">Palabra clave adicional</string>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools" tools:locale="en">
<resources xmlns:tools="http://schemas.android.com/tools" tools:locale="fa">
<string name="about_close">بستن</string>
<string name="about_whoami">من مونروجو هستم</string>
<string name="about_version">

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools" tools:locale="en">
<resources xmlns:tools="http://schemas.android.com/tools" tools:locale="fa">
<string name="help_create_new"><![CDATA[
<h1>ساخت کیف پول حدید</h1>
<p>اگر یک کیف پول جدید مونرو نیاز دارید!</p>

View File

@ -11,6 +11,9 @@
<string name="menu_rename">Renommer</string>
<string name="menu_backup">Sauvegarder</string>
<string name="menu_changepw">Modifier Phrase secrète</string>
<string name="menu_back">Précédent</string>
<string name="menu_close">fermer</string>
<string name="menu_cancel">Annuler</string>
<string name="password_weak">Continuez de taper &#8230;</string>
<string name="password_fair">Bof &#8230;</string>
@ -261,6 +264,8 @@
<string name="receive_amount_too_big">Max. %1$s</string>
<string name="receive_amount_negative">Min. 0</string>
<string name="receive_amount_nan">XMR pas un nombre</string>
<string name="copy_receive_address">Copier l\'adresse de réception</string>
<string name="paste_give_address">Coller donner l\'adresse</string>
<string name="details_alert_message">Des données sensible vont être affichées.\nRegardez autour de vous !</string>
<string name="details_alert_yes">C\'est bon</string>
@ -414,6 +419,7 @@
<string name="subaddress_notx_label">No transactions for this subaddress yet</string>
<string name="subaddress_select_label">Select a subaddress</string>
<string name="subaddress_details_hint">Long-press for details</string>
<string name="subaddress_add">Ajouter une sous-adresse</string>
<string name="menu_delete">Delete</string><!-- like: "Delete wallet!" -->
<string name="delete_failed">Delete failed!</string>
@ -428,6 +434,7 @@
<string name="node_waiting">\u00A0WAITING FOR NODE\u00A0</string>
<string name="tor_enable_background">"Allow Background Starts" in Orbot Settings to use Tor!</string>
<string name="tor_noshift">SideShift.ai doesn\'t support Tor.\nDisable Tor to swap XMR.</string>
<string name="tor_enable">Activer TOR</string>
<string name="label_seed_offset_encrypt">Seed encryption (EXPERIMENTAL)</string>
<string name="seed_offset_hint">Seed Offset Phrase (optional)</string>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools" tools:locale="en">
<resources xmlns:tools="http://schemas.android.com/tools" tools:locale="ta">
<string name="help_create_new"><![CDATA[
<h1>பணப்பையை உருவாக்கல் - புதிய</h1>
<p>உங்களுக்கு ஒரு புதிய மொனேரொ முகவரி தேவைப்பட்டால்</p>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE resources [<!ENTITY nbsp "&#160;">]>
<resources xmlns:tools="http://schemas.android.com/tools" tools:locale="en">
<resources xmlns:tools="http://schemas.android.com/tools" tools:locale="ta">
<string name="wallet_activity_name">பணப்பை</string>
<string name="menu_about">எங்களைப் பற்றி</string>

View File

@ -13,6 +13,9 @@
<string name="menu_delete">Delete</string>
<string name="menu_backup">Backup</string>
<string name="menu_changepw">Change Passphrase</string>
<string name="menu_back" tools:ignore="MissingTranslation">Back</string>
<string name="menu_close" tools:ignore="MissingTranslation">Close</string>
<string name="menu_cancel" tools:ignore="MissingTranslation">Cancel</string>
<string name="password_weak">Continue typing &#8230;</string>
<string name="password_fair">Meh &#8230;</string>
@ -24,7 +27,7 @@
<string name="label_credits">Credits</string>
<string name="label_ok">OK</string>
<string name="label_cancel">Cancel</string>
<string name="label_close">Close</string>
<string name="label_close">Close Note</string>
<string name="label_wallet_advanced_details">Detailed information</string>
<string name="label_send_success">Successfully sent</string>
@ -272,6 +275,8 @@
<string name="receive_amount_too_big">Max. %1$s</string>
<string name="receive_amount_negative">Min. 0</string>
<string name="receive_amount_nan">XMR not a number</string>
<string name="copy_receive_address" tools:ignore="MissingTranslation">Copy receive address</string>
<string name="paste_give_address" tools:ignore="MissingTranslation">Paste give address</string>
<string name="details_alert_message">Sensitive data will now be shown.\nLook over your shoulder!</string>
<string name="details_alert_yes">I\'m safe</string>
@ -444,6 +449,7 @@
<string name="subaddress_notx_label">No transactions for this subaddress yet</string>
<string name="subaddress_select_label">Select a subaddress</string>
<string name="subaddress_details_hint">Long-press for details</string>
<string name="subaddress_add" tools:ignore="MissingTranslation">Add Subaddress</string>
<string name="menu_restore">Import wallet</string>
<string name="restore_failed">Import failed!</string>
@ -457,6 +463,7 @@
<string name="node_waiting">\u00A0WAITING FOR NODE\u00A0</string>
<string name="tor_enable_background">"Allow Background Starts" in Orbot Settings to use Tor!</string>
<string name="tor_noshift">SideShift.ai doesn\'t support Tor.\nDisable Tor to swap XMR.</string>
<string name="tor_enable" tools:ignore="MissingTranslation">Enable TOR</string>
<string name="label_seed_offset_encrypt">Seed encryption (EXPERIMENTAL)</string>
<string name="seed_offset_hint">Seed Offset Phrase (optional)</string>