Timeline for How to get the language code when a language name is given?
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S May 30, 2022 at 20:55 | history | suggested | pfrenssen | CC BY-SA 4.0 |
Add a simplified version that works on modern PHP versions.
|
May 30, 2022 at 15:11 | review | Suggested edits | |||
S May 30, 2022 at 20:55 | |||||
Jan 18, 2019 at 5:16 | vote | accept | ktrev | ||
Jan 17, 2019 at 15:15 | comment | added | Adrian Cid Almaguer | @ktrev you question doesn't say anything about a list of custom languages if this answer solves your question consider check it as accepted and open a new question with your new problem, don't edit this question, and if you create a new question let me know here the link. | |
Jan 17, 2019 at 7:17 | comment | added | ktrev | Hi, I used this code. But it is not giving me the list of custom languages that I created | |
Dec 18, 2018 at 11:09 | comment | added | leymannx | OK, I'm convinced. +1 :D | |
Dec 18, 2018 at 10:04 | history | edited | avpaderno♦ | CC BY-SA 4.0 |
deleted 5 characters in body
|
Dec 18, 2018 at 10:04 | comment | added | avpaderno♦ | The other answer is also wrong because it directly uses the class implementing a service, which is not something that should be done. | |
Dec 14, 2018 at 19:56 | comment | added | Adrian Cid Almaguer | @leymannx Try to search 'Français' that is a valid language for Drupal and you will not see the 'fr' code. | |
Dec 14, 2018 at 19:52 | comment | added | Adrian Cid Almaguer | @leymannx the code in the other answer at least for me is not working | |
Dec 14, 2018 at 19:44 | comment | added | leymannx | TBH, this adds nothing new to the already given answer... | |
Dec 14, 2018 at 18:49 | history | edited | Adrian Cid Almaguer | CC BY-SA 4.0 |
deleted 170 characters in body
|
Dec 14, 2018 at 18:13 | history | answered | Adrian Cid Almaguer | CC BY-SA 4.0 |