+ // Is the base path set?
+ if (empty($languageBasePath)) {
+ // No, then attempt "auto-dection":
+ // 1) Get application
+ $applicationInstance = Registry::getRegistry()->getInstance('app');
+
+ // 2) Try to build it
+ $languageBasePath = sprintf('%sapplication/%s/language/',
+ $langInstance->getConfigInstance()->getConfigEntry('base_path'),
+ $applicationInstance->getAppShortName()
+ );
+ } // END - if
+