Loading...
 
Skip to main content

Missing "array_merge" when the custom.php file is created by Tiki (admin, I18n)

Status
Closed
Subject
Missing "array_merge" when the custom.php file is created by Tiki (admin, I18n)
Version
18.x
21.x
Category
  • Bug
  • Easy for Newbie Dev
  • Less than 30-minutes fix
Feature
i18n (Multilingual, l10n, Babelfish)
Resolution status
Confirmed
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
hman
Rating
(1)
Related-to
Description

When you use the I18n admin control panel for the first time to create a custom translation (/tiki-language-manage_custom_translations) , it create the custom.php file.

However translation are not performed as it miss at the end of the file (like in the sample file we distribute : custom.php_example)

$lang = array_merge($lang, $lang_custom);


Once you paste it custom translation are working.

Update: Even if you paste it in the file it is removed each time a translation is saved.

Solution

Fixed in master, 22.x, 21.x

  • 8fd10d5e7d (HEAD -> 21.x, origin/21.x) bp/r78459FIX Fix custom.php updates through Tiki (bug 7399)
Importance
7
Easy to solve?
10 easy
Priority
70
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7399
Created
Monday 22 June, 2020 10:38:50 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Friday 04 June, 2021 15:52:04 UTC


Show PHP error messages