-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] fix #1012 support i18n folder name
**connector** added an option `i18nFolderName` ```php // enable i18n folder name that convert name to elFinderInstance.messages['folder_'+name] 'i18nFolderName' => false, ``` **e.g. connector.php** ```php $opts = array( 'roots' => array( array( 'driver' => 'LocalFileSystem', 'path' => '/path/to/files/', 'i18nFolderName' => true, ) ) ); // run elFinder $connector = new elFinderConnector(new elFinder($opts)); $connector->run(); ``` **e.g. elfinder.html** ```javascript // Additional translation messages var i18nFolderMsgs = { 'en': { 'folder_Downloads': 'Downloads', 'folder_Images': 'Images', 'folder_LargeVideos': 'Videos', 'folder_MIME-types': 'MIME types', 'folder_Welcome': 'Welcome(Multilingual)' }, 'jp': { 'folder_Downloads': 'ダウンロード', 'folder_Images': '画像', 'folder_LargeVideos': '動画', 'folder_MIME-types': 'MIMEタイプ', 'folder_Welcome': 'ようこそ(多言語)' } }; var options = { url : 'php/connector.php', handlers : { init : function(e, fm) { // Register additional messages $.extend(fm.messages, i18nFolderMsgs.en, i18nFolderMsgs[fm.lang] || {}); } } } $('#elfinder').elfinder(options); ```
- Loading branch information
Showing
6 changed files
with
80 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters