Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added custom condition to the aria-label user button #6346

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
2 changes: 1 addition & 1 deletion packages/volto/cypress/tests/core/basic/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('Navigation', () => {
cy.wait('@content');
});
it('Given an private page, when I logout it is not present in nav anymore', function () {
cy.findByLabelText('Personal tools').click();
cy.findByLabelText('Site and user settings').click();
cy.get('#toolbar-logout').click();
cy.wait(1000);
cy.get('#navigation a.item').contains('My Page').should('not.exist');
Expand Down
11 changes: 10 additions & 1 deletion packages/volto/locales/ca/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2666,7 +2666,6 @@ msgstr "Preferències personals"

#. Default: "Personal tools"
#: components/manage/Toolbar/More
#: components/manage/Toolbar/Toolbar
msgid "Personal tools"
msgstr "Eines personals"

Expand Down Expand Up @@ -4474,6 +4473,11 @@ msgstr ""
msgid "addUserFormUsernameDescription"
msgstr ""

#. Default: "Site and user settings"
#: components/manage/Toolbar/Toolbar
msgid "adminUserTools"
msgstr ""

#. Default: "Available views"
#: components/manage/Blocks/Search/schema
msgid "availableViews"
Expand Down Expand Up @@ -5085,6 +5089,11 @@ msgstr "L'entrada ha de ser un URL vàlid (www.something.com o http(s)://www.som
msgid "user avatar"
msgstr "avatar de l'usuari"

#. Default: "User settings"
#: components/manage/Toolbar/Toolbar
msgid "userTools"
msgstr ""

#. Default: "Video"
#: config/Blocks
msgid "video"
Expand Down
11 changes: 10 additions & 1 deletion packages/volto/locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2665,7 +2665,6 @@ msgstr "Meine Einstellungen"

#. Default: "Personal tools"
#: components/manage/Toolbar/More
#: components/manage/Toolbar/Toolbar
msgid "Personal tools"
msgstr "Persönliche Einstellungen"

Expand Down Expand Up @@ -4473,6 +4472,11 @@ msgstr "Geben Sie Ihr neues Passwort ein. Das Passwort muss aus mindestens 8 Zei
msgid "addUserFormUsernameDescription"
msgstr "Geben Sie einen Nutzernamen ein, beispielsweise etwas wie "m.muster". Benutzen Sie keine Leer- oder Sonderzeichen. Bitte beachten Sie Groß- und Kleinschreibung und stellen Sie sicher, dass die Feststelltaste nicht aktiviert ist. Dieser Name wird zum Anmelden genutzt."

#. Default: "Site and user settings"
#: components/manage/Toolbar/Toolbar
msgid "adminUserTools"
msgstr ""

#. Default: "Available views"
#: components/manage/Blocks/Search/schema
msgid "availableViews"
Expand Down Expand Up @@ -5084,6 +5088,11 @@ msgstr "URL"
msgid "user avatar"
msgstr "Nutzer Avatar"

#. Default: "User settings"
#: components/manage/Toolbar/Toolbar
msgid "userTools"
msgstr ""

#. Default: "Video"
#: config/Blocks
msgid "video"
Expand Down
11 changes: 10 additions & 1 deletion packages/volto/locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2660,7 +2660,6 @@ msgstr ""

#. Default: "Personal tools"
#: components/manage/Toolbar/More
#: components/manage/Toolbar/Toolbar
msgid "Personal tools"
msgstr ""

Expand Down Expand Up @@ -4468,6 +4467,11 @@ msgstr ""
msgid "addUserFormUsernameDescription"
msgstr ""

#. Default: "Site and user settings"
#: components/manage/Toolbar/Toolbar
msgid "adminUserTools"
msgstr ""

#. Default: "Available views"
#: components/manage/Blocks/Search/schema
msgid "availableViews"
Expand Down Expand Up @@ -5079,6 +5083,11 @@ msgstr ""
msgid "user avatar"
msgstr ""

#. Default: "User settings"
#: components/manage/Toolbar/Toolbar
msgid "userTools"
msgstr ""

#. Default: "Video"
#: config/Blocks
msgid "video"
Expand Down
11 changes: 10 additions & 1 deletion packages/volto/locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2667,7 +2667,6 @@ msgstr "Preferencias Personales"

#. Default: "Personal tools"
#: components/manage/Toolbar/More
#: components/manage/Toolbar/Toolbar
msgid "Personal tools"
msgstr "Herramientas personales"

Expand Down Expand Up @@ -4475,6 +4474,11 @@ msgstr "Introduzca su nueva contraseña. Mínimo 8 caracteres."
msgid "addUserFormUsernameDescription"
msgstr "Introduzca el nombre de usuario que desee utilizar. Generalmente algo como "jperez" o "jose_perez". No están permitidos caracteres especiales o espacios en el nombre de usuario. Los nombres de usuario y las contraseñas son sensibles a mayúsculas y minúsculas, asegúrese que la tecla de bloqueo de mayúsculas no está activada ('caps lock'). Este es el nombre que utilizará para identificarse."

#. Default: "Site and user settings"
#: components/manage/Toolbar/Toolbar
msgid "adminUserTools"
msgstr ""

#. Default: "Available views"
#: components/manage/Blocks/Search/schema
msgid "availableViews"
Expand Down Expand Up @@ -5086,6 +5090,11 @@ msgstr "El valor introducido debe ser una URL válida (www.algo.com o http(s)://
msgid "user avatar"
msgstr "avatar de usuario"

#. Default: "User settings"
#: components/manage/Toolbar/Toolbar
msgid "userTools"
msgstr ""

#. Default: "Video"
#: config/Blocks
msgid "video"
Expand Down
11 changes: 10 additions & 1 deletion packages/volto/locales/eu/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2667,7 +2667,6 @@ msgstr "Hobespen Pertsonalak"

#. Default: "Personal tools"
#: components/manage/Toolbar/More
#: components/manage/Toolbar/Toolbar
msgid "Personal tools"
msgstr "Tresna pertsonalak"

Expand Down Expand Up @@ -4475,6 +4474,11 @@ msgstr "Idatzi zure pasahitz berria. Gutxienez 8 karaktere."
msgid "addUserFormUsernameDescription"
msgstr "Idatzi zure erabiltzaile izena, "jgarmendia" moduko zerbait. Ez da onartzen espaziorik edo karaktere berezirik. Erabiltzaile izenak eta pasahitzak letra larri eta xeheak bereizten dituzte. Hau da webgunera sartzeko erabiliko den izena."

#. Default: "Site and user settings"
#: components/manage/Toolbar/Toolbar
msgid "adminUserTools"
msgstr ""

#. Default: "Available views"
#: components/manage/Blocks/Search/schema
msgid "availableViews"
Expand Down Expand Up @@ -5086,6 +5090,11 @@ msgstr "URL zuzen bat izan behar da (www.zerbait.eus) edo http(s)://www.zerbitza
msgid "user avatar"
msgstr "Erabiltzailearen argazkia"

#. Default: "User settings"
#: components/manage/Toolbar/Toolbar
msgid "userTools"
msgstr ""

#. Default: "Video"
#: config/Blocks
msgid "video"
Expand Down
11 changes: 10 additions & 1 deletion packages/volto/locales/fi/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2665,7 +2665,6 @@ msgstr "Omat asetukset"

#. Default: "Personal tools"
#: components/manage/Toolbar/More
#: components/manage/Toolbar/Toolbar
msgid "Personal tools"
msgstr "Omat työkalut"

Expand Down Expand Up @@ -4473,6 +4472,11 @@ msgstr "Lisää salasana. Minimissään 8 merkkiä."
msgid "addUserFormUsernameDescription"
msgstr "Lisää käyttäjätunnus, esim. mameikal. Älä käytä erikoismerkkejä."

#. Default: "Site and user settings"
#: components/manage/Toolbar/Toolbar
msgid "adminUserTools"
msgstr ""

#. Default: "Available views"
#: components/manage/Blocks/Search/schema
msgid "availableViews"
Expand Down Expand Up @@ -5084,6 +5088,11 @@ msgstr "URL"
msgid "user avatar"
msgstr "käyttäjäkuva"

#. Default: "User settings"
#: components/manage/Toolbar/Toolbar
msgid "userTools"
msgstr ""

#. Default: "Video"
#: config/Blocks
msgid "video"
Expand Down
11 changes: 10 additions & 1 deletion packages/volto/locales/fr/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2667,7 +2667,6 @@ msgstr "Préférences personnelles"

#. Default: "Personal tools"
#: components/manage/Toolbar/More
#: components/manage/Toolbar/Toolbar
msgid "Personal tools"
msgstr "Outils personnelles"

Expand Down Expand Up @@ -4475,6 +4474,11 @@ msgstr "Saisissez votre nouveau mot de passe, minimum 8 caractères."
msgid "addUserFormUsernameDescription"
msgstr "Saisissez un nom d'utilisateur, haituellement quelque chose comme "jdupont". Pas d'espace ou de caractères spéciaux. Les noms d'utilisateurs et mots de passes sont sensible à la casse, vérifiez que la touche verrouillage majuscule n'est pas activée. C'est le nom utilisé pour se connecté."

#. Default: "Site and user settings"
#: components/manage/Toolbar/Toolbar
msgid "adminUserTools"
msgstr ""

#. Default: "Available views"
#: components/manage/Blocks/Search/schema
msgid "availableViews"
Expand Down Expand Up @@ -5086,6 +5090,11 @@ msgstr "Le champ doit être une URL valide (www.quelquechose.com or http(s)://ww
msgid "user avatar"
msgstr "Avatar de l'utilisateur"

#. Default: "User settings"
#: components/manage/Toolbar/Toolbar
msgid "userTools"
msgstr ""

#. Default: "Video"
#: config/Blocks
msgid "video"
Expand Down
11 changes: 10 additions & 1 deletion packages/volto/locales/hi/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2660,7 +2660,6 @@ msgstr "व्यक्तिगत पसंद"

#. Default: "Personal tools"
#: components/manage/Toolbar/More
#: components/manage/Toolbar/Toolbar
msgid "Personal tools"
msgstr "व्यक्तिगत उपकरण"

Expand Down Expand Up @@ -4468,6 +4467,11 @@ msgstr "अपना नया पासवर्ड दर्ज करें
msgid "addUserFormUsernameDescription"
msgstr "एक उपयोगकर्ता नाम दर्ज करें, सामान्यत: "jsmith" कुछ ऐसा। कोई रिक्त स्थान या विशेष वर्ण नहीं। उपयोगकर्ता नाम और पासवर्ड मामूली हैं, सुनिश्चित करें कि कैप्स लॉक कुंजी सक्षम नहीं है। यह लॉगिन के लिए उपयोग किया जाने वाला नाम है।"

#. Default: "Site and user settings"
#: components/manage/Toolbar/Toolbar
msgid "adminUserTools"
msgstr ""

#. Default: "Available views"
#: components/manage/Blocks/Search/schema
msgid "availableViews"
Expand Down Expand Up @@ -5079,6 +5083,11 @@ msgstr "इनपुट मान्य URL (www.something.com या http(s)://
msgid "user avatar"
msgstr "उपयोगकर्ता अवतार"

#. Default: "User settings"
#: components/manage/Toolbar/Toolbar
msgid "userTools"
msgstr ""

#. Default: "Video"
#: config/Blocks
msgid "video"
Expand Down
11 changes: 10 additions & 1 deletion packages/volto/locales/it/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2660,7 +2660,6 @@ msgstr "Preferenze Personali"

#. Default: "Personal tools"
#: components/manage/Toolbar/More
#: components/manage/Toolbar/Toolbar
msgid "Personal tools"
msgstr "Strumenti"

Expand Down Expand Up @@ -4468,6 +4467,11 @@ msgstr "Inserisci la nuova password. Minimo 8 caratteri."
msgid "addUserFormUsernameDescription"
msgstr "Inserisci uno username, ad esempio 'jsmith'. Non sono consentiti spazi o caratteri speciali. Username e password sono case sensitive, assicurati che il caps lock non sia abilitato. Questo sarà il nome che userai per fare il login."

#. Default: "Site and user settings"
#: components/manage/Toolbar/Toolbar
msgid "adminUserTools"
msgstr ""

#. Default: "Available views"
#: components/manage/Blocks/Search/schema
msgid "availableViews"
Expand Down Expand Up @@ -5079,6 +5083,11 @@ msgstr "Il testo inserito deve essere un url valido (www.qualcosa.com oppure htt
msgid "user avatar"
msgstr "Avatar dell'utente"

#. Default: "User settings"
#: components/manage/Toolbar/Toolbar
msgid "userTools"
msgstr ""

#. Default: "Video"
#: config/Blocks
msgid "video"
Expand Down
11 changes: 10 additions & 1 deletion packages/volto/locales/ja/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2665,7 +2665,6 @@ msgstr "個人別設定"

#. Default: "Personal tools"
#: components/manage/Toolbar/More
#: components/manage/Toolbar/Toolbar
msgid "Personal tools"
msgstr "個人設定"

Expand Down Expand Up @@ -4473,6 +4472,11 @@ msgstr ""
msgid "addUserFormUsernameDescription"
msgstr ""

#. Default: "Site and user settings"
#: components/manage/Toolbar/Toolbar
msgid "adminUserTools"
msgstr ""

#. Default: "Available views"
#: components/manage/Blocks/Search/schema
msgid "availableViews"
Expand Down Expand Up @@ -5084,6 +5088,11 @@ msgstr "正しいURLを入力してください"
msgid "user avatar"
msgstr "ユーザアイコン"

#. Default: "User settings"
#: components/manage/Toolbar/Toolbar
msgid "userTools"
msgstr ""

#. Default: "Video"
#: config/Blocks
msgid "video"
Expand Down
11 changes: 10 additions & 1 deletion packages/volto/locales/nl/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2664,7 +2664,6 @@ msgstr "Persoonlijke voorkeuren"

#. Default: "Personal tools"
#: components/manage/Toolbar/More
#: components/manage/Toolbar/Toolbar
msgid "Personal tools"
msgstr ""

Expand Down Expand Up @@ -4472,6 +4471,11 @@ msgstr ""
msgid "addUserFormUsernameDescription"
msgstr ""

#. Default: "Site and user settings"
#: components/manage/Toolbar/Toolbar
msgid "adminUserTools"
msgstr ""

#. Default: "Available views"
#: components/manage/Blocks/Search/schema
msgid "availableViews"
Expand Down Expand Up @@ -5083,6 +5087,11 @@ msgstr ""
msgid "user avatar"
msgstr ""

#. Default: "User settings"
#: components/manage/Toolbar/Toolbar
msgid "userTools"
msgstr ""

#. Default: "Video"
#: config/Blocks
msgid "video"
Expand Down
11 changes: 10 additions & 1 deletion packages/volto/locales/pt/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2665,7 +2665,6 @@ msgstr "Preferências Pessoais"

#. Default: "Personal tools"
#: components/manage/Toolbar/More
#: components/manage/Toolbar/Toolbar
msgid "Personal tools"
msgstr ""

Expand Down Expand Up @@ -4473,6 +4472,11 @@ msgstr ""
msgid "addUserFormUsernameDescription"
msgstr ""

#. Default: "Site and user settings"
#: components/manage/Toolbar/Toolbar
msgid "adminUserTools"
msgstr ""

#. Default: "Available views"
#: components/manage/Blocks/Search/schema
msgid "availableViews"
Expand Down Expand Up @@ -5084,6 +5088,11 @@ msgstr ""
msgid "user avatar"
msgstr "avatar do utilizador"

#. Default: "User settings"
#: components/manage/Toolbar/Toolbar
msgid "userTools"
msgstr ""

#. Default: "Video"
#: config/Blocks
msgid "video"
Expand Down
Loading
Loading