X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FI18n.php;h=ca7706cd9d5caf7f5c428b7b35fc1df71ebef29f;hb=b132aadd969a00ad06b7058ac86251923f0a8c65;hp=0e07b06b95951ad746ee894e0e2cfbe3991c542f;hpb=a49de1287dbe748374abc81f31b6e5535914cc67;p=civicrm-core.git diff --git a/CRM/Core/I18n.php b/CRM/Core/I18n.php index 0e07b06b95..ca7706cd9d 100644 --- a/CRM/Core/I18n.php +++ b/CRM/Core/I18n.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2016 | + | Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2016 + * @copyright CiviCRM LLC (c) 2004-2017 */ class CRM_Core_I18n { @@ -97,7 +97,11 @@ class CRM_Core_I18n { return $this->_nativegettext; } - + /** + * Set native locale for getText. + * + * @param string $locale + */ protected function setNativeGettextLocale($locale) { $locale .= '.utf8'; @@ -117,6 +121,11 @@ class CRM_Core_I18n { } + /** + * Set getText locale. + * + * @param string $locale + */ protected function setPhpGettextLocale($locale) { // we support both the old file hierarchy format and the new: @@ -138,7 +147,6 @@ class CRM_Core_I18n { } - /** * Return languages available in this instance of CiviCRM. * @@ -221,6 +229,11 @@ class CRM_Core_I18n { return strtr($str, $tr); } + /** + * Get the directory for l10n resources. + * + * @return string + */ public static function getResourceDir() { static $dir = NULL; if ($dir === NULL) {