Skip to content

Commit 0462f1b

Browse files
committed
Add translations to preferences
1 parent dc0fa8a commit 0462f1b

File tree

4 files changed

+49
-12
lines changed

4 files changed

+49
-12
lines changed

app/src/main/res/menu/menu.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
<menu xmlns:android="http://schemas.android.com/apk/res/android">
33
<item
44
android:id="@+id/action_settings"
5-
android:title="Settings" />
5+
android:title="@string/action_settings" />
66
</menu>

app/src/main/res/values-es/strings.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,23 @@
2020
<string name="notification_title_spam_blocked">Número de spam bloqueado</string>
2121
<string name="notification_text_spam_blocked">Número de spam bloqueado: %1$s</string>
2222
<string name="number_copied_to_clipboard">Número copiado al portapapeles</string>
23+
24+
<!-- Preferences -->
25+
26+
<string name="action_settings">Ajustes</string>
27+
28+
<string name="pref_enable_blocking_title">Activar bloqueo general</string>
29+
<string name="pref_enable_blocking_summary">Habilita o deshabilita el sistema de bloqueo de llamadas en toda la aplicación</string>
30+
31+
<string name="pref_filter_lista_spam_title">Filtrar con listaspam.com</string>
32+
<string name="pref_filter_lista_spam_summary">Bloquea llamadas de números de spam incluidos en la base de datos de listaspam.com</string>
33+
34+
<string name="pref_filter_responder_o_no_title">Filtrar con responderono.es</string>
35+
<string name="pref_filter_responder_o_no_summary">Bloquear llamadas de números de spam incluidos en la base de datos de responderono.es</string>
36+
37+
<string name="pref_block_non_contacts_title">Bloquear números desconocidos</string>
38+
<string name="pref_block_non_contacts_summary">Bloquea todas las llamadas de números que no están en tu lista de contactos</string>
39+
40+
<string name="pref_show_notification_title">Mostrar notificación al bloquear llamadas</string>
41+
<string name="pref_show_notification_summary">Recibe una notificación cuando una llamada es bloqueada</string>
2342
</resources>

app/src/main/res/values/strings.xml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,22 @@
2121
<string name="notification_text_spam_blocked">Blocked spam number: %1$s</string>
2222
<string name="number_copied_to_clipboard">Phone number copied to clipboard</string>
2323

24-
</resources>
24+
<!-- Preferences -->
25+
26+
<string name="action_settings">Settings</string>
27+
28+
<string name="pref_enable_blocking_title">Enable General Blocking</string>
29+
<string name="pref_enable_blocking_summary">Enables or disables the call blocking system across the entire application</string>
30+
31+
<string name="pref_filter_lista_spam_title">Filter with listaspam.com</string>
32+
<string name="pref_filter_lista_spam_summary">Blocks calls from spam numbers included in the listaspam.com database</string>
33+
34+
<string name="pref_filter_responder_o_no_title">Filter with responderono.es</string>
35+
<string name="pref_filter_responder_o_no_summary">Blocks calls from spam numbers included in the responderono.es database</string>
36+
37+
<string name="pref_block_non_contacts_title">Block Unknown Numbers</string>
38+
<string name="pref_block_non_contacts_summary">Blocks all calls from numbers not in your contact list</string>
39+
40+
<string name="pref_show_notification_title">Show Notification on call blocking</string>
41+
<string name="pref_show_notification_summary">Receive a notification when a call is blocked</string>
42+
</resources>

app/src/main/res/xml/preferences.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,36 @@
44
<!-- Activar/desactivar bloqueo general -->
55
<CheckBoxPreference
66
android:key="pref_enable_blocking"
7-
android:title="Activar bloqueo general"
8-
android:summary="Habilita o deshabilita el sistema de bloqueo de llamadas en toda la aplicación"
7+
android:title="@string/pref_enable_blocking_title"
8+
android:summary="@string/pref_enable_blocking_summary"
99
android:defaultValue="true" />
1010

1111
<!-- Filtrar con la base de datos de listaspam.com -->
1212
<CheckBoxPreference
1313
android:key="pref_filter_lista_spam"
14-
android:title="Filtrar con listaspam.com"
15-
android:summary="Bloquea llamadas de números de spam incluidos en la base de datos de listaspam.com"
14+
android:title="@string/pref_filter_lista_spam_title"
15+
android:summary="@string/pref_filter_lista_spam_summary"
1616
android:defaultValue="true" />
1717

1818
<!-- Filtrar con la base de datos de ResponderONo.es -->
1919
<CheckBoxPreference
2020
android:key="pref_filter_responder_o_no"
21-
android:title="Filtrar con responderono.es"
22-
android:summary="Bloquear llamadas de números de spam incluidos en la base de datos de responderono.es"
21+
android:title="@string/pref_filter_responder_o_no_title"
22+
android:summary="@string/pref_filter_responder_o_no_summary"
2323
android:defaultValue="true" />
2424

2525
<!-- Bloquear todos los números que no sean contactos -->
2626
<CheckBoxPreference
2727
android:key="pref_block_non_contacts"
28-
android:title="Bloquear números desconocidos"
29-
android:summary="Bloquea todas las llamadas de números que no están en tu lista de contactos"
28+
android:title="@string/pref_block_non_contacts_title"
29+
android:summary="@string/pref_block_non_contacts_summary"
3030
android:defaultValue="false" />
3131

3232
<!-- Mostrar notificación al bloquear número -->
3333
<CheckBoxPreference
3434
android:key="pref_show_notification"
35-
android:title="Mostrar notificación al bloquear"
36-
android:summary="Recibe una notificación cuando un número es bloqueado"
35+
android:title="@string/pref_show_notification_title"
36+
android:summary="@string/pref_show_notification_summary"
3737
android:defaultValue="true" />
3838

3939
</PreferenceScreen>

0 commit comments

Comments
 (0)