-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
howto display different foldernames or translate folder names? #1012
Comments
NAVER - http://www.naver.com/lovesin83@naver.com 님께 보내신 메일 <[elFinder] howto display different foldernames or translate folder names? (#1012)> 이 다음과 같은 이유로 전송 실패했습니다. 받는 사람이 회원님의 메일을 수신차단 하였습니다. |
@sweiguny How about Google web site translation. It was put on the demo site on probation. ;-) |
NAVER - http://www.naver.com/lovesin83@naver.com 님께 보내신 메일 <Re: [elFinder] howto display different foldernames or translate folder names? (#1012)> 이 다음과 같은 이유로 전송 실패했습니다. 받는 사람이 회원님의 메일을 수신차단 하였습니다. |
@nao-pon This is not the way I imagine. I want to be independent from externals. now i found it :) $options = [
"roots" => [
[
"driver" => "MyLocalFileSystem",
"path" => "/some/path/", |
I see. That's something of great interest! 😆 |
Hi, well, i now came across the issue, that, if i am going to "open" a file with elfinder... The opened path will be in my getFileCallback i've implemented a function for "retranslating" the path for inserting files into e.g. tinymce. |
NAVER - http://www.naver.com/lovesin83@naver.com 님께 보내신 메일 <Re: [elFinder] howto display different foldernames or translate folder names? (#1012)> 이 다음과 같은 이유로 전송 실패했습니다. 받는 사람이 회원님의 메일을 수신차단 하였습니다. |
as i closed this issue accidentially the last time, i think, that it got perished 😄 is there somewhere the possibility to get the real path of the file on opening or quicklook? im afraid that the only possibility is to implement such a translated path by myself. |
Quoted from the commit logconnector added an option // enable i18n folder name that convert name to elFinderInstance.messages['folder_'+name]
'i18nFolderName' => false, e.g. connector.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 // 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); |
hi everybody.
i am working on a CMS which shall provide more than one language.
therefore i'd like to give the folders, that are managed by elfinder, a name that represents a key of my translation module (kind of array). based on that key, the translated name shall be displayed.
example:
folder structure on filesystem:
if a user opens elfinder in english, it shall be like
if a user opens elfinder in german, it shall be like
that means, the acutal folder name is replaced by the translation.
does anyone have an idea how to accomplish that?
br
The text was updated successfully, but these errors were encountered: