Revert "Complete rebrand from Open Game Panel (OGP) to GameServer Panel (GSP)"

This commit is contained in:
Frank Harris 2025-09-08 12:42:34 -05:00 committed by GitHub
parent 02c94766c6
commit deee7d6ac5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
308 changed files with 1412 additions and 1412 deletions

View file

@ -17,11 +17,11 @@ function add_lang_module($lang_module)
{
global $lang_modules;
array_push($lang_modules,$lang_module);
// Need to reload langs if module is added after the first gspLang call.
gspLang();
// Need to reload langs if module is added after the first ogpLang call.
ogpLang();
}
function gspLang()
function ogpLang()
{
global $lang_modules;
$locale_files = makefilelist("lang/", ".|..|.svn", true, "folders");
@ -68,15 +68,15 @@ function gspLang()
function get_lang($lang_index)
{
global $GSPLangPre;
global $OGPLangPre;
if (defined($lang_index))
{
return constant($lang_index);
}
if(!startsWith($lang_index, $GSPLangPre)){
$newLangIndex = $GSPLangPre . $lang_index;
if(!startsWith($lang_index, $OGPLangPre)){
$newLangIndex = $OGPLangPre . $lang_index;
if (defined($newLangIndex))
{
return constant($newLangIndex);
@ -89,7 +89,7 @@ function get_lang($lang_index)
function get_lang_f()
{
global $GSPLangPre;
global $OGPLangPre;
$args = func_get_args();
$lang_index = array_shift($args);
@ -98,8 +98,8 @@ function get_lang_f()
return vsprintf(constant($lang_index),$args);
}
if(!startsWith($lang_index, $GSPLangPre)){
$newLangIndex = $GSPLangPre . $lang_index;
if(!startsWith($lang_index, $OGPLangPre)){
$newLangIndex = $OGPLangPre . $lang_index;
if (defined($newLangIndex))
{
return vsprintf(constant($newLangIndex),$args);