Hello Good evening,
Hope everything is going well !
I just realized in my forum that the language localisation of private category page descriptions are not working as expected.
Indeed, even if all category descriptions are translated in all languages and duly added in the setting of the category, changing locale keeps the description in the original language (english in my case) instead of using its translation.
To be noted that the gap I am highlighting only relates to:
Private categories only - regular/public category are working well as expected.
The description of the category - pinned topics and other elements are working well as I would expect.
Anyone experienced the same ? Anything I can do to fix this ?
I understand and sorry if I did not give sufficient information.
The issue I am having is located on the category banner content of private categories (I have the category banner as theme component). When I go to each category pages, I have the category banner properly translated for public categories (incl. title and description) however for private ones, the language remains in English regardless of the locale chosen by the user.
I am not sure what specific settings I may have that would cause this.
Adding up to my previous comments, one way to “reproduce” this would be to test with one of Discourse Meta’s private category (e.g. Staff, or whatever). Sequence to follow:
Go to one private category you have access to.
Ensure that several translation exists (e.g. “Edit this category” > “Localization” tab > Primary language of the category name and description (in my case set to “English”) and then localization set for all supported locale.
Go back to the private category main page (where you can see the category banner with title and description)
Use the locale switch at the top right to change the language. In my case it remains in English regardless of the chosen language.
This gap only applies to private categories in my case. Public ones behaves as expected.
SELECT
c.locale AS cat_locale,
cl.locale AS loc_locale,
c.name AS cat_name,
cl.name AS loc_name,
c.description AS cat_description,
cl.description AS loc_description
FROM categories c
LEFT JOIN category_localizations cl
ON cl.category_id = c.id
WHERE c.read_restricted = TRUE
ORDER BY c.id, cl.locale
Another thing, are you on latest core and latest theme component versions?