forked from kerphi/phpfreechat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
21 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* pfccontainer.class.php | ||
* | ||
* Copyright � 2006 Stephane Gully <[email protected]> | ||
* Copyright © 2006 Stephane Gully <[email protected]> | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
|
@@ -36,7 +36,7 @@ class pfcContainer extends pfcContainerInterface | |
var $_usememorycache = true; | ||
|
||
|
||
function &Instance($type = 'File', $usememorycache = true) | ||
static function &Instance($type = 'File', $usememorycache = true) | ||
{ | ||
static $i; | ||
if (!isset($i)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* pfci18n.class.php | ||
* | ||
* Copyright © 2006 Stephane Gully <[email protected]> | ||
* Copyright © 2006 Stephane Gully <[email protected]> | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
|
@@ -51,7 +51,7 @@ function _pfc2() | |
|
||
class pfcI18N | ||
{ | ||
function Init($language,$type="main") | ||
static function Init($language,$type="main") | ||
{ | ||
if ($type=="admin") | ||
if (!in_array($language, pfcI18N::GetAcceptedLanguage("admin"))) | ||
|
@@ -73,7 +73,7 @@ function Init($language,$type="main") | |
/** | ||
* Switch output encoding in order to write the right characteres in the web page | ||
*/ | ||
function SwitchOutputEncoding($oe = "") | ||
static function SwitchOutputEncoding($oe = "") | ||
{ | ||
if ($oe == "") | ||
{ | ||
|
@@ -92,7 +92,7 @@ function SwitchOutputEncoding($oe = "") | |
/** | ||
* Return the default language : "en" | ||
*/ | ||
function GetDefaultLanguage() | ||
static function GetDefaultLanguage() | ||
{ | ||
return "en_US"; | ||
} | ||
|
@@ -102,15 +102,15 @@ function GetDefaultLanguage() | |
* (content of the i18n directory) | ||
* fix for the slovak language UTAN | ||
*/ | ||
function GetAcceptedLanguage($type="main") | ||
static function GetAcceptedLanguage($type="main") | ||
{ | ||
return /*<GetAcceptedLanguage>*/array('nl_NL','ko_KR','nl_BE','tr_TR','pt_PT','en_US','eo','hr_HR','vi_VN','es_ES','zh_TW','nn_NO','ru_RU','id_ID','hu_HU','th_TH','hy_AM','oc_FR','da_DK','de_DE-formal','uk_RO','nb_NO','fr_FR','it_IT','sv_SE','uk_UA','sr_CS','ar_LB','bg_BG','pt_BR','ba_BA','bn_BD','el_GR','zh_CN','gl_ES','pl_PL','de_DE-informal','ja_JP','sk_SK');/*</GetAcceptedLanguage>*/ | ||
} | ||
|
||
/** | ||
* Parse the source-code and update the i18n ressources files | ||
*/ | ||
function UpdateMessageRessources() | ||
static function UpdateMessageRessources() | ||
{ | ||
// first of all, update the GetAcceptedLanguage list | ||
$i18n_basepath = dirname(__FILE__).'/../i18n'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters