Score:0

Default language on Language list page

ir flag
de2

I have just installed a brand new drupal 10 website. My goal is to make french its default language and add English as another available language. For that :

  • I selected FRENCH as default language on the first step of the Drupal installation.
  • I enabled the following modules : Configuration translation Content Translation Interface Translation Language
  • I added a new language "English" here /fr/admin/config/regional/language
  • I checked Enable interface translation to English for the english language.

When I am on /admin/config/regional/language, if I click on Translate next to French, I am redirected to /admin/config/regional/language/edit/fr/translate and I see that French (original) is the default language. However, if I am on /admin/config/regional/language, if I click on Translate next to ENGLISH, I am redirected to /admin/config/regional/language/edit/en/translate and I see that ENGLISH (original) is the default language. I can't understand why the default language is ENGLISH when I edit the english language ? shouldn't it always be French ?

/admin/config/regional/language/edit/fr/translate gives: enter image description here

/admin/config/regional/language/edit/en/translate gives : enter image description here

id flag
There isn’t really a question here. This may actually be a bug. This old question may be useful https://drupal.stackexchange.com/questions/8526/default-language-not-working-properly
ru flag
What you are seeing is is the "original" language of the language configuration object, NOT the default language of your website. A language is not just boolean "is enabled yes or no", it also has some additional meta data like e.g. direction (left-to-right). That configuration meta data was originally provided in english.
de2 avatar
ir flag
de2
@Hudri , yes but on some other D8 websites that were initially installed in french like mine, I see that french is the original language of the english language configuration object, that's why on /admin/config/regional/language/edit/en they add Anglais because it's the language name in the french default language and on /admin/config/regional/language/edit/en/translate/en/edit they add label = English because it's the english translation of the label Anglais. This is the intended behaviour.
de2 avatar
ir flag
de2
but in my case, english is the original language of english so I am supposed to label the language as english not Anglais cz right now it's like i'm saying Anglais is the label of the english language in English and it's not correct.
de2 avatar
ir flag
de2
ideally, i want to label the english language as Anglais in its english translation but the french should remain its original language. so i would say Anglais is the label of the english language in french (the site's default lang).
de2 avatar
ir flag
de2
I think it's a bug like @cilefen pointed out
4uk4 avatar
cn flag
This is not a bug, you can have config objects with different langcodes. If you are unhappy with this one, change it with `drush cedit language.entity.en`
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.