contao/test — Issue #1003: {{env::page_language}} insert tag
Author: importer
Created: 2011-11-29 07:10:44+00:00
State: open
Labels: Feature, framework

Hi Leo,

I know that this request has often been made (I've already done : http://www.contao.org/forum/message/25142.html)

It's easy to use language; ?> into a template, but not easy into a content element (like HTML content) or a module.

eg : I want to change a flash module source based on the page language. Currently I can create a module for each language, and a layout for each language... not so easy to maintain... and when I dd a new language, I must do the same.

or, I can use {{iflng::LN}} insert tag on flash module external source like that :

```
{{env::path}}tl_files/themes/myFlash/banner{{iflng::en}}_en{{iflng}}{{iflng::it}}_it{{iflng}}{{iflng::fr}}_fr{{iflng}}.swf
```

but when I add a new language I must think to add this new one. Later it's hard to remember where we must change something :)
...

I hope that my request might interest other people.

--- _Originally created by cyril on September 11th, 2009, at 11:47am (ID 1003)_