Hola. It's compatible with Beta 10?
Spanish Extension
carabez It seems not entirely, but you can use it with beta 10. Some strings are untranslated.
tolgaaaltas Thanks. I'll installing the ext. with confidence.
Dunno if this is a place to left a wish list, but include "Tags" in translations would be nice.
Trato de instalarla pero me aparece este error:
[InvalidArgumentException]
Could not find a version of package flarumes/flarum-ext-spanish matching your minimum-stability (stable). Require it with an explic
it version constraint allowing its desired stability.
require [--dev] [--prefer-source] [--prefer-dist] [--fixed] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev
] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-pac
kages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...
- Edited
I'm going to try to check the code of the latest version (beta 13) and update the extension to continue using it. This weekend I'll write here with some update if I have enough time.
aricasthn The command you're executing is wrong, use this one:
composer require darkfoxdeveloper/flarum-ext-spanish
News!
-Fixed and working moment translations
-Updated to v0.1.0-beta.14
I had the same issue yesterday. That config.js
file seems to contain human readable date and time texts; so removing it will make those texts show in the default English format. I solved mine using the file from the French locale extension and adapting it to Spanish.
Tuve el mismo problema ayer. Ese fichero config.js parece que contiene los formatos de texto para fecha y hora; eliminándolo los textos aparecen en el idioma ingés por defecto. Lo solucioné usando el fichero de la extensión de francés y adaptándolo al texto español.
- Edited
glofix thank for the suggestion, I did the same as you did, and it worked without deleting the config.js
file but the dates are still in english.
Gracias por la sugerencia, realice lo mismo que usted hizo, y funcionó sin eleminar el archivo config.js
pero las fechas siguen en ingles.
const locale = {
name: 'es-ES',
weekdays: 'domingo_lunes_martes_miercoles_jueves_viernes_sábado'.split('_'),
weekdaysShort: 'dom._lun._mar._mie._jue._vie._sáb.'.split('_'),
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
monthsShort: 'en.febr._mzo_abr._my_jun_jul._ag_sept._oct._nov._dic.'.split('_'),
weekStart: 1,
yearStart: 4,
formats: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D [de] MMMM [de] YYYY',
LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
},
calendar: {
sameDay: '[Hoy a] LT',
nextDay: '[Mañana a] LT',
nextWeek: 'dddd [en] LT',
lastDay: '[Ayer en] LT',
lastWeek: function () {
return (this.day() === 0 || this.day() === 6) ?
'[Ultimo] dddd [às] LT' : // Saturday + Sunday
'[Ultima] dddd [às] LT'; // Monday - Friday
},
sameElse: 'L'
},
relativeTime: {
future: 'en %s',
past: 'hace %s',
s: 'unos segundos',
m: 'un minuto',
mm: '%d minutos',
h: 'una hora',
hh: '%d horas',
d: 'un día',
dd: '%d días',
M: 'un mes',
MM: '%d meses',
y: 'un año',
yy: '%d años'
},
ordinalParse: /\d{1,2}º/,
ordinal : '%dº'
}
dayjs.locale({
name: 'es-ES',
weekdays : 'Domingo_Lunes_Martes_Miércoles_Jueves_Viernes_Sábado'.split('_'),
weekdaysShort: 'Dom_Lun_Mar_Mié_Jue_Vie_Sáb.'.split('_'),
weekdaysMin: 'Do_Lu_Ma_Mi_Ju_Vi_Sá'.split('_'),
months: 'Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre'.split('_'),
monthsShort: 'Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Sep_Oct_Nov_Dic'.split('_'),
weekStart: 1,
yearStart: 4,
formats: {
LT : 'HH:mm',
LTS : 'HH:mm:ss',
L : 'DD/MM/YYYY',
LL : 'D [de] MMMM [de] YYYY',
LLL : 'D [de] MMMM [de] YYYY [a las] HH:mm',
LLLL : 'dddd, D [de] MMMM [de] YYYY [a las] HH:mm'
},
calendar : {
sameDay: '[Hoy a] LT',
nextDay: '[Mañana a] LT',
nextWeek: 'dddd [en] LT',
lastDay: '[Ayer en] LT',
lastWeek: function () {
return (this.day() === 0 || this.day() === 6) ?
'[Ultimo] dddd [a las] LT' : // Saturday + Sunday
'[Ultima] dddd [a las] LT'; // Monday - Friday
},
sameElse: 'L'
},
relativeTime: {
future : 'en %s',
past : 'hace %s',
s : 'unos segundos',
m : 'un minuto',
mm : '%d minutos',
h : 'una hora',
hh : '%d horas',
d : 'un día',
dd : '%d días',
M : 'un mes',
MM : '%d meses',
y : 'un año',
yy : '%d años'
},
ordinalParse: /\d{1,2}º/,
ordinal: n => `${n}.`
})
Edit the file and clear cache.
- Edited
News!
-Changed the repository name
-Fixed the problem with config.js (Library config is for DayJS Now)
Remove the old repository and install the new version:
composer remove darkfoxdeveloper/flarum-ext-spanish
composer install darkfoxdeveloper/lang-spanish
Now compatible with beta 15. Enjoy!
- Edited
Updated extension to v1.1.0:
v1.1.0 changelog
-More translations
-Deleted translations of some extensions that are no longer updated
-Support for kyrne/shout, fof/discussion-language and fof/upload
Hola, una pregunta, recuerdo que habia una extension para traducir manualmente las extensiones que no tienen idioma en Español como la de las encuestas. Que me sale en el foro "Add poll" ¿recordais cual es?. Gracias!
LagunaLife Hola, disculpa la tardanza de la respuesta. Más vale tarde que nunca: https://discuss.flarum.org/d/7026-linguist-customize-translations-with-ease
Supongo que te refieres a esa.