Loading...
 
Skip to main content

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
(0)
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+
Demonstrate Bug (older Tiki versions)
Ticket ID
7508
Created
Saturday 22 August, 2020 11:39:34 UTC
by hman
LastModif
Saturday 22 August, 2020 11:41:13 UTC


Show PHP error messages