Back to index

php5  5.3.10
lcmess.inc
Go to the documentation of this file.
00001 <?php
00002 
00003 function _skip_lc_messages($lc_messages = 'C')
00004 {
00005        if (!_set_lc_messages($lc_messages)) {
00006               die("skip Cannot set LC_MESSAGES to '{$lc_messages}'\n");
00007        }
00008 }
00009 
00010 function _set_lc_messages($lc_messages = 'C')
00011 {
00012        if (pg_result(pg_query("SHOW LC_MESSAGES"), 0, 0) != $lc_messages) {
00013               if (!@pg_exec("SET LC_MESSAGES='{$lc_messages}'")) {
00014                      return false;
00015               }
00016        }
00017 
00018        return true;
00019 }
00020 
00021 ?>