From 6f612b34432fac0788d34e1bf6cda30f41891b89 Mon Sep 17 00:00:00 2001 From: Fernando Garcia Samblas Date: Mon, 8 Feb 2016 10:09:34 +0100 Subject: [PATCH 1/3] built-in translations for Spanish (es-ES) added I think all but "pesetas" would be valid entries for generic spanish (es.yml). --- locales/es-ES.yml | 69 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 locales/es-ES.yml diff --git a/locales/es-ES.yml b/locales/es-ES.yml new file mode 100644 index 00000000..940f7fdc --- /dev/null +++ b/locales/es-ES.yml @@ -0,0 +1,69 @@ +# NOTE: Some translation keys make use of matches from regular expressions +# to manipulate whitespace and order. Please consult the source code for +# Stringex::Localization::ConversionExpressions to see what those +# regular expressions look like if you need to manipulate the order +# differently than the usage below. +es-ES: + stringex: + characters: + and: y + at: en + divide: dividido por + degrees: grados + dot: \1 punto \2 + ellipsis: puntos suspensivos + equals: igual a + number: número + percent: porciento + plus: más + slash: barra + star: estrella + currencies: + generic: \1 pesetas + dollars: \1 dólares + dollars_cents: \1 dólares \2 céntimos + pounds: \1 libras + pounds_pence: \1 libras \2 centavos + euros: \1 euros + euros_cents: \1 euros \2 céntimos + yen: \1 yen + reais: \1 reales + reais_cents: \1 reales \2 centavos + html_entities: + amp: e + cent: " centavos" + copy: (c) + deg: " drados " + divide: " dividido por " + double_quote: '"' + ellipsis: "..." + en_dash: "-" + em_dash: "--" + frac14: un cuarto + frac12: mitad + frac34: tres cuartos + gt: ">" + lt: < + nbsp: " " + pound: " libras " + reg: (r) + single_quote: "'" + times: x + trade: (tm) + yen: " yen " + vulgar_fractions: + half: mitad + one_third: un tercio + two_thirds: dos tercios + one_fourth: un cuarto + three_fourths: tres cuartos + one_fifth: un quinto + two_fifths: dos quintos + three_fifths: tres quintos + four_fifths: catro quintos + one_sixth: un sexto + five_sixths: cinco sextos + one_eighth: un octavo + three_eighths: tres octavos + five_eighths: cinco octavos + seven_eighths: siete octavos From 2dab3f4ef8b4d293cf6c71334ef3a72151a04aea Mon Sep 17 00:00:00 2001 From: Fernando Garcia Samblas Date: Mon, 8 Feb 2016 10:15:17 +0100 Subject: [PATCH 2/3] es.yml removing generic currency from es-ES.yml --- locales/es-ES.yml | 6 +---- locales/es.yml | 68 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 5 deletions(-) create mode 100644 locales/es.yml diff --git a/locales/es-ES.yml b/locales/es-ES.yml index 940f7fdc..927ec9bf 100644 --- a/locales/es-ES.yml +++ b/locales/es-ES.yml @@ -1,8 +1,4 @@ -# NOTE: Some translation keys make use of matches from regular expressions -# to manipulate whitespace and order. Please consult the source code for -# Stringex::Localization::ConversionExpressions to see what those -# regular expressions look like if you need to manipulate the order -# differently than the usage below. +# NOTE: es.yml with "pesetas" added as *stringex.currencies.generic*. es-ES: stringex: characters: diff --git a/locales/es.yml b/locales/es.yml new file mode 100644 index 00000000..21a9fc9e --- /dev/null +++ b/locales/es.yml @@ -0,0 +1,68 @@ +# NOTE: Some translation keys make use of matches from regular expressions +# to manipulate whitespace and order. Please consult the source code for +# Stringex::Localization::ConversionExpressions to see what those +# regular expressions look like if you need to manipulate the order +# differently than the usage below. +es: + stringex: + characters: + and: y + at: en + divide: dividido por + degrees: grados + dot: \1 punto \2 + ellipsis: puntos suspensivos + equals: igual a + number: número + percent: porciento + plus: más + slash: barra + star: estrella + currencies: + dollars: \1 dólares + dollars_cents: \1 dólares \2 céntimos + pounds: \1 libras + pounds_pence: \1 libras \2 centavos + euros: \1 euros + euros_cents: \1 euros \2 céntimos + yen: \1 yen + reais: \1 reales + reais_cents: \1 reales \2 centavos + html_entities: + amp: e + cent: " centavos" + copy: (c) + deg: " drados " + divide: " dividido por " + double_quote: '"' + ellipsis: "..." + en_dash: "-" + em_dash: "--" + frac14: un cuarto + frac12: mitad + frac34: tres cuartos + gt: ">" + lt: < + nbsp: " " + pound: " libras " + reg: (r) + single_quote: "'" + times: x + trade: (tm) + yen: " yen " + vulgar_fractions: + half: mitad + one_third: un tercio + two_thirds: dos tercios + one_fourth: un cuarto + three_fourths: tres cuartos + one_fifth: un quinto + two_fifths: dos quintos + three_fifths: tres quintos + four_fifths: catro quintos + one_sixth: un sexto + five_sixths: cinco sextos + one_eighth: un octavo + three_eighths: tres octavos + five_eighths: cinco octavos + seven_eighths: siete octavos From 2812a6910d6af655a0e2f5bf48206b074cd1f8e2 Mon Sep 17 00:00:00 2001 From: Fernando Garcia Samblas Date: Tue, 9 Feb 2016 09:20:23 +0100 Subject: [PATCH 3/3] *Euro* instead of *pesetas* I've just seen that de.yml has Euro instead of German Mark (I didn't want to put Euro twice in the yaml) --- locales/es-ES.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locales/es-ES.yml b/locales/es-ES.yml index 927ec9bf..28d4ebfa 100644 --- a/locales/es-ES.yml +++ b/locales/es-ES.yml @@ -15,7 +15,7 @@ es-ES: slash: barra star: estrella currencies: - generic: \1 pesetas + generic: \1 Euro dollars: \1 dólares dollars_cents: \1 dólares \2 céntimos pounds: \1 libras