splitbrain / dokuwiki-plugin-translation

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

"conf/lang/<ISO>/lang.php" isn't reflected when the "translateui" is "1" #125

Closed jyagasaki closed 1 year ago

jyagasaki commented 7 years ago

Hi,

When the "translateui" is "1", "conf/lang/\<ISO>/lang.php" isn't reflected on my dokuwiki except root name space with default language.

Is this right behavior ?

Regards, J.Yagasaki

annda commented 2 years ago

There is a general issue with overwriting translations. I will try to submit a PR later.

Language files are loaded in translation_hook method in action.php without checking the config cascade

Also the method uses the DOKUWIKI_STARTED and DETAIL_STARTED events, maybe INIT_LANG_LOAD is more appropriate.

splitbrain commented 1 year ago

should be fixed with c7d31b725a5072414f6aaf923928a2d4e6752acb