Can't hide "Language" button when in new added language

68 views
Skip to first unread message

Cintya Takahaschi

unread,
Jun 26, 2024, 5:32:37 PM (7 days ago) Jun 26
to AtoM Users
Hi!

I added the pt_BR (Brazilian Portuguese) language through Admin > Settings > I18n Languages (/settings/language), and also changed on the file /usr/share/nginx/atom/apps/qubit/config/settings.yml
the line default_culture:        pt_BR

And then executed
sudo php symfony search:populate
sudo systemctl restart php7.4-fpm.service

When the language selected is any of the included languages when AtoM is installed (English, Français, Español, Nederlands or Português), I am able to hide the "Language" button disabling the item "Language menu" on Admin > Settings > Default page elements (/settings/pageElements)

But if I select the new added language "Português do Brasil" (Brazilian Portuguese) (using the "Language" button) and then disable the item "Language menu" on Admin > Settings > Default page elements, the button "Language" won't hide.

I tried with the themes arDominionPlugin and arDominionB5Plugin and got the same results (works with included languages, but not for Brazilian Portuguese).

Has anyone dealt with such issue? Is there any other thing I should do for this configuration to work?




Message has been deleted

Johan Pieterse

unread,
Jun 27, 2024, 2:53:01 AM (6 days ago) Jun 27
to AtoM Users
Good day  Cintya 

What version are you running?
I tested on my side with 2.8.1 and found no error. 
Could you also run php symfony cc

Johan Pieterse
AtoM IT specialist
https://plainsailingisystems.co.za

Cintya Takahaschi

unread,
Jun 27, 2024, 9:29:50 AM (6 days ago) Jun 27
to AtoM Users
Hi Johan, thanks for your reply!

I'm using AtoM 2.8.2, on Ubuntu 20.04.6 LTS (Focal Fossa), with MySQL 8.0.37, Elasticsearch 5.6.16, Nginx 1.18.0.

I tested with all other languages available when AtoM is installed (English, Français, Español, Nederlands or Português), and it works without problem. This problem happens ONLY with the added language pt_BR (Brazilian Portuguese), that is not present on original AtoM installation.

Cintya Takahaschi

unread,
Jun 27, 2024, 9:41:16 AM (6 days ago) Jun 27
to AtoM Users
Also, forgot to mention:

I runned sudo php symfony cc and sudo systemctl restart php7.4-fpm.service and cleared the browser cache, before and after changing the "Language menu" visualization, but the button does not hide (the visualization of the item "Language menu" remains unchecked though).

I got this print after saved the visibility, clear the cache, restarted PHP-FPM, cleared the browser cache, logged in again and accessed the /settings/pageElements again.
atom_language.png

Cintya Takahaschi

unread,
Jun 28, 2024, 4:46:38 PM (5 days ago) Jun 28
to AtoM Users
I'm not sure why, but I was able to make the visibility of "Language menu" works as configured (when Brazilian Portuguese language is set) changing the source_culture from 'en' to 'pt_BR' of the item with the name 'toggleLanguageMenu' on the table `setting`, or basically doing this:

UPDATE `setting`
SET source_culture = 'pt_BR'
WHERE name = 'toggleLanguageMenu'
AND source_culture = 'en';
Reply all
Reply to author
Forward
0 new messages