Titles on graphs in community health dashboard are not localized

As the title already says: it seems that the strings for the titles on graphs in the community health dashboard are not localized:

When switching to the reports tab, the localized titles are shown:

However, when looking at an individual report/graph, again the English title is used and both day and count in the table headings are also not localized:

1 Like

This is still the case. Also noted here: Report locale copies do not update with user locale.

Can it be fixed?

1 Like

I have flagged this with the team, no timeline though on when we can resolve this.

Would you like to try out making PR to improve this?

2 Likes

It might be challenging for me :slight_smile:

And as we speak the notification mail I’ve got has not the In Reply To heading localized, although the e-mail otherwise seems to be translated.

4 Likes

This should fix the report issue:

For the “In Reply To” issue, it looks like our Czech translations are a bit lacking, our German server.de.yml file has user_notifications.in_reply_to but server.cs.yml does not. Translations fall back to English when keys are missing.

5 Likes

I am sorry, you are right. I confused myself. I translated the phrase just 4 days ago and yesterday it looked like it should have worked. The translations have not been committed yet though.

Thanks for the fix, it works!!

1 Like

I noticed the tooltips are not translated.

Found the piece of code as well:

I am just a c# guy, so I am not able to make PR’s. :wink:

2 Likes

Come on, C# is close enough to Javascript! :stuck_out_tongue: Thanks for finding that, I will make a PR to fix the JS to use I18n.

1 Like

This will fix the other issue, though you won’t see any practical change until our next round of translations:

1 Like

It’s not all. I commented on the PR although it was merged, not sure if you can spot it.

There are more translations below (“two weeks ago” and “in the previous 30 day period”).

2 Likes

This next PR should fix those issues, as well as the comments Gerhard added!

2 Likes

There seem to be other topics referring to the same problem. I don’t want to bump them all. What is the right thing to do? Just let them be or should they be somehow updated or closed?

2 Likes

First of all: thanks a lot! I didn’t have enough time to comment in the meantime, but I see that localization is applied much more widely in the dashboard now.

On small thing I still noticed: the back link to the report overview page does not seem to be localized.

And recommendations regarding site settings appear in English, too:

They are. You can see that when you enable “verbose localization” because they have a number.
Those are just new strings, both were translated to German 4 days ago, but translations are only merged once a week. So brand new strings, that were added after translations were merged (or slightly before and no one had time to translate them in time) fall back to English. The translation will be added the next time translations are merged (usually Tuesday) and you will see them after updating.

2 Likes