diff --git a/app/services/app_languages.php b/app/services/app_languages.php new file mode 100644 index 0000000000..895558ced7 --- /dev/null +++ b/app/services/app_languages.php @@ -0,0 +1,46 @@ + + Portions created by the Initial Developer are Copyright (C) 2008-2012 + the Initial Developer. All Rights Reserved. + + Contributor(s): + Mark J Crane + James Rose +*/ + $text['message-delete']['en-us'] = 'Delete Complete'; + $text['button-back']['en-us'] = 'Back'; + $text['button-save']['en-us'] = 'Save'; + $text['title']['en-us'] = 'Service Add'; + + $text['description']['en-us'] = 'Shows a list of processes and provides ability to start and stop them.'; + $text['label-name']['en-us'] = 'Name:'; + $text['description-name']['en-us'] = 'Enter the service name.'; + $text['label-type']['en-us'] = 'Type:'; + $text['description-type']['en-us'] = 'Select the service type.'; + $text['label-data']['en-us'] = 'Data:'; + $text['description-data']['en-us'] = 'Enter the service data.'; + $text['label-start']['en-us'] = 'Start Command:'; + $text['description-start']['en-us'] = 'Enter the command to start the service.'; + $text['label-stop']['en-us'] = 'Stop Comand'; + $text['description-stop']['en-us'] = 'Enter the command to stop the service.'; + $text['label-description']['en-us'] = 'Description:'; + $text['description-description']['en-us'] = 'Enter the service description.'; + +?> \ No newline at end of file diff --git a/app/services/service_delete.php b/app/services/service_delete.php index bc2b189c94..e172ef1653 100644 --- a/app/services/service_delete.php +++ b/app/services/service_delete.php @@ -51,7 +51,7 @@ if (count($_GET)>0) { require_once "includes/header.php"; echo "\n"; echo "
\n"; - echo "Delete Complete\n"; + echo $text['message-delete']."\n"; echo "
\n"; require_once "includes/footer.php"; return; diff --git a/app/services/service_edit.php b/app/services/service_edit.php index 0b92b47056..8e74434542 100644 --- a/app/services/service_edit.php +++ b/app/services/service_edit.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ require_once "root.php"; require_once "includes/require.php"; @@ -34,6 +35,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + //action add or update if (isset($_REQUEST["id"])) { $action = "update"; @@ -179,33 +186,33 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; if ($action == "add") { - echo "\n"; + echo "\n"; } if ($action == "update") { echo "\n"; } - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo " \n"; @@ -277,7 +284,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if ($action == "update") { echo " \n"; } - echo " \n"; + echo " \n"; echo " \n"; echo " "; echo "
Service Add".$text['title']."Service Edit
\n"; - echo "Shows a list of processes and provides ability to start and stop them.

\n"; + echo $text['description']."

\n"; echo "
\n"; - echo " Name:\n"; + echo " ".$text['label-name']."\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the service name.\n"; + echo $text['description-name']."\n"; echo "
\n"; - echo " Type:\n"; + echo " ".$text['label-type']."\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Select the service type.\n"; + echo $text['description-type']."\n"; echo "
\n"; - echo " Data:\n"; + echo " ".$text['label-data']."\n"; echo "\n"; echo " \n"; //echo " \n"; echo "
\n"; - echo "Enter the service data.\n"; + echo $text['description-data']."\n"; echo "
\n"; - echo " Start Command:\n"; + echo " ".$text['label-start']."\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the command to start the service.\n"; + echo $text['description-start']."\n"; echo "
\n"; - echo " Stop Command:\n"; + echo " ".$text['label-stop']."\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the command to stop the service.\n"; + echo $text['description-stop']."\n"; echo "
\n"; - echo " Description:\n"; + echo " ".$text['label-description']."\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the service description.\n"; + echo $text['description-description']."\n"; echo "
";