Inside my view file and it does absolutely nothing than printing 'news' to the screen. Even when i have set the app()->sourcelanguage to 'en' and the app()->language to 'nl'. The language file is stored in: "/modules/news/messages/nl/articles.php".

I can call the module.. it displays news.. but the translation doesnt work. (i'm sorry i do post this inside this topic because i'm having exact the same problem.

The "/modules/news/messages/en/articles.php" file:

<?php
return array(
'news' => 'news (english)'
);

The "/modules/news/messages/nl/articles.php" file:

<?php
return array(
'news' => 'nieuws'
);

It prints "news".. so it doesnt translate, otherwise, if i misconfigured something it should print "news (english)".

----------------------

I figured out my self. I had to put the Messages folder inside the /modules/news map. not in a application map, now it's working

Hmm, that's a more tricky one, Nique. I'm not really sure how to do that in a module, If I try your way (which is also in the guide, I noticed) and call `yiic message`, the translation files are placed in the protected/messages directory instead of protected/modules/yourmodule/messages. That may be your workaround for now (just edit the files in that directory, Yii will probably pick them up), but I too like to know how to actually put the generated message files in the correct module directory..

I know what you mean mlindhout, but i want to keep the source language of my application English. So i create a dutch translation set. I want to keep all options open (for the future). If developpers from other countries are going to edit the source files, they dont need to translate the word: aanmelden and find out what it means in english. English is the worlds main langauge. Thats why i want the sourcelanguage to be english