add_translation_source — Add an translation source directory.¶
Summary¶
- add_translation_source($dir)¶
Add an translation source directory.
The directory’s contents should be .mo files following the naming scheme of Omeka’s application/languages directory. If a .mo for the current locale exists, the translations will be loaded.
Parameters: - $dir (string) – Directory from which to load translations.
Usage¶
Examples¶
<?php
function exhibit_builder_initialize()
{
add_translation_source(dirname(__FILE__) . '/languages');
}
?>