fix: add missing cron server content translations and remove LANG_version conflict
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/b4c3d1e1-8f85-4091-888c-8a36d0024dca Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
fa7b969ada
commit
dd44a26d95
3 changed files with 24 additions and 4 deletions
|
|
@ -46,7 +46,7 @@ define('LANG_plugin', "Plugins / Mods");
|
|||
define('LANG_mappack', "Map Packs");
|
||||
define('LANG_config', "Config Packs");
|
||||
// Additional category labels (for future content types already defined in server_content_categories.php)
|
||||
define('LANG_version', "Server Versions");
|
||||
define('LANG_server_content_version', "Server Versions");
|
||||
define('LANG_modpack', "Modpacks");
|
||||
define('LANG_workshop', "Workshop Content");
|
||||
define('LANG_script', "Scripted Installer");
|
||||
|
|
|
|||
|
|
@ -45,4 +45,18 @@ define('LANG_cron_no_servers_tied_to_account', "There are no servers directly as
|
|||
define('LANG_cron_admin_link_display_text', "Cron Administration (All Servers)");
|
||||
define('LANG_cron_admin_no_ogp_servers_to_display', "There aren't any servers currently configured in OGP.");
|
||||
define('LANG_bad_inputs', "Scheduled time contains invalid characters.");
|
||||
define('LANG_server_content_check_updates', 'Check Server Content Updates');
|
||||
define('LANG_server_content_check_workshop_updates', 'Check Workshop Updates');
|
||||
define('LANG_server_content_install_updates', 'Install Server Content Updates');
|
||||
define('LANG_server_content_install_updates_if_stopped', 'Install Updates If Server Is Stopped');
|
||||
define('LANG_server_content_install_updates_next_restart', 'Install Updates On Next Restart');
|
||||
define('LANG_server_content_install_updates_now', 'Install Updates Now');
|
||||
define('LANG_server_content_install_updates_and_restart', 'Install Updates And Restart');
|
||||
define('LANG_server_content_notify_updates_only', 'Notify Updates Only');
|
||||
define('LANG_server_content_update_all', 'Update All Server Content');
|
||||
define('LANG_server_content_validate_files', 'Validate Server Content Files');
|
||||
define('LANG_server_content_backup_before_update', 'Backup Before Server Content Update');
|
||||
define('LANG_safe_restart', 'Safe Restart');
|
||||
define('LANG_workshop_content', 'Workshop Content');
|
||||
define('LANG_server_content', 'Server Content');
|
||||
?>
|
||||
|
|
@ -376,7 +376,13 @@ function exec_ogp_module() {
|
|||
}
|
||||
|
||||
?>
|
||||
<h2><?php echo htmlentities($home_info['home_name'])." ".get_lang($addon_type) ;?></h2>
|
||||
<?php
|
||||
$addon_type_lang_key = "server_content_".$addon_type;
|
||||
$addon_type_lang = get_lang($addon_type_lang_key);
|
||||
if($addon_type_lang === "_".$addon_type_lang_key."_")
|
||||
$addon_type_lang = get_lang($addon_type);
|
||||
?>
|
||||
<h2><?php echo htmlentities($home_info['home_name'])." ".$addon_type_lang ;?></h2>
|
||||
<table class='center'>
|
||||
<form method='get'>
|
||||
<input type='hidden' name='m' value='addonsmanager' />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue