Aspen:Languages

From Aspen Documentation

Websites and applications often need the ability to support multiple language files, so that the text may be replaced depending on what language has been chosen.

Language files are not required in Aspen, but are enabled by default.

Language files are simply php files that assign strings of text to a variable. That variable is then used from within your templates or application.

The language files in Aspen are detected automatically if enabled. They must reside within the language directory within your module.

Language variables are arrays. The first key is the name of the interface they apply to and the second key is the term identifier that you've chosen. This term ID will be used when calling this text block from the application.

$lang['admin']['title'] = 'Welcome!';

You may then call that term from within your application by using:

<?php print $this->text('title'); ?>

The specific language file loaded must have a filename that matches the location code that's currently set. By default this is en_US

$config['language'] = 'en_US';