ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Build 20100805 Third-Party Language Files

August 06, 2010 4:23pm

Subscribe [4]
  • #1 / Aug 06, 2010 4:23pm

    Chris Chiles

    17 posts

    It looks like with the change to rename all language files to match the CodeIgniter naming conventions, all third party add-ons break unless the language file is renamed.

  • #2 / Aug 06, 2010 4:25pm

    Lisa Wess

    20502 posts

    Hi, Chris,

    I’m looking into this for you. Thank you for the heads up.

  • #3 / Aug 06, 2010 4:36pm

    Brian Litzinger

    705 posts

    How was this not caught or considered before releasing? Geesh

  • #4 / Aug 06, 2010 5:08pm

    Brian Litzinger

    705 posts

    At line 156 of system/expressionengine/core/EE_Lang.php, change to the following to fix it.

    // if it's in an alternate location, such as a package, check there first
            if ($alt_path != '')
            {            
                $legacy_langfile = 'lang.'.str_replace('_lang.', '.', $langfile);
                array_unshift($paths, $alt_path.'language/'.$deft_lang.'/'.$legacy_langfile);
                array_unshift($paths, $alt_path.'language/'.$idiom.'/'.$legacy_langfile);
                
                array_unshift($paths, $alt_path.'language/'.$deft_lang.'/'.$langfile);
                array_unshift($paths, $alt_path.'language/'.$idiom.'/'.$langfile);
            }
  • #5 / Aug 06, 2010 5:16pm

    Sue Crocker

    26054 posts

    litzinger, thanks for posting a fix. Our apologies for this issue cropping up.

  • #6 / Aug 06, 2010 5:49pm

    Derek Jones

    7561 posts

    If you downloaded a build that experienced this problem, please re-download.  Sorry for the few minutes with the glitch.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases