• I’m currently localizing a theme for my purposes.
    Everything works fine except the localization of the core files.
    Every file located in the subfolder wp-includes uses the specified localization in the wp-config.php, e.g. define('WPLANG', 'en_US');.

    Is there any hook or possibility to overwrite this behavior with the selected xili-language?
    It looks dumb when the half website is translated but some parts are still in English.

    Kind regards,
    Stefan

    http://wordpress.org/plugins/xili-language/

Viewing 1 replies (of 1 total)
  • what do you mean of core files ? admin/author side or some terms like date or comment of plugin’s terms ?
    Do you use xili-dictionary ? or poEdit ?
    If you use xili-dictionary, you will be able to create .po/mo files containing the terms defined in default files (for date or comments). You translate and compile mo (local-xx_YY.mo) for each language… and xili-language will switch the languages… using adapted hooks or functions detecting these WP default files (using default domain and not theme domain).

    Tip : if you need french msgid/msgstr couples… temporary preset WPLANG to fr_FR before importing… Dictionary will import french msgstr (if core mo default languages files are available… of course) …

    It needs work… but the result is amazing…

    Good works

    M.

Viewing 1 replies (of 1 total)
  • The topic ‘Hook to overwrite WP language of core files?’ is closed to new replies.