ソースを参照

start of translation to portuguese from Portugal (pt-pt)

Nuno Miguel Reis 13 年 前
コミット
02758ced9e
3 ファイル変更44 行追加8 行削除
  1. 33 0
      app_languages.php
  2. 10 7
      index2.php
  3. 1 1
      install.php

+ 33 - 0
app_languages.php

@@ -0,0 +1,33 @@
+<?php
+
+	$content['title-table']['en-us'] = 'User Information';
+	$content['title-table']['pt-pt'] = 'Informação do Utilizador';
+        
+        $content['label-name']['en-us'] = 'User Name';
+	$content['label-name']['pt-pt'] = 'Nome do Utilizador';
+        
+        $content['label-voicemail']['en-us'] = 'Voicemail';
+	$content['label-voicemail']['pt-pt'] = 'Correio de Voz';
+        
+        $content['label-view-messages']['en-us'] = 'View Messages';
+	$content['label-view-messages']['pt-pt'] = 'Ver Mensagens';
+               
+        $content_calls['table-extension']['en-us'] = 'Extension';
+	$content_calls['table-extension']['pt-pt'] = 'Extensão';
+        
+        $content_calls['table-tools']['en-us'] = 'Tools';
+	$content_calls['table-tools']['pt-pt'] = 'Ferramentas';
+        
+        $content_calls['table-description']['en-us'] = 'Description';
+	$content_calls['table-description']['pt-pt'] = 'Descrição';
+        
+        $content_calls['lable-callforward']['en-us'] = 'Call Forward';
+	$content_calls['lable-callforward']['pt-pt'] = 'Encaminhamento de Chamada';
+        
+        $content_calls['lable-followme']['en-us'] = 'Follow Me';
+	$content_calls['lable-followme']['pt-pt'] = 'Segue-me';
+        
+        $content_calls['lable-dnd']['en-us'] = 'Do Not Disturb';
+	$content_calls['lable-dnd']['pt-pt'] = 'Não Perturbar';
+
+?>

+ 10 - 7
index2.php

@@ -31,10 +31,15 @@ if (!file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php"))
 require_once "includes/require.php";
 require_once "includes/checkauth.php";
 require_once "includes/header.php";
+require_once "app_languages.php";
 
 echo "<br />";
 echo "<br />";
 
+        foreach($content as $key => $value) {
+		$content[$key] = $value[$_SESSION['domain']['language']['code']];
+	}
+
 //information
 	//echo "<table width=\"100%\" border=\"0\" cellpadding=\"7\" cellspacing=\"0\">\n";
 	//echo "  <tr>\n";
@@ -47,24 +52,22 @@ echo "<br />";
 
 	echo "<table width=\"100%\" border=\"0\" cellpadding=\"7\" cellspacing=\"0\">\n";
 	echo "<tr>\n";
-	echo "	<th class='th' colspan='2' align='left'>User Information&nbsp;</th>\n";
+	echo "	<th class='th' colspan='2' align='left'>".$content['title-table']."&nbsp;</th>\n";
 	echo "</tr>\n";
-
 	echo "<tr>\n";
 	echo "	<td width='20%' class=\"vncell\" style='text-align: left;'>\n";
-	echo "		UserName: \n";
+	echo "		".$content['label-name'].": \n";
 	echo "	</td>\n";
 	echo "	<td class=\"row_style1\">\n";
 	echo "		<a href='".PROJECT_PATH."/app/users/usersupdate.php'>".$_SESSION["username"]."</a> \n";
 	echo "	</td>\n";
 	echo "</tr>\n";
-
 	echo "<tr>\n";
 	echo "	<td width='20%' class=\"vncell\" style='text-align: left;'>\n";
-	echo "		Voicemail: \n";
+	echo "		".$content['label-voicemail'].": \n";
 	echo "	</td>\n";
 	echo "	<td class=\"row_style1\">\n";
-	echo "		<a href='".PROJECT_PATH."/app/voicemail_msgs/v_voicemail_msgs.php'>View Messages</a> \n";
+	echo "		<a href='".PROJECT_PATH."/app/voicemail_msgs/v_voicemail_msgs.php'>".$content['label-view-messages']."</a> \n";
 	echo "	</td>\n";
 	echo "</tr>\n";
 	echo "</table>\n";
@@ -90,4 +93,4 @@ echo "<br />";
 
 //show the footer
 	require_once "includes/footer.php";
-?>
+?>

+ 1 - 1
install.php

@@ -1755,4 +1755,4 @@ if ($_POST["install_step"] == "3" && count($_POST)>0 && strlen($_POST["persistfo
 	echo $output;
 	unset($output);
 
-?>
+?>