Fork me on GitHub

[SOLVED] Switching Language .zikula 1.3  Bottom

  • hello all
    I'm back to testing zk1.3, probably my new site will be based on it :) . and also plane 2 modules:
    1. CV(Personal info, Education Work experience etc)
    2. Publications (published articles in scientific journals/Conferences with abstract)--based on News module, will work with CV module
    this two modules i'm developing now with 1.1.2 :). work fine.

    For me it is important multilanguality.
    Just did fresh install of 1.3dev.
    created ka locale dir. copied there Zikula.pot file and translated some messages. language switch woks fine, but translations are not shown/loaded.
    changed language in Profile. Same thing. Added language switch block(dropdown menu shows available languages). Same as user or as guest block says that language is switched but no translations appear.

    Did same operations for other language-- Russian. Same thing.
    Did i missed something?
    is binary PO file necessary?



    Edited by shoshia on Mar 17, 2011 - 03:05 AM.
  • Not an answer to solve your test, but I'm interesting to translate in french your module.

    But I also think that it could be a good thing if we could import a publication structure or template with clip (ex-pagemaster)
  • thanks for respoce

    Quote

    I'm interesting to translate in french your module.

    when finish i'll make them available.



    Quote

    But I also think that it could be a good thing if we could import a publication structure or template with clip (ex-pagemaster)

    i never tried pagemaster. I know Clip is new one and have not tried it. Not enough knowledge for in workflow templating staff in this modules. will check Clip libs/functions when i get time

    do you see translations in French with ML enabled Zikula1.3?

    i'll go in debugging to see whats going on



    Edited by shoshia on Mar 17, 2011 - 03:30 AM.
  • it does not work with 1.2.6 also :(

    problem is:
    in Zlanguagesetup gets lang parameter 'ka' not 'kat'(this was legacy) and

    Code

    function setup()
        {
            $this->handleLegacy();
            $this->langRequested = preg_replace('#[^a-z-].#', '', FormUtil::getPassedValue('lang', null, 'GET')); // language for this request
            $this->detectLanguage();
            $this->validate();
            $this->fixLanguageToSession();
            $this->setlocale($this->languageCode);
            $this->bindCoreDomain();
            $this->loadLegacyDefines();
            $this->processErrors();
        }

    handlelegacy returns nothing as expected

    error is in Zlanguage.php line 181
    ZI18n:getinstance shoud not be called stattically



    Edited by shoshia on Mar 17, 2011 - 05:36 AM.
  • seems everything correct but not legacy lang not pot file translation is loaded :(
  • everything works fine :)..Sorry..there was no mo file :)

This list is based on users active over the last 60 minutes.