Hi Folks,

is just stumbled upon a problem while trying to set the template language for a $smary-fetch()-action. The template itself only contains an oxcontent-tag and should load the content in the given language (for the given IDENT).

Following code works until 4.5 so it has something todo with the multilang tables. But since there are no new methods given for language handling it could also be a bug?

$oSmarty = oxUtilsView::getInstance()->getSmarty();
$oSmarty->assign( "contentid", $dynamicIdent );

// Set template language for smarty fetch
$oLang = oxLang::getInstance();
$oLang->setTplLanguage( $myNewLanguage );
$oLang->setBaseLanguage( $myNewLanguage );

// Get message
$template_path = oxConfig::getInstance()->getTemplatePath( 'template.tpl', false );
$message = $oSmarty->fetch( $template_path );

The result $message always contains text in main-shop language (german im my case),
no matter what language-id is given.

Mit freundlichen Grüßen, kind regards,

Benedikt Schwinkendorf
Diplom Informatiker (FH)

Schwinkendorf IT Systeme
Geschäftsinhaber

Am Baumgarten 13
74199 Untergruppenbach/Unterheinriet

Tel.:  +49 (0) 7130 / 404 56 60
Mobil: +49 (0) 176  / 212 00 844
Fax:   +49 (0) 322  / 237 337 09

[email protected]
http://www.schwinkendorf.info


Am 27.01.2012 17:16, schrieb Jungclaus, Tobias:

Hi Oxid Devs,

I just updated EE from the SVN.

As you will know, the rev41757 has updated all php and js files with a new copyright year. (happy 2012, btw ;-) )

That would be no problem if there was a pure copyright-update-revision.

However, in rev41757 there are also many bugfixes and changes in some classes, that are nearly impossible to find between all the trivial 2012's changes. (if you don't want to open several hundred files and look for changes).

Please, for the next year:

Make a pure copyright-update revision with only copyright updates and release all "real" changes before and/or after that.

Thank you for considering.

Tobias Jungclaus

Match - Market Access Services GmbH & Co. KG
Gut Keferloh 1A
85630 Grasbrunn/Keferloh
Tel.: +49 (89) 456 920 69
Fax: +49 (89) 456 920 37
E-Mail: [email protected] <mailto:[email protected]>



_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to