1
0
Fork 0

add spanish languaje

This commit is contained in:
Gabriel Alvarez 2020-09-18 15:22:58 -03:00 committed by Dimo Karaivanov
parent acef3fc20d
commit 2c8ed009c3
10 changed files with 1286383 additions and 0 deletions

1286295
assets/es-utf8.txt Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,4 @@
Recursos Lingüísticos Abiertos del Español
Versión v2.6 (es)
https://github.com/sbosio/rla-es

View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="#FFFFFF">
<group android:scaleX="0.13083024"
android:scaleY="0.13083024"
android:translateX="1.8606557"
android:translateY="0.96">
<group android:translateY="133.60825">
<path android:pathData="M70.25,-46L28.203125,-46L28.203125,-14.296875L77.359375,-14.296875L77.359375,-0L10.40625,-0L10.40625,-103L76.859375,-103L76.859375,-88.5625L28.203125,-88.5625L28.203125,-60.15625L70.25,-60.15625L70.25,-46Z"
android:fillColor="#000000"/>
<path android:pathData="M132.40625,-21.171875Q132.40625,-25.734375,128.64062,-28.125Q124.875,-30.515625,116.15625,-32.34375Q107.4375,-34.1875,101.609375,-37Q88.8125,-43.171875,88.8125,-54.921875Q88.8125,-64.765625,97.109375,-71.375Q105.40625,-78,118.203125,-78Q131.84375,-78,140.23438,-71.21875Q148.64062,-64.453125,148.64062,-53.671875L131.5625,-53.671875Q131.5625,-58.578125,127.90625,-61.84375Q124.25,-65.109375,118.203125,-65.109375Q112.578125,-65.109375,109.015625,-62.5Q105.46875,-59.90625,105.46875,-55.546875Q105.46875,-51.59375,108.765625,-49.421875Q112.078125,-47.25,122.125,-45.03125Q132.1875,-42.8125,137.92188,-39.75Q143.65625,-36.703125,146.42188,-32.40625Q149.20312,-28.125,149.20312,-22.015625Q149.20312,-11.734375,140.6875,-5.359375Q132.1875,1,118.40625,1Q109.0625,1,101.75,-2.375Q94.4375,-5.765625,90.359375,-11.6875Q86.28125,-17.625,86.28125,-24.46875L102.875,-24.46875Q103.21875,-18.421875,107.4375,-15.15625Q111.65625,-11.890625,118.625,-11.890625Q125.375,-11.890625,128.89062,-14.453125Q132.40625,-17.015625,132.40625,-21.171875Z"
android:fillColor="#000000"/>
</group>
</group>
</vector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 769 B

36
res/values-es/strings.xml Normal file
View file

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_settings">Configuración de Traditional T9</string>
<string name="add_word_add">Agregar palabra</string>
<string name="close">Cerrar</string>
<string name="add_word_blank">Palabra en blanco no agregada.</string>
<string name="add_word_badchar">No puedo agregar una palabra cn un caracter no mapeabe %1$s (%2$s).</string>
<string name="pref_help">Ayuda</string>
<string name="completed">Acabado</string>
<string name="error_unexpected">Ocurrió un error inesperado.</string>
<string name="add_word_exist">La palabra \"%1$s\" ya esta en el diccionario.</string>
<string name="add_word_title">Agregar palabra</string>
<string name="pref_category_appearance">Apariencia</string>
<string name="pref_category_dictionaries">Diccionarios</string>
<string name="pref_category_function_keys">Teclas de acceso rápido</string>
<string name="pref_category_predictive_mode">Texto predictivo</string>
<string name="pref_category_keypad">Teclado</string>
<string name="pref_choose_languages">Idiomas</string>
<string name="pref_dark_theme">Tema oscuro</string>
<string name="char_space">Espacio</string>
<string name="char_newline">Nueva línea</string>
<string name="dictionary_load_title">Cargar diccionario</string>
<string name="dictionary_loading_indeterminate">Cargando diccionario</string>
<string name="dictionary_loading">Cargando diccionario (%1$s)…</string>
<string name="pref_category_about">Sobre esta aplicación</string>
<string name="dictionary_truncate_title">Eliminar el diccionario</string>
<string name="dictionary_truncated">Diccionario eliminado con éxito.</string>
<string name="dictionary_cancel_load">Cancelar la carga</string>
<string name="pref_auto_text_case">Mayúsculas automáticas</string>
<string name="pref_auto_text_case_summary">Escribir la primera letra de cada frase en mayúscula.</string>
<string name="pref_auto_space">Espacio automático</string>
<string name="pref_auto_space_summary">Insertar un espacio automático después des palabras y signos de puntuación.</string>
<string name="pref_double_zero_char">Carácter cuando se presiona 0 dos veces</string>
<string name="pref_show_soft_function_keys">Teclado en pantalla</string>
<string name="dictionary_loaded">Diccionario cargado con éxito.</string>
</resources>

View file

@ -27,6 +27,7 @@ public class LanguageCollection {
German.class, German.class,
Italian.class, Italian.class,
Russian.class, Russian.class,
Spanish.class,
Ukrainian.class Ukrainian.class
); );

View file

@ -0,0 +1,28 @@
package io.github.sspanak.tt9.languages.definitions;
import java.util.Arrays;
import java.util.Collections;
import java.util.Locale;
import io.github.sspanak.tt9.R;
public class Spanish extends English {
public Spanish() {
super();
id = 9;
name = "Español";
locale = new Locale("es", "ES");
dictionaryFile = "es-utf8.txt";
icon = R.drawable.ime_lang_es;
isPunctuationPartOfWords = false;
characterMap.get(1).addAll(Arrays.asList("¡", "¿"));
characterMap.get(2).addAll(Collections.singletonList("á"));
characterMap.get(3).addAll(Collections.singletonList("é"));
characterMap.get(4).addAll(Collections.singletonList("í"));
characterMap.get(6).clear(); characterMap.get(6).addAll(Arrays.asList("m", "n", "ñ", "o", "ó"));
characterMap.get(8).addAll(Arrays.asList("ú", "ü"));
}
}