diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 03:00:32 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 03:38:46 -0500 |
commit | ef4d3660605efc7f1328d4533b0f4bfb6c1107e2 (patch) | |
tree | e4377fb129a899e65aaaf421f8c97098aecaedd5 /lib/i18n.php | |
parent | 8a750c3e875d590d351c3042570a134fcdf03e5d (diff) | |
download | ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.tar.gz ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.tar.bz2 ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.zip |
Cosmetics: death to tabs
The refactoring I've been doing has reminded me of my strong preference
for spaces, and I feel inclined to impose my will on the tree.
Diffstat (limited to 'lib/i18n.php')
-rw-r--r-- | lib/i18n.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/i18n.php b/lib/i18n.php index 09984624..e222f7e0 100644 --- a/lib/i18n.php +++ b/lib/i18n.php @@ -1,5 +1,5 @@ <?php -/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */ +/* vim:set softtabstop=4 shiftwidth=4 expandtab: */ /** * * LICENSE: GNU General Public License, version 2 (GPLv2) @@ -27,26 +27,26 @@ * @return void */ function load_gettext() { - $lang = Config::get('lang'); - $charset = Config::get('site_charset') ?: 'UTF-8'; - $locale = $lang . '.' . $charset; - debug_event('i18n', 'Setting locale to ' . $locale, 5); - T_setlocale(LC_MESSAGES, $locale); - /* Bind the Text Domain */ - T_bindtextdomain('messages', Config::get('prefix') . "/locale/"); - T_bind_textdomain_codeset('messages', $charset); - T_textdomain('messages'); - debug_event('i18n', 'gettext is ' . (locale_emulation() ? 'emulated' : 'native'), 5); + $lang = Config::get('lang'); + $charset = Config::get('site_charset') ?: 'UTF-8'; + $locale = $lang . '.' . $charset; + debug_event('i18n', 'Setting locale to ' . $locale, 5); + T_setlocale(LC_MESSAGES, $locale); + /* Bind the Text Domain */ + T_bindtextdomain('messages', Config::get('prefix') . "/locale/"); + T_bind_textdomain_codeset('messages', $charset); + T_textdomain('messages'); + debug_event('i18n', 'gettext is ' . (locale_emulation() ? 'emulated' : 'native'), 5); } // load_gettext /** * gettext_noop * - * @param string $string - * @return string + * @param string $string + * @return string */ function gettext_noop($string) { - return $string; + return $string; } ?> |