Module editing: Language feature needs extension
- Status
- Open
- Subject
- Module editing: Language feature needs extension
- Version
- 18.x
- Category
- Easy for Newbie Dev
- Feature request
- Less than 30-minutes fix
- Feature
- Admin Interface (UI)
Modules - Resolution status
- New
- Submitted by
- hman
- Lastmod by
- hman
- Rating
- Description
The module editing has a language feature. Although I am thankful that such an option does exist, it it not fully thought through. It needs an extension, but one that is extremely easy to implement. Just lift the restrictions a little bit...
/lib/modules/modlib.php has this on lne 889:Copy to clipboard'lang' => [ 'name' => tra('Language'), 'description' => tra('Module is displayed only when the specified language(s) in use. Designate languages by two-character language codes. Separate multiple languages by semi-colons.'), 'separator' => ';', 'filter' => 'lang', 'section' => 'visibility', ],
Language Id is, according to ISO, not a two character designator (It is, but then you can only select major languages and not sub-languages), but five characters: Two designators of two characters separated by a period. Major and minor...Example: With just two characters you can only select English as "en" and not specifically, for instance, British English, because that is en.gb... 😊
- Importance
- 4
- Easy to solve?
- 10 easy
- Priority
- 40
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 7508
- Created
- Saturday 22 August, 2020 11:39:34 UTC
by hman - LastModif
- Saturday 22 August, 2020 11:41:13 UTC