diff options
author | kruks23 <scardenas@openmailbox.org> | 2014-05-23 16:20:49 +0200 |
---|---|---|
committer | kruks23 <scardenas@openmailbox.org> | 2014-05-23 16:20:49 +0200 |
commit | d6fd0343ae86917dd18e219be2556c65cbf032d7 (patch) | |
tree | c167a384e08fa28db73380ff2464cfaabe12a2d4 | |
parent | a0dde05ee59058bfd71968eb4072aaaa9be5c090 (diff) |
Title activities translations + contacts translations + update Spanish Translations
Diffstat (limited to '')
-rw-r--r-- | AndroidManifest.xml | 12 | ||||
-rw-r--r-- | res/values-es/strings.xml | 18 | ||||
-rw-r--r-- | res/values/strings.xml | 14 | ||||
-rw-r--r-- | src/eu/siacs/conversations/ui/ContactsActivity.java | 18 | ||||
-rw-r--r-- | src/eu/siacs/conversations/ui/EditAccount.java | 4 |
5 files changed, 47 insertions, 19 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index d8ef5fa4..62ea4035 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -39,7 +39,7 @@ <activity android:name="eu.siacs.conversations.ui.ConversationActivity" android:configChanges="orientation|screenSize" - android:label="Conversations" + android:label="@string/title_activity_conversations" android:windowSoftInputMode="stateHidden" > <intent-filter> <action android:name="android.intent.action.MAIN" /> @@ -49,23 +49,23 @@ </activity> <activity android:name="eu.siacs.conversations.ui.SettingsActivity" - android:label="Settings" + android:label="@string/title_activity_settings" android:parentActivityName="eu.siacs.conversations.ui.ConversationActivity" > </activity> <activity android:name="eu.siacs.conversations.ui.ManageAccountActivity" - android:label="Manage Accounts" + android:label="@string/title_activity_manage_accounts" android:configChanges="orientation|screenSize" android:parentActivityName="eu.siacs.conversations.ui.ConversationActivity" > </activity> <activity android:name="eu.siacs.conversations.ui.MucDetailsActivity" - android:label="Conference Details" + android:label="@string/title_activity_conference_details" android:windowSoftInputMode="stateHidden" > </activity> <activity android:name="eu.siacs.conversations.ui.ContactDetailsActivity" - android:label="Contact Details" + android:label="@string/title_activity_contact_details" android:windowSoftInputMode="stateHidden" > </activity> <activity @@ -85,7 +85,7 @@ </activity> <activity android:name="eu.siacs.conversations.ui.ShareWithActivity" - android:label="Conversations" + android:label="@string/title_activity_conversations" android:theme="@android:style/Theme.Holo.Light.DialogWhenLarge" android:icon="@drawable/ic_launcher"> <intent-filter> diff --git a/res/values-es/strings.xml b/res/values-es/strings.xml index ffe06442..f0f05a67 100644 --- a/res/values-es/strings.xml +++ b/res/values-es/strings.xml @@ -15,6 +15,11 @@ <string name="action_delete_contact">Eliminar contacto de la lista</string> <string name="action_add_phone_book">Añadir a contactos del teléfono</string> <string name="title_activity_contacts">Contactos</string> + <string name="title_activity_manage_accounts">Gestionar Cuentas</string> + <string name="title_activity_settings">Ajustes</string> + <string name="title_activity_conference_details">Detalles de Conferencia</string> + <string name="title_activity_contact_details">Detalles de Contacto</string> + <string name="title_activity_conversations">Conversations</string> <string name="just_now">ahora</string> <string name="minutes_ago">min</string> <string name="unread_conversations">conversaciones por leer</string> @@ -39,10 +44,19 @@ <string name="invite_contacts">Invitar contactos</string> <string name="invite_contacts_to_existing">Invitar a conferencia existente</string> <string name="new_conference">Crear nueva conferencia</string> + <string name="new_contact">Crear nuevo contacto</string> + <string name="contacts">Contactos</string> + <string name="choose_account">Seleccionar cuenta</string> + <string name="multi_user_conference">Conferencia multiusuario</string> + <string name="trying_join_conference">¿Estás intentando unirte a una conferencia?</string> <string name="cancel">Cancelar</string> <string name="add">Añadir</string> <string name="edit">Editar</string> <string name="delete">Eliminar</string> + <string name="save">Guardar</string> + <string name="yes">Sí</string> + <string name="no">No</string> + <string name="ok">Ok</string> <string name="create_invite">Crear \u0026 Invitar</string> <string name="new_conference_explained">¿Quieres crear una nueva conferencia con una dirección generada aleatoriamente e invitar a los contactos seleccionados a ella?</string> <string name="no_open_mucs">No hay conferencias existentes</string> @@ -130,7 +144,7 @@ <string name="accept">Aceptar</string> <string name="error">Ha ocurrido un error</string> <string name="pref_grant_presence_updates">Suscripción de presencia</string> - <string name="pref_grant_presence_updates_summary">Por defecto otorgar y pedir suscripciones de presencia de los contactos que has creado</string> + <string name="pref_grant_presence_updates_summary">Por defecto solicitar y conceder suscripciones de presencia de los contactos que has creado</string> <string name="subscriptions">Suscripciones</string> <string name="subscription_updated">Suscripción actualizada</string> <string name="your_account">Tu cuenta</string> @@ -141,7 +155,7 @@ <string name="asked_for_presence_updates">Solictida actualizaciones de presencia</string> <string name="attach_choose_picture">Seleccionar imagen</string> <string name="attach_take_picture">Hacer foto</string> - <string name="preemptively_grant">Por defecto otorgar peticiones de suscripción</string> + <string name="preemptively_grant">Por defecto conceder solicitud de suscripción</string> <string name="error_not_an_image_file">El archivo seleccionado no es una imagen</string> <string name="error_compressing_image">Error convirtiendo el archivo de imagen</string> <string name="error_file_not_found">Archivo no encontrado</string> diff --git a/res/values/strings.xml b/res/values/strings.xml index b2c97478..0512106e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -15,6 +15,11 @@ <string name="action_add_phone_book">Add to phone book</string> <string name="action_delete_contact">Delete from roster</string> <string name="title_activity_contacts">Contacts</string> + <string name="title_activity_manage_accounts">Manage Accounts</string> + <string name="title_activity_settings">Settings</string> + <string name="title_activity_conference_details">Conference Details</string> + <string name="title_activity_contact_details">Contact Details</string> + <string name="title_activity_conversations">Conversations</string> <string name="just_now">just now</string> <string name="minutes_ago">min ago</string> <string name="unread_conversations">unread Conversations</string> @@ -39,10 +44,19 @@ <string name="invite_contacts">Invite Contacts</string> <string name="invite_contacts_to_existing">Invite to existing conference</string> <string name="new_conference">Create new conference</string> + <string name="new_contact">Create new contact</string> + <string name="contacts">Contacts</string> + <string name="choose_account">Choose account</string> + <string name="multi_user_conference">Multi User Conference</string> + <string name="trying_join_conference">Are you trying to join a conference?</string> <string name="cancel">Cancel</string> <string name="add">Add</string> <string name="edit">Edit</string> <string name="delete">Delete</string> + <string name="save">Save</string> + <string name="yes">Yes</string> + <string name="no">No</string> + <string name="ok">Ok</string> <string name="create_invite">Create \u0026 Invite</string> <string name="new_conference_explained">Do you want to create a new conference with a randomly generated address and invite the selected contacts to it?</string> <string name="no_open_mucs">No existing conferences</string> diff --git a/src/eu/siacs/conversations/ui/ContactsActivity.java b/src/eu/siacs/conversations/ui/ContactsActivity.java index c18b0891..f4c8ef0b 100644 --- a/src/eu/siacs/conversations/ui/ContactsActivity.java +++ b/src/eu/siacs/conversations/ui/ContactsActivity.java @@ -186,7 +186,7 @@ public class ContactsActivity extends XmppActivity { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(getString(R.string.account_offline)); builder.setMessage(getString(R.string.cant_invite_while_offline)); - builder.setNegativeButton("OK", null); + builder.setNegativeButton(getString(R.string.ok), null); builder.setIconAttribute(android.R.attr.alertDialogIcon); builder.create().show(); return false; @@ -289,12 +289,12 @@ public class ContactsActivity extends XmppActivity { Contact newContact = new Contact(searchString); newContact.resetOption(Contact.Options.IN_ROSTER); aggregatedContacts.add(newContact); - contactsHeader.setText("Create new contact"); + contactsHeader.setText(getString(R.string.new_contact)); } else { - contactsHeader.setText("Contacts"); + contactsHeader.setText(getString(R.string.contacts)); } } else { - contactsHeader.setText("Contacts"); + contactsHeader.setText(getString(R.string.contacts)); } contactsAdapter.notifyDataSetChanged(); @@ -427,7 +427,7 @@ public class ContactsActivity extends XmppActivity { } AlertDialog.Builder accountChooser = new AlertDialog.Builder(this); - accountChooser.setTitle("Choose account"); + accountChooser.setTitle(getString(R.string.choose_account)); accountChooser.setItems(accountList, listener); return accountChooser.create(); } @@ -435,9 +435,9 @@ public class ContactsActivity extends XmppActivity { public void showIsMucDialogIfNeeded(final Contact clickedContact) { if (clickedContact.couldBeMuc()) { AlertDialog.Builder dialog = new AlertDialog.Builder(this); - dialog.setTitle("Multi User Conference"); - dialog.setMessage("Are you trying to join a conference?"); - dialog.setPositiveButton("Yes", new OnClickListener() { + dialog.setTitle(getString(R.string.multi_user_conference)); + dialog.setMessage(getString(R.string.trying_join_conference)); + dialog.setPositiveButton(getString(R.string.yes), new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { @@ -445,7 +445,7 @@ public class ContactsActivity extends XmppActivity { clickedContact.getAccount(), true); } }); - dialog.setNegativeButton("No", new OnClickListener() { + dialog.setNegativeButton(getString(R.string.no), new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { diff --git a/src/eu/siacs/conversations/ui/EditAccount.java b/src/eu/siacs/conversations/ui/EditAccount.java index 47930747..d1863f7e 100644 --- a/src/eu/siacs/conversations/ui/EditAccount.java +++ b/src/eu/siacs/conversations/ui/EditAccount.java @@ -82,8 +82,8 @@ public class EditAccount extends DialogFragment { }); builder.setView(view); - builder.setNeutralButton(R.string.cancel, null); - builder.setPositiveButton(R.string.save, null); + builder.setNeutralButton(getString(R.string.cancel), null); + builder.setPositiveButton(getString(R.string.save), null); return builder.create(); } |