• 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

R

ragtek

Guest
#1
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/ ;)