CMS MADE SIMPLE FORGE

TinyMCE

 

[#11525] Filemanager Lang error

avatar
Created By: Petr N. (esmiran)
Date Submitted: Sun Aug 06 06:26:06 -0400 2017

Assigned To:
Version: 3.2-beta3
CMSMS Version: 2.2.2
Severity: Minor
Resolution: Awaiting Response
State: Open
Summary:
Filemanager Lang error
Detailed Description:
When working in a non-English admin interface, I get an error when I open
Filemanager:

Warning: include(../lang/cs_CZ.php): failed to open stream: Adresář nebo soubor
neexistuje in
/var/www/ksb/modules/TinyMCE/responsive_filemanager/filemanager/include/utils.php
on line 91
Warning: include(): Failed opening '../lang/cs_CZ.php' for inclusion
(include_path='.:/usr/share/php:/usr/share/pear') in
/var/www/ksb/modules/TinyMCE/responsive_filemanager/filemanager/include/utils.php
on line 91


If I add a missing Lang file, only the following error will appear and
Filemanager does not work.

Warning: array_key_exists() expects parameter 2 to be array, null given in
/var/www/ksb/modules/TinyMCE/responsive_filemanager/filemanager/include/utils.php
on line 42
Lang_Not_Found
(@/var/www/ksb/modules/TinyMCE/responsive_filemanager/filemanager/include/utils.php#83)


History

Comments
avatar
Date: 2018-02-08 06:32
Posted By: Mathieu Muths (airelibre) (airelibre)

Please test the new beta5 that is going to be released - I just tested with the
Czech language and both Tiny and the filemanager are in Czech


      
avatar
Date: 2018-02-08 15:17
Posted By: Petr N. (esmiran)

The same bug remains in beta 5. Filemanager. When I edit a page and want to Add
/ Edit a link to a file, the error is displayed:

Warning: include(../lang/cs_CZ.php): failed to open stream: Adresář nebo soubor
neexistuje in
/var/www/ksb/modules/TinyMCE/responsive_filemanager/filemanager/include/utils.php
on line 88

Warning: include(): Failed opening '../lang/cs_CZ.php' for inclusion
(include_path='.:/usr/share/php:/usr/share/pear') in
/var/www/ksb/modules/TinyMCE/responsive_filemanager/filemanager/include/utils.php
on line 88
      
avatar
Date: 2018-02-08 16:02
Posted By: Petr N. (esmiran)

To solve this bug (for Czech language):
In the folder modules/TinyMCE/responsive_filemanager/filemanager/lang/ 
 rename file "cs.php" to "cs_CZ.php"
 edit language.php - add line: 'cs_CZ' => 'čeština, český jazyk',

I think the same problem may also occur in some other language localizations.

      
avatar
Date: 2018-02-15 10:13
Posted By: Mathieu Muths (airelibre) (airelibre)

Thanks - in fact between CMSMS and RFM, languages names / codes are not always
the same.

I'll try to find a way to easily get the right language
      
avatar
Date: 2018-08-02 09:37
Posted By: Charles Butcher (chazzo)

Thanks airelibre:

"between CMSMS and RFM, languages names / codes are not always
the same."

I had a similar problem with English. It turns out that the current version of
language.php includes `'en_EN' => 'English'` but not `'en' => 'English'`. Adding
that line fixed it.
      
Updates

Updated: 2018-02-08 06:32
resolution_id: => 10