<?php

// Set allowed locales
Translatable::set_allowed_locales(array('de_DE', 'en_US'));

// Setting the locale
i18n::set_locale('de_DE');
Translatable::set_current_locale('de_DE');

<?php

// Setting the locale
i18n::set_locale('de_DE');

// Set allowed locales
if (class_exists('Translatable')) {
	Translatable::set_allowed_locales(array('de_DE', 'en_US'));
	Translatable::set_current_locale('de_DE');
}

Check if translatable module is available in config file
Check if translatable module is available in config file
