Commit cd46a416 authored by Javier Romero's avatar Javier Romero

Add spanish translation

parent 3acf14ef
## [Unreleased]
### Added
- Spanish (es) translation
## [4.0.8] - 2018-09-03
### Added
......
......@@ -29,11 +29,7 @@ class PostgresForm(context: Context, view: View) : BaseForm(context, view) {
val errorMessage = context.resources.getString(R.string.form_error_database_required)
validator.put(databaseEditTextView, object : Rule<EditText>(errorMessage) {
override fun isValid(databaseEditTextView: EditText): Boolean {
if (TextUtils.isEmpty(databaseEditTextView.text)) {
return false
} else {
return true
}
return !TextUtils.isEmpty(databaseEditTextView.text)
}
})
}
......@@ -57,10 +53,10 @@ class PostgresForm(context: Context, view: View) : BaseForm(context, view) {
}
override fun getHelpMessageResource(view: View): Int {
when (view.id) {
R.id.form_swtch_use_ssl -> return R.string.help_use_ssl
R.id.form_swtch_trust_cert -> return R.string.help_trust_cert
else -> return super.getHelpMessageResource(view)
return when (view.id) {
R.id.form_swtch_use_ssl -> R.string.help_use_ssl
R.id.form_swtch_trust_cert -> R.string.help_trust_cert
else -> super.getHelpMessageResource(view)
}
}
}
\ No newline at end of file
......@@ -51,7 +51,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/ic_form_header_connection"
android:text="Connection Details"
android:text="@string/connection_details"
android:drawablePadding="10dp"
android:textSize="20dp"
android:background="@drawable/form_header_underline"/>
......@@ -74,7 +74,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/ic_form_header_gears"
android:text="Advanced Options"
android:text="@string/advanced_options"
android:drawablePadding="10dp"
android:textSize="20dp"
android:background="@drawable/form_header_underline"/>
......
......@@ -51,7 +51,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/ic_form_header_connection"
android:text="Connection Details"
android:text="@string/connection_details"
android:drawablePadding="10dp"
android:textSize="20dp"
android:background="@drawable/form_header_underline"/>
......
......@@ -51,7 +51,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/ic_form_header_connection"
android:text="Connection Details"
android:text="@string/connection_details"
android:drawablePadding="10dp"
android:textSize="20dp"
android:background="@drawable/form_header_underline"/>
......@@ -74,7 +74,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/ic_form_header_gears"
android:text="Advanced Options"
android:text="@string/advanced_options"
android:drawablePadding="10dp"
android:textSize="20dp"
android:background="@drawable/form_header_underline"/>
......@@ -87,14 +87,14 @@
<Switch
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Use SSL?"
android:text="@string/use_ssl"
android:id="@+id/form_swtch_use_ssl"
android:layout_marginLeft="12dp"
android:focusable="true"
android:textSize="@dimen/form_field_text_size"
android:textColor="@color/greyDark"
android:textOn="YES"
android:textOff="NO"
android:textOn="@string/yes"
android:textOff="@string/no"
android:layout_gravity="left"/>
<ImageView
......@@ -114,14 +114,14 @@
<Switch
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Trust Cert.?"
android:text="@string/trust_cert"
android:id="@+id/form_swtch_trust_cert"
android:layout_marginLeft="12dp"
android:focusable="true"
android:textSize="@dimen/form_field_text_size"
android:textColor="@color/greyDark"
android:textOn="YES"
android:textOff="NO"
android:textOn="@string/yes"
android:textOff="@string/no"
android:layout_gravity="left"/>
<ImageView
......
......@@ -51,7 +51,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/ic_form_header_connection"
android:text="Connection Details"
android:text="@string/connection_details"
android:drawablePadding="10dp"
android:textSize="20dp"
android:background="@drawable/form_header_underline"/>
......@@ -75,7 +75,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/ic_form_header_gears"
android:text="Advanced Options"
android:text="@string/advanced_options"
android:drawablePadding="10dp"
android:textSize="20dp"
android:background="@drawable/form_header_underline"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="app_name">Connect2SQL</string>
<string name="activity_lock">@string/app_name</string>
<string name="activity_set_lock">Establece Un Patron</string>
<string name="activity_home">@string/app_name</string>
<string name="activity_select_driver">Seleccione Servidor</string>
<string name="activity_configure_connection">Configurar Conexión</string>
<string name="activity_query">Consulta</string>
<string name="activity_saved_queries">Consultas Guardadas</string>
<string name="activity_query_history">Historial de consultas</string>
<string name="activity_query_results">Resultados</string>
<string name="save">Guardar</string>
<string name="clear">Borrar</string>
<string name="menu_quick_keys">Teclas Rápidas</string>
<string name="test">Prueba</string>
<string name="menu_save">Guardar...</string>
<string name="name">Nombre</string>
<string name="queries">Consultas (para esta conexión)</string>
<string name="table">Tabla</string>
<string name="database">Base de datos</string>
<string name="sample_query">SELECT * FROM tabla;</string>
<string name="configure">Configurar</string>
<string name="delete_connection">Borrar</string>
<string name="duplicate">Duplicar</string>
<string name="query">Consulta</string>
<string name="rate_app">Valora</string>
<string name="join_beta">Únete a Beta</string>
<string name="about_app">Acerca...</string>
<string name="showing_records_to">registros %1$s - %1$s (%1$s)</string>
<string name="previous">Anterior</string>
<string name="next">Siguiente</string>
<string name="menu_saved">Abra...</string>
<string name="menu_history">Historia</string>
<string name="menu_open_">Abra...</string>
<string name="form_error_name_required">Por favor, introduzca un nombre para la conexión.</string>
<string name="form_error_host_required">Por favor, introduzca el nombre de host.</string>
<string name="form_error_port_required">Por favor, introduzca un puerto válido.</string>
<string name="form_error_username_required">Por favor, introduzca el nombre de usuario.</string>
<string name="form_error_database_required">Por favor, introduzca un nombre de base de datos.</string>
<string name="form_hint_name">Nombre (Requerido)</string>
<string name="form_hint_host">Host (Requerido)</string>
<string name="form_hint_port">Puerto (Requerido)</string>
<string name="form_hint_username">Nombre De Usuario (Requerido)</string>
<string name="form_hint_password">Contraseña</string>
<string name="form_hint_database">Base de datos</string>
<string name="form_hint_domain">Dominio</string>
<string name="form_hint_instance">Instancia</string>
<string name="form_action_keyboard_input">Alternar entrada de teclado</string>
<string name="form_action_visible">Alternar visibilidad</string>
<string name="form_action_help">Ayuda</string>
<string name="title_activity_forgot_lock">Olvidé el Patrón</string>
<string name="help_positive_btn_label">¡Ok, lo tengo!</string>
<string name="help_name">Escriba un nombre para asociarlo con la configuración determinada. Sólo se utilizará dentro de esta aplicación.</string>
<string name="help_host">Especifique el host donde está alojado el servidor. Puede ser un dominio o una dirección IP.</string>
<string name="help_port">Especifique el puerto en el que su servidor está escuchando.</string>
<string name="help_username">Especifique el nombre de usuario necesario para autenticarse contra el servidor.</string>
<string name="help_password">Especifique la contraseña necesaria para autenticarse con el servidor. Si se deja en blanco, le preguntaremos cada vez que intente conectarse.</string>
<string name="help_database">Especifique a qué base de datos del servidor se conectará directamente.</string>
<string name="help_domain">Especifique el dominio de Windows en el que desea autenticarse.</string>
<string name="help_instance">Especifique la instancia con nombre a la que se conectará.</string>
<string name="help_use_ssl">Especificar si la conexión debe ser hecha a través de una conexión segura. Nota: SSL debe estar habilitado y configurado correctamente en el servidor.</string>
<string name="help_trust_cert">Anular la validación del certificado cuando se utiliza SSL.</string>
<string name="lock_forgot_instructions"><b>Lo sentimos que se olvidó de su patrón.</b>\n\nDesafortunadamente, para su seguridad, la única manera de seguir usando esta aplicación es borrar todos los datos.</string>
<string name="lock_clear_data">Abrir información de la aplicación</string>
<string name="menu_name_only">Ver solo nombres</string>
<string name="error_no_detected_databases">No se detectaron bases de datos.</string>
<string name="error_no_detected_tables">No se detectaron tablas.</string>
<string name="error_select_database">Por favor seleccione una base de datos.</string>
<string name="postgres_changing_databases">Postgres no admite el cambio de bases de datos una vez conectado.</string>
<string name="none_placeholder">[Ninguna]</string>
<string name="loading_placeholder">[Cargando]</string>
<string name="pl_draw_pattern_to_unlock">Dibuje el patrón para desbloquear</string>
<string name="pl_cancel">Cancelar</string>
<string name="pl_confirm">Confirmar</string>
<string name="pl_confirm_pattern">Vuelva a dibujar el patrón para confirmar</string>
<string name="pl_continue">Continuar</string>
<string name="pl_draw_pattern">Dibuja un patrón de desbloqueo</string>
<string name="pl_forgot_pattern">Has olvidado el patrón</string>
<string name="pl_pattern_confirmed">Tu nuevo patrón de desbloqueo</string>
<string name="pl_pattern_recorded">Patrón grabado</string>
<string name="pl_pattern_too_short">Conecte al menos %d puntos, vuelva a dibujar</string>
<string name="pl_recording_pattern">Suelte el dedo cuando haya terminado</string>
<string name="pl_redraw">Redibuje</string>
<string name="pl_wrong_pattern">Patrón incorrecto, inténtelo de nuevo.</string>
<string name="pl_access_pattern_start">Patrón iniciado</string>
<string name="pl_access_pattern_cleared">Patrón borrado</string>
<string name="pl_access_pattern_cell_added">Celda añadida</string>
<string name="pl_access_pattern_cell_added_verbose">Celda <xliff:g ejemplo="3" id="cell_index">%1$d</xliff:g> añadida</string>
<string name="pl_access_pattern_detected">Patrón completado</string>
<string name="pl_access_pattern_area">Área de patrón.</string>
<string name="connection_details">Detalles de conexión</string>
<string name="advanced_options">Opciones Avanzadas</string>
<string name="use_ssl">Usar SSL?</string>
<string name="trust_cert">Confía el Cert?</string>
<string name="yes"></string>
<string name="no">NO</string>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<!--
/* //device/apps/common/assets/res/any/preference_strings.xml
**
** Copyright 2006, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Strings for possible PreferenceActivity Back/Next buttons -->
<!-- Optional button to Skip a PreferenceActivity [CHAR LIMIT=20] -->
</resources>
\ No newline at end of file
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="help_positive_btn_label">Okay, got it!</string>
<!-- Help: field specific -->
<string name="help_name">Enter any name to associate with the given configuration. It will only be used within this application.</string>
<string name="help_host">Specify the host where the server is hosted. It can either be a domain or IP address.</string>
<string name="help_port">Specify the port which your server is listening on.</string>
<string name="help_username">Specify the username necessary to authenticate with against the server.</string>
<string name="help_password">Specify the password necessary to authenticate with against the server. If left empty, we will ask you every time you attempt to connect.</string>
<string name="help_database">Specify which database on the server to connect to directly.</string>
<string name="help_domain">Specify the Windows domain to authenticate in.</string>
<string name="help_instance">Specify the named instance to connect to.</string>
<string name="help_use_ssl">Specify whether the connection should be made over a secure connection. Note: SSL must be enabled and configured properly on your server.</string>
<string name="help_trust_cert">Bypass validation of certificate when using SSL.</string>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="lock_forgot_instructions"><b>Sorry you forgot your pattern.</b>\n\nUnfortunately, for your security, the only way to continue using this application is to clear all data.</string>
<string name="lock_clear_data">Open App Info</string>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="menu_name_only">View names only</string>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="error_no_detected_databases">No databases detected.</string>
<string name="error_no_detected_tables">No tables detected.</string>
<string name="error_select_database">Please select a database.</string>
<string name="postgres_changing_databases">Postgres doesn\'t support changing databases once connected.</string>
<string name="none_placeholder">[None]</string>
<string name="loading_placeholder">[Loading]</string>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string-array name="operators">
<item>=</item>
<item>!=</item>
<item>&lt;</item>
<item>&lt;=</item>
<item>&gt;</item>
<item>&gt;=</item>
<item>LIKE</item>
<item>LIKE %</item>
<item>NOT LIKE</item>
<item>NOT LIKE %</item>
<item>IS NULL</item>
<item>IS NOT NULL</item>
</string-array>
<string-array name="snippets">
<item>SELECT</item>
<item>*</item>
<item>COUNT(*)</item>
<item>FROM</item>
<item>WHERE</item>
<item>IN ()</item>
<item>AND</item>
<item>OR</item>
<item>GROUP BY</item>
<item>ORDER BY</item>
<item>LIMIT</item>
<item>INSERT INTO</item>
<item>LEFT JOIN</item>
<item>INNER JOIN</item>
<item>RIGHT JOIN</item>
<item>ON</item>
<item>UPDATE</item>
<item>SET</item>
<item>--</item>
</string-array>
</resources>
#!/usr/bin/env bash
lokalise --config ./local.lokalise.properties d --type xml --bundle_structure app/src/main/res/values-%LANG_ISO%/strings.xml --unzip_to .
\ No newline at end of file
#!/usr/bin/env bash
lokalise --config ./local.lokalise.properties u --file app/src/main/res/values/strings.xml --lang_iso en
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment