126

Re: Another File Browser

I love this extension!
I'm using it in my webpage. But I think a few enhancements would be fantastic:
- Download option.
- The most important: Resizing images in server (It would be easy reusing phpthumb, I think).

Thank you for your work!

127

Re: Another File Browser

I upload a reviewed version of catalan language.

<?php
/*
Language: Català (ca)
File: lang/ca.php
*/ 

$lang = array(
    "decimal seperator"             => ",",
    "thousands separator"           => ".",
    "datetime format"               => "d/m/Y H:i", // www.php.net/manual/en/function.date.php
    "Insert"                        => "Inserir",
    "File"                          => "Fitxer",
    "Root"                          => "Root",
    "Close"                         => "Tancar",
    "New folder"                    => "Nova carpeta",
    "Upload"                        => "Pujar",
    "Clipboard"                     => "Portapapers",
    "items"                         => "objectes",
    "Change view"                   => "Canvia la vista",
    "View"                          => "Vista",
    "Large images"                  => "Imatges grans",
    "Small images"                  => "Imatges petites",
    "List"                          => "Llista",
    "Details"                       => "Detalls",
    "Tiles"                         => "Mosaic",
    "Content"                       => "Contingut",
    "Show the preview pane"         => "Mostra la vista prèvia",
    "Help"                          => "Ajuda",
    "Search"                        => "Cerca",
    "All files"                     => "Tots els fitxers",
    "Dimensions"                    => "Dimensions",
    "Filename"                      => "Nom",
    "Filetype"                      => "Tipus",
    "Size"                          => "Mida",
    "Modified on"                   => "Data de modificació",
    "Directory"                     => "Directori",
    "Add a new folder"              => "Crea una nova carpeta",
    "New folder is created in"      => "La nova carpeta serà creada dins",
    "Name of the new folder"        => "Nom de la nova carpeta",
    "Create folder"                 => "Crear carpeta",
    "Upload a new file"             => "Pujar un fitxar",
    "Image editor"                  => "Editor d'imatges",
    "Browse..."                     => "Navega...",
    "Upload queue"                  => "Cua de pujada",
    "Currently uploading in folder" => "Actualment pujant a la carpeta",
    "Select your file"              => "Selecciona el(s) fitxer(s)",
    
    //Context menu
    "Edit"                          => "Editar imatge",
    "Copy"                          => "Copiar",
    "Cut"                           => "Tallar",
    "Paste"                         => "Enganxar",
    "Delete"                        => "Esborrar",
    "Do you really want to delete this folder and its contents?" => "Segur que vols esborrar aquesta carpeta i el seu contingut?",
    "Do you really want to delete this file?"                    => "Segur que vols esborrar aquest fitxer?",
    "Do you really want to delete this image?"                   => "Segur que vols esborrar aquesta imatge?",
    "Open"                          => "Obert",
    "Refresh"                       => "Refresca",
    "Rename"                        => "Canviar el nom",
    
    //Error, success and general messages
    "The folder path was tampered with!"                         => "La ruta del fitxer s'ha modificat!",
    "Creating new folder failed!"                                => "La creació de la nova carpeta ha fallat!<br />El següents caràcters no estan permesos: ^ \\ / ? * \" ' < > : |",
    "A new folder was created!"                                  => "La nova carpeta s'ha creat!",
    "Creating the new folder failed!"                            => "La creació de la nova carpeta ha fallat!",  
    #"The files where successfully copied!"                        => "The files where successfully copied!",
    "The file or folder path was tampered with!"                 => "La ruta del fitxer o de la carpeta s'ha modificat!",
    "Deleting file failed!"                                      => "No s'ha pogut esborrar el fitxer!",
    "Deleting folder failed!"                                    => "No s'ha pogut esborrar la carpeta!",
    "%d file(s) successfully removed!"                           => "%d fitxers esborrats correctament!",
    "Select only one file to insert!"                            => "Selecciona només un fitxer per moure!",
    "Insert cancelled because there is no target to insert to!"  => "S'ha cancel·lat la inserció perquè no hi ha destí!",
    "Directory already exists!"                                  => "La carpeta ja existeix!",
    "File already exists!"                                       => "El fitxer ja existeix!",
    #"Name successfully changed!"                                 => "Name successfully changed!",
    "Rename failed!"                                             => "El canvi de nom ha fallat!",
    "Please give a new name for file"                            => "Si us plau dóna un nom nou {0}{1}L'extensió del fitxers s'afegeix automàticament!{1}(Aquests caràcters no estan permesos {2})",
    "Please give a new name for folder"                          => "Si us plau dóna un nom nou {0}{1}(Aquests caràcters no estan permesos {2})",
    "Action not allowed!"                                        => "Acció no permesa!",
    "Invalid characters used!"                                   => "Aquests caràcters no estan permesos ^ \\\ / ? * \\\" ' < > : | .",

    
    //Upload
    "Upload limited to %d MB!"      => "Pujada limitat a %d MB!",
    "bytes"                         => "bytes",
    "kB"                            => "kB",
    "MB"                            => "MB",
    "Cancel all uploads"            => "Cancel·lar totes les pujades",

    //Settings
    "Settings"                      => "Configuració",
    "Language"                      => "Idioma",
    "Theme"                         => "Tema",
    "Cookies need to be enabled to save your settings!"          => "Les Cookies han d'estar activades per tal de guardar la configuració!",
    "Save settings"                 => "Guardar configuració",
    "Settings saved!"               => "Configuració guardada!",
    
    "Absolute URL with hostname"    => "URL absoluta amb el nom del domini",

    "EOF" => TRUE
);

?>

Last edited by luckas (2010-12-16 17:56:47)

128

Re: Another File Browser

Hi there and many thanks for this plugin. For contribution, I created the Turkish language file:

<?php
/*
Language: Turkish
File: lang/tr.php
*/ 

$lang = array(
    "decimal seperator"             => ".",
    "thousands separator"           => ",",
    "datetime format"               => "d/m/Y H:i", // www.php.net/manual/en/function.date.php
    "Insert"                        => "Ekle",
    "File"                          => "Dosya",
    "Root"                          => "Kök",
    "Close"                         => "Kapat",
    "New folder"                    => "Yeni klasör",
    "Upload"                        => "Yükle",
    "Clipboard"                     => "Pano",
    "items"                         => "parça",
    "Change view"                   => "Görünümü de?i?tir",
    "View"                          => "Göster",
    "Large images"                  => "Büyük resimler",
    "Small images"                  => "Küçük resimler",
    "List"                          => "Liste",
    "Details"                       => "Detaylar",
    "Tiles"                         => "Dö?eme",
    "Content"                       => "?çterik",
    "Show the preview pane"         => "Önizleme bölmesini göster",
    "Help"                          => "Yard?m",
    "Search"                        => "Ara",
    "All files"                     => "Tüm dosyalar",
    "Dimensions"                    => "Boyutlar",
    "Filename"                      => "?sim",
    "Filetype"                      => "Tip",
    "Size"                          => "Boyut",
    "Modified on"                   => "De?i?tirilme tarihi",
    "Directory"                     => "Klasör",
    "Add a new folder"              => "Yeni klasör ekle",
    "New folder is created in"      => "Yeni klasör eklendi",
    "Name of the new folder"        => "Yeni klasörün ismi",
    "Create folder"                 => "Yeni klasör yarat",
    "Upload a new file"             => "Yeni dosya yükle",
    "Image editor"                  => "Resim düzenleyici",
    "Browse..."                     => "Gözat...",
    "Upload queue"                  => "Yükleme kuyru?u",
    "Currently uploading in folder" => "Bu klasöre yükleniyor",
    "Select your file"              => "Dosyalar?n?z? seçin",

    //Context menu
    "Edit"                          => "Resmi düzenle",
    "Copy"                          => "Kopyala",
    "Cut"                           => "Kes",
    "Paste"                         => "Yap??t?r",
    "Delete"                        => "Sil",
    "Do you really want to delete this folder and its contents?" => "Bu klasörü ve içeri?ini silmek istiyor musunuz?",
    "Do you really want to delete this file?"                    => "Bu dosyay? silmek istiyor musunuz?",
    "Do you really want to delete this image?"                   => "Bu resmi silmek istiyor musunuz?",
    "Open"                          => "Aç",
    "Refresh"                       => "Yenile",
    "Rename"                        => "Yeniden adland?r",

    //Error, success and general messages
    "The folder path was tampered with!"                         => "Klasör yolu de?i?tirilmi?!",
    "Creating new folder failed!"                                => "Yeni klasör olu?turulamad?!<br />?u karakterler kullan?lamaz: ^ \\ / ? * \" ' &lt; &gt; : |",
    "A new folder was created!"                                  => "Yeni klasör yarat?ld?!",
    "Creating the new folder failed!"                            => "Yeni klasör olu?turulamad?!",
    "The files where successfully copied!"                       => "Dosyalar ba?ar?yla kopyaland?!",
    "The file or folder path was tampered with!"                 => "Dosya veya klasör yolu de?i?tirilmi?!",
    "Deleting file failed!"                                      => "Dosya silinemedi!",
    "Deleting folder failed!"                                    => "Klasör silinemedi!",
    "%d file(s) successfully removed!"                           => "%d dosya ba?ar?yla silindi!",
    "Select only one file to insert!"                            => "Lütfen eklemek için sadece bir dosya seçin!",
    "Insert cancelled because there is no target to insert to!"  => "Hedef belirtilmedi?i için ekleme i?lemi iptal edildi!",
    "Directory already exists!"                                  => "Klasör zaten var!",
    "File already exists!"                                       => "Dosya zaten var!",
    "Name successfully changed!"                                 => "?sim ba?ar?yla de?i?tirildi!",
    "Rename failed!"                                             => "?sim de?i?tirilemedi!",
    "Please give a new name for file"                            => "Dosya ismini yaz?n {0}{1}Dosya uzant?s? otomatik eklenecektir!{1}(?u karakterler kullan?lamaz {2})",
    "Please give a new name for folder"                          => "Klasör ismini yaz?n {0}{1}(?u karakterler kullan?lamaz {2})",
    "Action not allowed!"                                        => "Bu i?leme izin verilmiyor!",
    "Invalid characters used!"                                   => "?u karakterler kullan?lamaz: ^ \\\ / ? * \\\" ' &lt; &gt; : | .",

    //Upload
    "Upload limited to %d MB!"      => "Yükleme %d MB ile s?n?rl?d?r!",
    "bytes"                         => "bytes",
    "kB"                            => "kB",
    "MB"                            => "MB",
    "Cancel all uploads"            => "Tüm yüklemeleri iptal et",

    //Settings
    "Settings"                      => "Ayarlar",
    "Language"                      => "Dil",
    "Theme"                         => "Tema",
    "Cookies need to be enabled to save your settings!"          => "Ayarlar?n?z? kaydetmek için çerezler aktif olmal?d?r!",
    "Save settings"                 => "Ayarlar? kaydet",
    "Settings saved!"               => "Ayarlar kaydedildi!",
    
    "Absolute URL with hostname"    => "Mutlak URL (hostname ile birlikte)",

    "EOF" => TRUE
);

?>

129

Re: Another File Browser

Hi Guido,

First of all, congratulations on your excellent tool!!!

I have an issue though: I cannot insert any image into the TinyMCE editor in despite of I can succesfully browse (even edit) them through your PDW. It always complains on "Insert cancelled because there is no target to insert to!" (seems there is no "win" returned value).

I don't know if cross subdomain access is allowed by your tool but that's what I'm using: I developed a custom CMS hosted in "intranet.mydomain.com" which is calling a TinyMCE instance hosted in "www.mydomain.com". This is my piece of code:

    <script language="JavaScript" type="text/javascript" src="http://www.mydomain.com/css_javascrt/tiny_mce/tiny_mce.js"></script>
    <script language="JavaScript" type="text/javascript">
    document.domain = "mydomain.com";
    tinyMCE.init({
        // General options
        mode : "textareas",
        language : "es",
        theme : "advanced",
        plugins : "safari, pagebreak, style, layer, table, save, advhr, advimage, advlink, emotions, iespell, inlinepopups, insertdatetime, preview, media, searchreplace, print, contextmenu, paste, directionality, fullscreen, noneditable, visualchars, nonbreaking, xhtmlxtras, template",

        // Theme options
        theme_advanced_blockformats : "p,h1,h2",
        theme_advanced_text_colors : "006600,0b0c56,cc0000,000000,FFFFFF",
        theme_advanced_buttons1 : "save,|,bullist,numlist,|,bold,italic,underline,|,style,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,forecolor,|,visualchars,nonbreaking",
        theme_advanced_buttons2 : "cut,copy,paste,|,undo,redo,removeformat,|,link,unlink,image,cleanup,code,|,preview",
        theme_advanced_buttons3 : "advhr,hr,sub,sup,|,charmap,|,fullscreen",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,
        file_browser_callback : "filebrowser",

        content_css : "/css_javascrt/frameSimulate.css",
        style_formats : [
            {title:"Lista genérica",  selector:"ul", classes:"listagral"},
            {title:"Lista marrón",    selector:"ul", classes:"listamarron"},
            {title:"Verdana rojo 11", inline:"span", classes:"verdanarojo11"},
            {title:"Verdana rojo 12", inline:"span", classes:"verdanarojo12"},
            {title:"Verdana azul 11", inline:"span", classes:"verdanaazul11"},
            {title:"Verdana azul 12", inline:"span", classes:"verdanaazul12"},
            {title:"Enlace descarga", inline:"a",    classes:"download"},
            {title:"Bloque imágenes",  block:"div",  classes:"bloqueimg"}
        ],
    });

    function filebrowser(field_name, url, type, win) {
            fileBrowserURL = "http://www.mydomain.com/css_javascrt/tiny_mce/plugins/pdw_file_browser/index.php?editor=tinymce&filter=" + type;
            tinyMCE.activeEditor.windowManager.open({
                    title: "PDW File Browser",
                    url: fileBrowserURL,
                    width: 950,
                    height: 650,
                    inline: 0,
                    maximizable: 1,
                    close_previous: 0
            },{
                    window : win,
                    input : field_name
            });             
    }
    </script>

Any thoughts?

Regards,
Antonio

130

Re: Another File Browser

Hi Antonio,

Have you added...

document.domain = "mydomain.com";

... to tiny_mce_popup.js in the js folder?

See http://tinymce.moxiecode.com/wiki.php/H … rossdomain

131

Re: Another File Browser

spawnedc wrote:

Hi there and many thanks for this plugin. For contribution, I created the Turkish language file:

...

cool Fantastic I will add it to the zip file and I will mention you in the VERSION document. Do you want a link to your website? I'll be happy to add it for you.

Guido

132

Re: Another File Browser

Hello, I haven't gotten this to work but I sure hope you can help me.

I have created a template that is to be passed out to numerous people, so alot of everything I have all ready done is completely dynamic, I am hoping to continue that.

So if you could please help me.

Config.php
// if I browse to the folder thought Firefox here is what the url is... "http://www.MYDOMAIN.org/addons/template/media/files/"

$uploadpath = "/addons/template/media/files/"; // absolute path from root to upload folder (DON'T FORGET SLASHES)


But I keep getting

Upload folder doesn't exist or $uploadpath in config.php is set wrong!

133

Re: Another File Browser

rmcintosh wrote:

Hello, I haven't gotten this to work but I sure hope you can help me.

I have created a template that is to be passed out to numerous people, so alot of everything I have all ready done is completely dynamic, I am hoping to continue that.

So if you could please help me.

Config.php
// if I browse to the folder thought Firefox here is what the url is... "http://www.MYDOMAIN.org/addons/template/media/files/"

$uploadpath = "/addons/template/media/files/"; // absolute path from root to upload folder (DON'T FORGET SLASHES)


But I keep getting

Upload folder doesn't exist or $uploadpath in config.php is set wrong!

Hi rmcintosh,

The upload folder check is a concatenation of DOCUMENTROOT and $uploadpath. If $uploadpath is set right then the error must be in the constant DOCUMENTROOT. You can try to uncomment one of the lines between line 122 and 126 in config.php.

line 122. //define('DOCUMENTROOT', '/home/httpd/httpdocs');
line 123. //define('DOCUMENTROOT', 'c:\\webroot\\example.com\\www');
line 124. //define('DOCUMENTROOT', $_SERVER['DOCUMENT_ROOT']);
line 125. //define('DOCUMENTROOT', realpath((@$_SERVER['DOCUMENT_ROOT'] && ....
line 126. define('DOCUMENTROOT', realpath((getenv('DOCUMENT_ROOT') && pre....

134

Re: Another File Browser

Hello!

I am testing this and it is great. But I have a problem and I don't know how to solve it. Here are error messages what is wrong.
Strict Standards: Redefining already defined constructor for class Minify in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\tinymce\pdw_file_browser\minify.php on line 274

Warning: getimagesize(C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocshttp://localhost/slike/test/7.jpg) [function.getimagesize]: failed to open stream: Invalid argument in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\tinymce\pdw_file_browser\file_specs.php on line 14

Warning: filemtime() [function.filemtime]: stat failed for C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocshttp://localhost/slike/test/7.jpg in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\tinymce\pdw_file_browser\file_specs.php on line 15

Warning: filesize() [function.filesize]: stat failed for C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocshttp://localhost/slike/test/7.jpg in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\tinymce\pdw_file_browser\file_specs.php on line 16

Thank you for your help and continou the good work!

Regards!

135

Re: Another File Browser

Hi Simkepal,

The first error is displayed because the class Minify has two constructors. It isn't a big deal. If you add ...

error_reporting(0);

... at the top of config.php this will disappear.

The other three messages are probably caused by setting the variable $uploadpath wrong. I guess C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs is the document root and you set uploadpath to http://localhost/slike/ or http://localhost/slike/test/. You should remove http://localhost.

Hope this works out for you.

Regards,

Guido

136

Re: Another File Browser

Thank you! Everything works now. But I have another question.
I got stuck whit my tinymce integration... its built like the examples exept saving in mysql db. The problem is saving and updating the displayed content. Saving goes to mysql db and this works fine as I press the save button. But the displayed content goes back to its original state... clicking again on save the changed content is displayed. A refresh of the site shows the updated content. The save itself goes on the same page as target.
My PHP code

<body>
<?php
@ $db = new MySQLi('localhost', 'root', 'password', 'vsebina');
if(mysqli_connect_errno()) {
    echo "Ne morem se povezati z bazo";
    exit();
}


$query = "Select vsebina from strani where stranID = 1";
$result = $db->query($query);

$row = $result->fetch_array();
?>
<form action="" method="post">
  <textarea name="vnos" id="vnos" cols="45" rows="5"><?php echo addslashes($row['vsebina']); ?></textarea>
</form>
<?php
if(isset($_POST['vnos'])){
    $shrani = stripslashes($_POST['vnos']);
    
    $query = "update strani set vsebina = '$shrani' where stranID = 1";
    $result = $db->query($query);
    
    if(isset($result)) {
        $db->close();
        exit();
    }
}
?>
</body>

Hope you can help me with that to.

137

Re: Another File Browser

simkepal wrote:

But I have another question.

This "other question" isn't related to any file browser issues so I strongly suggest you stick to your previous thread!

Greetings from Germany,

Felix Riesterer.
(-> about me and this forum <-)

138

Re: Another File Browser

The path returned from the file browser is '/test/uploads/image.jpg'.
Is there a way the path to be returned as 'uploads/image.jpg'?

139

Re: Another File Browser

Khronos wrote:

The path returned from the file browser is '/test/uploads/image.jpg'.
Is there a way the path to be returned as 'uploads/image.jpg'?

That is exactly my question as well! The extension is AWESOME and just WORKS. But it always inserts absolute paths. I need it to edit HTML files that work locally and may move around. Images are stored below html files, so path must be relative.

Can't figure out how to mess with the insert function...

Can someone provide an option for relative paths ?

140

Re: Another File Browser

Guido Neele wrote:

Hi Antonio,

Have you added...

document.domain = "mydomain.com";

... to tiny_mce_popup.js in the js folder?


Hi Guido,

Sorry for the delay. I was unable to check the post 'til now.

Yes, that is what I got. Otherwise I would not be able to reach TinyMCE from cross-domain. However your editor is still complaining :-(

Regards,
Antonio

141

Re: Another File Browser

Hi Guido

Your work looks great.

Just read the whole thread without finding the installation problem that I am having.

Basically, I am installing PDW as a plug-in of Tinymce, which is installed as a plug-in of another application (newsletter manager Phplist).

The flow is: Phplist calls Tinymce, overriding its configuration. Tinymce should launch PDW.

The configuration of Tinymce is defined as variable "TINYMCEOPTS" in Phplist's own configuration file. There, I can add the file_browser_callback function, but not the function definition (that you suggest to put after Tinymce's configuration). Phplist blows up if I put it there. But if I put the definition in Tinymce's theme, after the configuration that is overridden by Phplist, the function is ignored.

The end result is that the file browser button does appear in Tinymce, but nothing happens if clicked.

Can you point me in the right direction?

Last edited by 75goo (2011-01-27 21:56:21)

142

Re: Another File Browser

Hi Antonio,

Have you added...

document.domain = "mydomain.com";

... to tiny_mce_popup.js in the js folder?


Hi Guido,

Sorry for the delay. I was unable to check the post 'til now.

Yes, that is what I got. Otherwise I would not be able to reach TinyMCE from cross-domain. However your editor is still complaining :-(

Funny enough I'm able to create/delete/upload files and folders but cannot insert them (images) in TinyMCE. Seems like the popup dialog cannot return the image path into the main TinyMCE window. Any ideas?

143

Re: Another File Browser

I love this plugin but I'm kind of new at this. Our server does only supports ASP pages. Will this work on our server? I have tinymce working with the jquery version but will this plugin work??

144

Re: Another File Browser

OMG, new forum version ruined Cyrillic in my language file update post, so I've uploaded it to SourceForge project tracker (in "Patches" category).

145

Re: Another File Browser

Doesn't anyone know how to return relative paths?
It would be great help!

146

Re: Another File Browser

http://tinymce.moxiecode.com/wiki.php/T … ve_URLs.3F

Greetings from Germany,

Felix Riesterer.
(-> about me and this forum <-)

147

Re: Another File Browser

Thanks for your answer.
It works as long as the returned url is inside tinymce.
But I want it to be like this also when I use the file manager with a textbox.

Is there a solution for this?

148

Re: Another File Browser

Great job. The best browser so far smile

But I have some problems with the URL on Chrome and IE.
When i open it from TinyMCE in IE, it opens a new window with this url: mydomain.com/pdw_file_browser/index.php?editor=tinymce&filter=image - which does not exist.

Google Chrome on the other hand, open the correct URL: mydomain.com/jscripts/tiny_mce/plugins/pdw_file_browser/index.php?editor=tinymce&filter=image

Any idea how to fix this error? So it will work correct on both?

EDIT:
I fixed it with this solution atm:

var browserName=navigator.appName;
    if (browserName=="Microsoft Internet Explorer") {
        pdw_file_browser_uri = "../jscripts/tiny_mce/plugins/pdw_file_browser/index.php";
    } else {
        pdw_file_browser_uri = "../pdw_file_browser/index.php";
    }

---------------

Here is my norwgian language file.

<?php
/*
Language: Norwegian
File: lang/no.php
*/ 


$lang = array(
    "decimal seperator" => ".",
    "thousands separator" => ",",
    "datetime format" => "m/d/Y H:i", // www.php.net/manual/en/function.date.php
    "Insert" => "Legg til",
    "File" => "Fil",
    "Root" => "Root",
    "Close" => "Lukk",
    "New folder" => "Ny mappe",
    "Upload" => "Last opp",
    "Clipboard" => "Utklipp",
    "items" => "stk",
    "Change view" => "Bytt visning",
    "View" => "visning",
    "Large images" => "Store bilder",
    "Small images" => "Sm&aring; bilder",
    "List" => "Liste",
    "Details" => "Detaljer",
    "Tiles" => "Titler",
    "Content" => "Inneholl",
    "Show the preview pane" => "Vis forh&aring;ndsvisningslinje",
    "Help" => "Hjelp",
    "Search" => "S&oslash;k",
    "All files" => "Alle filer",
    "Dimensions" => "Dimensjoner",
    "Filename" => "Navn",
    "Filetype" => "Type",
    "Size" => "St&oslash;rrelse",
    "Modified on" => "Sist endret",
    "Directory" => "Mappe",
    "Add a new folder" => "Opprett ny mappe",
    "New folder is created in" => "Ny mappe opprettet i",
    "Name of the new folder" => "Navn p&aring; ny mappe",
    "Create folder" => "Lag ny mappe",
    "Upload a new file" => "Last opp ny fil",
    "Image editor" => "Bilde redigering",
    "Browse..." => "Bla gjennom...",
    "Upload queue" => "Opplastingsk&oslash;",
    "Currently uploading in folder" => "Laster opp i mappe..",
    "Select your file" => "Velg din(e) fil(er)",
    
    //Context menu
    "Edit" => "Endre bilde",
    "Copy" => "Kopiere",
    "Cut" => "Klipp ut",
    "Paste" => "Lim inn",
    "Delete" => "Ta bort",
    "delete_confirm_message_folder" => "Vil du virkelig slette denne mappen og alt innholdet?",
    "delete_confirm_message_file" => "Vil du virkelig slette denne filen?",
    "delete_confirm_message_image" => "Vil du virkelig slette dette bildet?",
    "Open" => "&Aring;pne",
    "Refresh" => "Oppfrisk",
    "Rename" => "Nytt navn",
    
    //Error, success and general messages
    "The folder path was tampered with!"                         => "Denne mappen har blitt tuklet med!",
    "Creating new folder failed!"                                => "Feil ved opprettelse av ny mappe!<br />Du kan ikke bruke f&oslash;lgende tegn i navnet: ^ \\ / ? * \" ' &lt; &gt; : |",
    "A new folder was created!"                                  => "Ny mappe er opprettet!",
    "Creating the new folder failed!"                            => "Ny mappe ble ikke opprettet!",  
    #"The files where successfully copied!"                       => "The files where successfully copied!",
    "The file or folder path was tampered with!"                 => "Feil p&aring; denne mappen/filen!",
    "Deleting file failed!"                                      => "Feil ved sletting av denne filen!",
    "Deleting folder failed!"                                    => "Feil ved sletting av denne mappen!",
    "%d file(s) successfully removed!"                           => "%d  filer ble fjernet!",
    "Select only one file to insert!"                            => "Velg en fil!",
    "Insert cancelled because there is no target to insert to!"  => "Fant ingen m&aring;lmappe!",
    "Directory already exists!"                                  => "Denne mappen finnes allerede!",
    "File already exists!"                                       => "Filen finnes allerede!",
    #"Name successfully changed!"                                 => "Name successfully changed!",
    "Rename failed!"                                             => "Kunne ikke bytte navn!",
    "Please give a new name for file"                            => "Vennligst fors&oslash;k &aring; gi et nytt navn",
    "Please give a new name for folder"                          => "Vennligst fors&oslash;k &aring; gi et nytt navn",
    "Action not allowed!"                                        => "Ikke tilatt!",
    "Invalid characters used!"                                   => "Du kan ikke bruke f&oslash;lgende tegn ^ \\\ / ? * \\\" ' &lt; &gt; : | .",
    
    //Upload
    "Upload limited to %d MB!"      => "Opplasting er begrenset til %d MB!",
    #"bytes"                         => "bytes",
    #"kB"                            => "kB",
    #"MB"                            => "MB",
    "Cancel all uploads"            => "Avbryt alle opplastinger",

    //Settings
    "Settings"                      => "Innstillinger",
    "Language"                      => "Språk",
    "Theme"                         => "Tema",
    #"Cookies need to be enabled to save your settings!"          => "Cookies need to be enabled to save your settings!",
    "Save settings"                 => "Lagre innstillinger",
    "Settings saved!"               => "Innstillinger lagret!",
    
    #"Absolute URL with hostname"    => "Absolute URL with hostname",

    "EOF" => TRUE
);

?>

Last edited by dico (2011-02-22 20:43:31)

149

Re: Another File Browser

Sorry for the late reply. For some reason I haven't received the forum updates. I was subscribed to this thread but I just didn't receive any notifications.

Hi Dico,

Thank your for translating PDW File Browser to Norwegian. I missed that one :-)
As far as your problem, why don't you specify an absolute url? This should work...

pdw_file_browser_uri = "/jscripts/tiny_mce/plugins/pdw_file_browser/index.php";

Guido

150

Re: Another File Browser

Khronos wrote:

Thanks for your answer.
It works as long as the returned url is inside tinymce.
But I want it to be like this also when I use the file manager with a textbox.

Is there a solution for this?

Khronos,

Right now this isn't possible inside PDW File Browser.
I will add your feature request to the SourceForge project. It might be included in one of the following versions.

Guido