source/Core/Module/ModuleTranslationPathFinder.php
public function findTranslationPath($language, $admin, $modulePath)
    {
        $fullPath = $this->getModulesDirectory() . $modulePath;

        if ($this->hasUppercaseApplicationDirectory($fullPath)) {
            $fullPath .= '/Application';
        } else {
            if ($this->hasLowercaseApplicationDirectory($fullPath)) {
                $fullPath .= '/application';
            }
        }
        $fullPath .= ($admin) ? '/views/admin/' : '/translations/';
        $fullPath .= $language;

        return $fullPath;
    }
public function findTranslationPath($language, $admin, $modulePath)
    {
        $fullPath = $this->getModulesDirectory() . $modulePath;

        if ($this->hasUppercaseApplicationDirectory($fullPath)) {
            $fullPath .= '/Application';
        } else {
            if ($this->hasLowercaseApplicationDirectory($fullPath)) {
                $fullPath .= '/application';
            }
        }
        $fullPath .= ($admin) ? '/views/admin/' : '/translations/';
        $fullPath .= $language;

        return $fullPath;
    }
public function findTranslationPath ( $ language , $ admin , $ modulePath ) { $ fullPath = $ this -> getModulesDirectory ( ) . $ modulePath ; if ( $ this -> hasUppercaseApplicationDirectory ( $ fullPath ) ) { $ fullPath .= '/Application' ; } else { if ( $ this -> hasLowercaseApplicationDirectory ( $ fullPath ) ) { $ fullPath .= '/application' ; } } $ fullPath .= ( $ admin ) ? '/views/admin/' : '/translations/' ; $ fullPath .= $ language ; return $ fullPath ; }
Find the full path of the translation in the given module.

@param string $language   The language short form. (e.g. 'de')
@param bool   $admin      Are we searching for the admin files?
@param string $modulePath The relative (to the module directory) path to the module, in which we want to find the translations file.

@return string
Find the full path of the translation in the given module .