summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-03-06 11:33:06 +0100
committerAndrew Dolgov <[email protected]>2007-03-06 11:33:06 +0100
commitaba609e088f311093d329d4d96f38673e6a9540c (patch)
tree9cf62ddb4c9cfa26ec0197d29531974f458371d8 /functions.php
parent3fb00ee0a242b4b5109434e43d2d44335968f509 (diff)
move function startup_gettext
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/functions.php b/functions.php
index ba92b2ee4..f05151369 100644
--- a/functions.php
+++ b/functions.php
@@ -11,6 +11,19 @@
require_once 'config.php';
+ function startup_gettext() {
+
+ # Get locale from Accept-Language header
+ $lang = al2gt(array("en_US", "ru_RU"), "text/html");
+
+ if ($lang) {
+ _setlocale(LC_MESSAGES, $lang);
+ _bindtextdomain("messages", "locale");
+ _textdomain("messages");
+ _bind_textdomain_codeset("messages", "UTF-8");
+ }
+ }
+
if (ENABLE_TRANSLATIONS == true) {
startup_gettext();
}
@@ -3203,19 +3216,6 @@
return print format_warning($msg);
}
- function startup_gettext() {
-
- # Get locale from Accept-Language header
- $lang = al2gt(array("en_US", "ru_RU"), "text/html");
-
- if ($lang) {
- _setlocale(LC_MESSAGES, $lang);
- _bindtextdomain("messages", "locale");
- _textdomain("messages");
- _bind_textdomain_codeset("messages", "UTF-8");
- }
- }
-
function T_sprintf() {
$args = func_get_args();
return vsprintf(__(array_shift($args)), $args);