Wiki ⇒ Dragonfly public view ⇒ Modules ⇒ Adding language to your module ⇒ CPG Dragonfly™ CMS
WikiDragonfly public viewModules ⇒ Adding language to your module

6.2. 6: Adding language to your module Parent

A very basic lesson in language files

Let's say your module is called My_Module.

Create a php file called my_module.php - note the lower case!

Add this file to the appropriate language directory like,

For each translated version, you will add the same filename to each of the language directories.

The simple presence of that language file will mean that your module will pick it up automatically.

However, what if you need some of those language defines for a block?
Simple, just add this line near the top of your block,

Created: Wednesday, August 15, 2007 (15:44:16) by Phoenix