Insertar: las fechas no están localizadas

Dates always show up in default (US) locale in embedded comments.

Hmm. What do you mean “embedded comments”? Can you provide some detailed steps to reproduce this bug?

  1. Switch Discourse locale to any other than English
  2. Embed Discourse comments on a website
  3. UI is localised but dates are not on the embedded (iframe) comments
2 Me gusta

Any updates on this?

Still in English, but we can now at least hide them with CSS.

Happy anniversary! :birthday: :gift:

1 me gusta

Darkness leads me to this bug under the pale moonlight :new_moon:

But as a general tip, it would be definitely better if there is a link or screenshots. I can hardly understand what you are talking about if I haven’t translated the documentation :frowning:

Embed comments:

The problem is in embed/comments.html.erb:

then ember_helper.rb:

The fix can be either using the FreedomPatches::Rails4.distance_of_time_in_words, I18n.localize(dt, format: I18n.t("datetime_formats.formats.short_no_year")) or replace the link by a different translation string as the digest email.

; I don’t quite understand the current status of server time formats so I won’t fire PR here.

1 me gusta

Hola,

Acabo de encontrar el mismo problema.

Veo el problema con la localización aquí porque potencialmente no hay ningún usuario conectado, por lo que es complicado estimar su configuración regional… ¿pero podría ser una configuración? ¡Para una instancia de Discourse dirigida a una comunidad de un solo idioma, tendría sentido!

Esta parece llevar un buen tiempo por aquí. Me pregunto si esto la mueve más hacia la categoría de solicitud de función en Contribute > Feature request en lugar de la de error en Contribute > Bug. :thinking:

2 Me gusta

He enviado una corrección aquí:

3 Me gusta

Este tema se cerró automáticamente 2 días después de la última respuesta. Ya no se permiten nuevas respuestas.