getEnabledTranslationPaths() public method

Get the paths to the current translation files.
public getEnabledTranslationPaths ( string $locale ) : array
$locale string The locale to get the translation paths for.
return array Returns an array of paths.
Exemplo n.º 1
0
 /**
  * Gets the locale sources for a given locale.
  *
  * @param string $locale The name of the locale.
  * @return array Returns an array of paths to the translations for the locale.
  * @deprecated Use the {@link AddonManager} for this.
  */
 public function getLocaleSources($locale)
 {
     deprecated('Gdn_PluginManager->getLocaleSources()', 'AddonManager->getEnabledLocaleSources()');
     $result = $this->addonManager->getEnabledTranslationPaths($locale);
     return $result;
 }