1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed ADd-on Export => Multilang support

Discussion in 'Resolved Bug Reports' started by ragtek, Dec 1, 2010.

  1. ragtek

    ragtek Guest

    I have installed 3 languages (german, english, croatian)

    Always when i want to export a add-on, the phrases are "pissed" up.
    Some are english, some german and some croatian and i don't know why.

    For me, it's not a problem, because i'm using a own method for the export, but IMHO this is a big problem for the add-on developers if they want to support different langueages;)

    PHP:
        /**overwrite original method *//
        public function 
    getMasterPhrasesInAddOn($addOnId$langId)
        {
            return 
    $this->fetchAllKeyed('
                SELECT *
                FROM xf_phrase
                WHERE addon_id = ?
                AND language_id = $langId
                ORDER BY title
            '
    'title'$addOnId);
        }
    [/php]
    Also pls think about http://xenforo.com/community/conversations/twitterpost-yesterday.2236/ ;)
     
  2. Mike

    Mike XenForo Developer Staff Member

    This is fixed now - the language_id was supposed to be forced to 0, as the phpDoc suggests. :)

    Also, the next release has some additional export options, including limiting to a particular add-on (which means that when importing, it only replaces phrases in that add-on).
     

Share This Page