Plugin multilingüe 🌐

Hey all, thanks for your patience on this plugin. I’ve now

  1. Fixed the various issues that were arising when using the plugin with the latest code
  2. Updated the frontend and backend tests to support the new code
  3. Integrated it into our CI system to monitor any issues going forward
  4. Re-added it to try.thepavilion.io

try.thepavilion.io is Pavilion’s public staging site that’s updated to the latest discourse every 24 hours. You can see for yourself whether the issue you’re interested in is addressed there, and test the feature set. For example if you have you content languages set to French and Italian, and your interface language (aka locale) set to French, you’ll see this

I’ve closed some old issues on the repo, and asked for the recently created ones (the feature requests in any event) to be submitted at thepavilion.io. Please report any further issues, or make any feature requests using the bug report or feature request wizards on thepavilion.io.

4 Me gusta

An error occurs in the console on the plugin page - /admin/multilingual/languages
Uncaught Error: There is no route named tags.show

And the changes are not saved (Internal Server Error)

1 me gusta

Hello @angus,
I have problem on my fresh self-hosted discourse. Every time when I push save changes I get blank modal with “Internal Server Error” title. After hit ok, the plugin page is blank, but settings are saved.
Next, when I try to add other language to exist, the checkboxes which was previously checked after save are uncheck. So when I want to add a new language I must uncheck everything, save, and now check this one which I want.
Also I sometimes notice the settings reset to default just after night.

1 me gusta

I’ve merged in an update from vcoffey (sorry Vern, couldn’t find you here), who’s supported by @oreillyc. I’ve also made various updates to the plugin today.

@hiddenlucas Please upgrade and test it again. If you have any further issues please fill out a bug report here: Bug Report

You can test this plugin here: https://try.thepavilion.io/

2 Me gusta

Hello,

Is this a bug or on purpose ?

Screenshot from: https://try.thepavilion.io/ but I have the same problem.

The language tag is not appearing in the tag dropdown menu making it difficult to filter topics using the tag. The reason I found is simply because the anchor is missing from the list item: <a data-tag-name="en" class="discourse-tag box">en</a>

If you add it it displays properly:

1 me gusta

Thanks, that’s been addressed. See: https://try.thepavilion.io

3 Me gusta

Hi @angus,

Is it possible to select specific interfaced languages that will be shown in the guest language switcher (at header)? Currently the switcher will show many languages in the drop down menu. I didn’t find the code that controls the languages. Any guide will be appreciated.

2 Me gusta

He abordado varios problemas de compatibilidad con este plugin. Actualiza el plugin y discourse y funcionará como se espera.

4 Me gusta

Hola,

Gracias ante todo por todo el increíble trabajo.

He instalado y habilitado este plugin y el plugin de traductor de Discourse en un nuevo foro. La API de traducción funciona bien, pero tenía la impresión de que sería posible con este plugin mostrar automáticamente las publicaciones traducidas que no son habladas por un usuario, en su idioma respectivo, automáticamente.

Básicamente, en un mundo ideal con traducciones ideales, una persona que solo habla francés navegaría por los foros (que están, digamos, en inglés) y vería todo como si estuviera escrito en francés.

¿Entendí mal la funcionalidad? ¿No es posible lograr esto con este plugin?

3 Me gusta

A todos los que se han puesto en contacto conmigo recientemente sobre cómo hacer que las traducciones de categorías y etiquetas funcionen, es decir, las funciones descritas aquí:

Han llegado en el momento adecuado :slight_smile: Un cliente de Pavilion está buscando hacer que esa funcionalidad funcione en Discourse actual, por lo que @merefield y yo trabajaremos en ello en mayo/junio. Publicaremos una actualización aquí cuando esté lista.

Actualmente, esta no es una característica del plugin, pero podría agregarse en el futuro. Por favor, consulte la documentación al respecto, en particular la parte en negrita a continuación. Eso es lo que hace actualmente la integración con el plugin Translator.

Sincronización de Discourse Translator

Si tienes:

  1. el Plugin Discourse Translator instalado;
  2. el Plugin Translator habilitado;
  3. el Plugin Multilingual habilitado; y
  4. los idiomas de contenido habilitados

puedes habilitar multilingual translator content tag sync (no podrás habilitarlo a menos que las cuatro condiciones sean verdaderas).

La sincronización aplica automáticamente el idioma detectado de las publicaciones en un tema como idiomas de contenido, siempre que el idioma detectado coincida con un idioma de contenido habilitado en tu sitio.

9 Me gusta

Hola,

Cuando activo este plugin, mis etiquetas antiguas tienen un error de “Error interno del servidor”
Tengo este error al intentar elegir etiquetas en el editor para una nueva publicación.

3 Me gusta

Lo revisaré mañana y te responderé.

2 Me gusta

También encontré algunos problemas con las etiquetas aquí:

2 Me gusta

@cmdntd Este problema se ha solucionado y el plugin ya es seguro de usar. Gracias por tu informe.

7 Me gusta

Hola,

Cuando uso este plugin, la opción “forzar etiquetas en minúsculas” falla.
No marco esta opción, pero todas las etiquetas se cambian a texto en minúsculas.

¿Podrías revisarlo, por favor?

2 Me gusta

Hola, he configurado la opción “multilingual require content language tag

Pero solo me lo exige a mí (administrador). No se lo exige a otros usuarios la etiqueta de idioma.
¿Podrías revisar esto, por favor?

Lo he comprobado de nuevo. Ya está bien.

3 Me gusta

Me alegro de que lo hayas resuelto :+1:

Solo una nota de que @merefield está trabajando en este plugin en este momento, tanto en correcciones de errores como en las funciones de traducciones personalizadas. Se espera que este trabajo se complete a finales de junio.

3 Me gusta

OK, fans de idiomas, hemos fusionado un par de correcciones y esperamos que el plugin sea más útil ahora:

Aquellos que querían soporte para idiomas con códigos de mayúsculas y minúsculas mixtas deberían tenerlo ahora:

@4ong, por favor, confirma si esto resuelve tu problema.

Un error que permitía que las etiquetas de contenido de idioma aparecieran en la página de etiquetas de forma indeseable debería estar corregido ahora:

Como parte de nuestro enfoque renovado para garantizar que estos problemas no vuelvan a surgir, nos hemos esforzado por incluir pruebas que cubran estos escenarios específicos.

Como siempre, actualiza y dinos si estás experimentando algún problema con estos escenarios.

6 Me gusta

Sí. ¡Estoy muy contento! ¡Gracias!

3 Me gusta

Hola. Me gustaría mucho poder traducir la descripción de las categorías. La traducción de solo los nombres de las categorías es casi inútil.

2 Me gusta