You are not logged in.

#1 2008-03-19 19:55:14

webacadie
Member
Registered: 2006-05-02
Posts: 22

insert Table lang pack problem

When I try to insert a table, in the pop up screen all the texte is like this  {#table_dlg.general_props}   I guess it doesn't see the language file fr_ca but when I look in the "langs" directory the fr_ca.js file is there ....  Is there another place where it should be?  All the other plugin work fine ....

Offline

 

#2 2008-03-19 20:22:32

spocke
Administrator
From: Sweden, Skellefteċ
Registered: 2004-11-25
Posts: 11253
Website

Re: insert Table lang pack problem

Wrong forum. But download the language packs from the download page and verify that they got installed correctly.


Best regards,
Spocke - Main developer of TinyMCE

Offline

 

#3 2008-04-22 20:21:51

fsllc
Member
Registered: 2008-04-22
Posts: 2

Re: insert Table lang pack problem

Hi, I am having this same problem with the most recent version of TinyMCE (3.0?) ...Is it possible the table language pack isn't being read right by the table plugin? Where should I go in the code to make sure the correct language pack file is being read?

Offline

 

#4 2008-04-22 21:02:18

spocke
Administrator
From: Sweden, Skellefteċ
Registered: 2004-11-25
Posts: 11253
Website

Re: insert Table lang pack problem

You could use Firebug to see that all files get loaded correctly. But since the language packs get merged with the english one it should always work.


Best regards,
Spocke - Main developer of TinyMCE

Offline

 

#5 2008-04-22 22:12:04

fsllc
Member
Registered: 2008-04-22
Posts: 2

Re: insert Table lang pack problem

what is in charge of parsing the plugin's dialog template, such as the table plugin's "table.htm" file? Where in TinyMCE's code does the table plugin load it's language pack?

Offline

 

#6 2008-04-23 10:43:00

spocke
Administrator
From: Sweden, Skellefteċ
Registered: 2004-11-25
Posts: 11253
Website

Re: insert Table lang pack problem

It will load a table/langs/<lang code>_dlg.js file ones you open the dialog. It's loaded by the tinymce_popup.js file that is included by all dialogs.


Best regards,
Spocke - Main developer of TinyMCE

Offline

 

#7 2008-05-02 16:21:47

tiny_lover
Member
Registered: 2008-05-02
Posts: 2

Re: insert Table lang pack problem

I'm having the exact same problem. All my popups (wether it's anything from plugin table or plugin templates) do not show any human readable Labels. Moreover plugin templates does not read in the list of templates.

Couldn't be the language file problems, fall back to "en" I saw in the code. But can't fix this ... cannot find solution .... maybe wrong forum ... I'm happy I found anything about it ... difficult ....

I get all {#table_dlg.general_tab} and {#table_dlg.valign} and {#template_dlg.label} and so forth ... looking since 2 days now ... glad boss is so busy these days ...

please HALP!!!

Last edited by tiny_lover (2008-05-02 16:26:09)

Offline

 

#8 2008-05-03 06:26:10

ktwelsh
Member
Registered: 2008-05-03
Posts: 3

Re: insert Table lang pack problem

Same exact problem here, too. All popups/plugin dialogs do not show human readable labels. The code works fine when we run it in a browser directly from a local file (without being served) but once we copy the files to our app/web server, the problem appears.

We've used Firebug to determine that the en.js files are being loaded -- the same set of files load locally or when served. In fact the HTML remains the same -- i.e. both the local page and the served page contain the exact same HTML and javascript references, e.g.:
<script type="text/javascript" src="js/tiny_mce/tiny_mce.js"></script>

In addition to using Firebug, we have verified that all of the TinyMCE .js files can be read (we type the path into the URL bar in the browser and the source appears).

Of course, clicking any [insert] button in any dialog produces a javascript error, e.g.:
insertAction is not defined:
onsubmit(submit )
or
ImageDialog is not defined:
onsubmit(submit )

Clearly, something isn't loading or initializing. But what????

Everything else in the editor seems to work -- it's only the popups associated with the plugins that don't work.

Please help!!

Offline

 

#9 2008-05-03 11:48:07

spocke
Administrator
From: Sweden, Skellefteċ
Registered: 2004-11-25
Posts: 11253
Website

Re: insert Table lang pack problem

Unable to reproduce the problems. Can be anything, never seen the problem before. Try upgrading to 3.0.8 and clear your browser cache. If it still fails file a bug report with proper steps for us to reproduce it or see the problem live so we can take a look at it. Thanks.


Best regards,
Spocke - Main developer of TinyMCE

Offline

 

#10 2008-05-05 14:59:09

tiny_lover
Member
Registered: 2008-05-02
Posts: 2

Re: insert Table lang pack problem

ok seekers of the labels, low and behold: I've found a dirty hack!!! :-D

uncomment and move a few lines in ....wp-includes/js/tinymce/tiny_mce_popup.js so it looks like this:

    requireLangPack : function() {
        var u = this.getWindowArg('plugin_url') || this.getWindowArg('theme_url');

        if (u && this.editor.settings.language) {
            u += '/langs/' + this.editor.settings.language + '_dlg.js';

//            alert("i came very far");

                tinymce.ScriptLoader.markDone(u);
//            if (!tinymce.ScriptLoader.isDone(u)) {

//      alert("now I'm inside this ScriptLoader check");

                document.write('<script type="text/javascript" src="' + tinymce._addVer(u) + '"></script>');
                tinymce.ScriptLoader.markDone(u);
//            }
        }
    },

that's as messed up as I could do!!

So basically (!tinymce.ScriptLoader.isDone(u)) never evaluated to true. On my own risk I set a markDone and then just go into the code inside the condition. Don't know the consequences, but now I got labels!

Hope that helped ....

tiny_lover, who still loves tinymce  :-)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB