splitbrain / dokuwiki-plugin-translation

Easily setup a multi-language DokuWiki
http://www.dokuwiki.org/plugin:translation
23 stars 24 forks source link

Tool bar is not displayed #72

Closed jyagasaki closed 9 years ago

jyagasaki commented 9 years ago

Hi,

I installed the plugin of 2015/05/22 version. As a result, toolbar is not displayed in the editing page except the default language. Is this right behavior ?

Regards, J.Yagasaki

splitbrain commented 9 years ago

certainly not the right behavior. please check doku.wiki/faq:toolbar and report back with more details

jyagasaki commented 9 years ago

Hi

Thank you very much for your reply.

I will provide you the detailed information.

First, I checked "Problem with DokuWiki" of doku.wiki/faq:toolbar, so No.1-7 seems like no problem. In the previous version of this plugin, toolbar was displayed. On uninstalling current version, this issue does not appears. In the JavaScript Error console of Firefox, an error is occurred as follows: SyntaxError: expected expression, got '<'1 js.php:1:0

Regards, J.Yagasaki

splitbrain commented 9 years ago

which languages have you configured? what are your other settings for the translation plugin?

can you disable the compress options and check if you still get an error and what it says?

jyagasaki commented 9 years ago

Hi

I am sorry for the lack of explanation.

"ja" has been set in [lang] settings, and translation language is "en".

I have been disabled the compress options, but still got errors as follows; SyntaxError: expected expression, got '<'1 js.php:1:0 ReferenceError: DOKU_BASE is not defined script-cmpr.js:1:5970

Best Regards, J.Yagasaki

foisys commented 9 years ago

Hi,

I can confirm this behaviour in my own dokuwiki install. The toolbars, either from dokuwiki builtin editor or ckgedit editor, do not appears after upgrade to latest version. All pages outside of the translation zone (for example, pages in the users namespace) are not affected; only pages that are under specific languages have this problem, in my case, en and fr namespaces.

My Safari error console ends me this: Failed to load resource: the server responded with a status of 500 (Internal Server Error)

I will revert to an older version in the mean time.

Best regards

Sylvain Foisy, Ph. D. Project Manager Bioinformatics Montreal Heart Institute Montreal,Qc CANADA

Kasara commented 9 years ago

The problem is: /lib/exe/js.php?tseed=*****&lang=de If I set 3 letters (like "ger" or "eng") the scripts loads, but that is not the right solution, because the flags are not shown any longer and the correct language shortcut should be "de" and "en"

Strange thing: If I deactivate the plugin, /lib/exe/js.php?tseed=**_&lang=de and /lib/exe/js.php?tseed=_**&lang=en works (shows code)

Kasad commented 9 years ago

I found the option / reason:

if the option plugin»translation»translateui is activated, the url /lib/exe/js.php?lang=_language_\ results in an error

I disable the option for now, but I hope this finding helps the author to fix the bug :)

Sincerely

LMS235 commented 9 years ago

I have the same problem (see https://forum.dokuwiki.org/thread/12720 ) with 2015-05-22 (on 2014-09-29d "Hrun")

if translateui = 1, the sidebar (indexmenue) and the toolbar (here with codemirror plugin) dose not work if translateui = 0, all is OK

splitbrain commented 9 years ago

should be fixed with the fix for #74