hometown-fork / hometown

A supported fork of Mastodon that provides local posting and a wider range of content types.
GNU Affero General Public License v3.0
744 stars 57 forks source link

"We're sorry, but something went wrong on our end" message when browser language is set to Italian #1295

Open pangrus opened 1 year ago

pangrus commented 1 year ago

Steps to reproduce the problem

  1. Set the browser language to Italian
  2. Browse to https://friend.camp/

Expected behaviour

Normal behaviour

Actual behaviour

"We're sorry..." message

Detailed description

If the browser language is set to Italian, you get a message saying "We're sorry, but something went wrong on our end" when trying to reach any Hometown instance (e.g. https://friend.camp/). It does not happens with https://friend.camp/about

Specifications

Firefox 109.0.1

esokullu commented 1 year ago

reproduced it with Turkish language.

nemobis commented 10 months ago

I've been locked out of https://digipres.club for months and I thought it was some security feature to force people to not use HTTP requests to access the posts. :D It turns out I just have to change the language. Thank you for sharing!

nemobis commented 10 months ago

Can be reproduced by visiting https://digipres.club/?lang=it or https://friend.camp/?lang=it

SomniusTiger commented 9 months ago

Example server log from this error, from https://merveilles.town (using a very light fork of Hometown, basically with just theming and icon updates):

[fb1b36fa-d237-4fd8-91d6-95e28281e78d] method=GET path=/public/local format=html controller=HomeController action=index status=500 error='ActionView::Template::Error: missing interpolation argument :title in "Per usare l'interfaccia web di %{title} dovi abilitare JavaScript. In alternativa puoi provare una delle <a href=\"%{apps_path}\">app native per Hometown/Mastodon per la tua piattaforma." ({:apps_path=>"https://joinmastodon.org/apps"} given)' duration=56.46 view=0.00 db=13.39

Looks like either a translation is missing or a translation is unable to be swapped out.

Edit: Looks like this is more complicated, possibly due to how code is changed somewhere. This translation file is exactly the same compared to the main Mastodon branch, which doesn't have the :title argument and probably doesn't need it. Unsure where this is exactly happening—it'd require a local dev setup to test this out!