Changeset 301
- Timestamp:
- 04/05/05 19:48:14 (4 years ago)
- Files:
-
- trunk/AMP/amp_conf/htdocs/admin/common/script.js (modified) (1 diff)
- trunk/AMP/amp_conf/htdocs/admin/config.php (modified) (4 diffs)
- trunk/AMP/amp_conf/htdocs/admin/footer.php (modified) (1 diff)
- trunk/AMP/amp_conf/htdocs/admin/header.php (modified) (2 diffs)
- trunk/AMP/amp_conf/htdocs/admin/i18n (added)
- trunk/AMP/amp_conf/htdocs/admin/i18n/it_IT (added)
- trunk/AMP/amp_conf/htdocs/admin/i18n/it_IT/LC_MESSAGES (added)
- trunk/AMP/amp_conf/htdocs/admin/i18n/it_IT/LC_MESSAGES/amp.mo (added)
- trunk/AMP/amp_conf/htdocs/admin/i18n/it_IT/LC_MESSAGES/amp.po (added)
- trunk/AMP/amp_conf/htdocs/admin/i18n/readme.txt (added)
- trunk/AMP/amp_conf/htdocs/admin/index.php (modified) (2 diffs)
- trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/common/script.js (modified) (1 diff)
- trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/config.php (modified) (4 diffs)
- trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/footer.php (modified) (1 diff)
- trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/header.php (modified) (2 diffs)
- trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/i18n (added)
- trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/i18n/it_IT (added)
- trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/i18n/it_IT/LC_MESSAGES (added)
- trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/i18n/it_IT/LC_MESSAGES/amp.mo (added)
- trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/i18n/it_IT/LC_MESSAGES/amp.po (added)
- trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/i18n/readme.txt (added)
- trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/AMP/amp_conf/htdocs/admin/common/script.js
r298 r301 325 325 } 326 326 } 327 328 function changeLang(lang) { 329 document.cookie='lang='+lang; 330 window.location.reload(); 331 } 332 trunk/AMP/amp_conf/htdocs/admin/config.php
r199 r301 83 83 // setup menu 84 84 $amp_sections = array( 85 9=> "Incoming Calls",86 3=> "Extensions",87 4=> "Ring Groups",88 11=> "Queues",89 2=> "Digital Receptionist",90 6=> "Trunks",91 8=> "Outbound Routing",92 7=> "DID Routes",93 1=> "On Hold Music",94 12=> "System Recordings",95 5=> "General Settings",96 99=> "Apply Changes Bar"85 9=>_("Incoming Calls"), 86 3=>_("Extensions"), 87 4=>_("Ring Groups"), 88 11=>_("Queues"), 89 2=>_("Digital Receptionist"), 90 6=>_("Trunks"), 91 8=>_("Outbound Routing"), 92 7=>_("DID Routes"), 93 1=>_("On Hold Music"), 94 12=>_("System Recordings"), 95 5=>_("General Settings"), 96 99=>_("Apply Changes Bar") 97 97 ); 98 98 … … 134 134 switch($display) { 135 135 default: 136 echo "<p> Welcome to AMP</p>";136 echo "<p>"._("Welcome to AMP")."</p>"; 137 137 echo str_repeat("<br />", 12); 138 138 break; 139 139 case 'noaccess': 140 echo "<h2> Not found</h2>";141 echo "<p> The section you requested does not exist or you do not have access to it.</p>";140 echo "<h2>"._("Not found")."</h2>"; 141 echo "<p>"._("The section you requested does not exist or you do not have access to it.")."</p>"; 142 142 echo str_repeat("<br />", 10); 143 143 break; 144 144 case '9': 145 echo "<h2> Incoming Calls</h2>";145 echo "<h2>"._("Incoming Calls")."</h2>"; 146 146 include 'incoming.php'; 147 147 break; … … 150 150 break; 151 151 case '2': 152 echo "<h2> Digital Receptionist</h2>";152 echo "<h2>"._("Digital Receptionist")."</h2>"; 153 153 // The Digital Receptionist code is a rat's nest. If you are planning on making significant modifications, just re-write from scratch. 154 154 //if menu_id is being empty, or if we are requesting delete, just use ivr_action.php … … 168 168 break; 169 169 case '5': 170 echo "<h2> General Settings</h2>";170 echo "<h2>"._("General Settings")."</h2>"; 171 171 include 'general.php'; 172 172 break; trunk/AMP/amp_conf/htdocs/admin/footer.php
r176 r301 71 71 if ($need_reload[0] == 'true') { 72 72 ?> 73 <div class="inyourface"><a href="<?php echo $_SERVER["PHP_SELF"]?>?display=<?php echo $_REQUEST['display'] ?>&clk_reload=true"> You have made changes - when finished, click here to APPLY them</a></div>73 <div class="inyourface"><a href="<?php echo $_SERVER["PHP_SELF"]?>?display=<?php echo $_REQUEST['display'] ?>&clk_reload=true"><?php echo _("You have made changes - when finished, click here to APPLY them") ?></a></div> 74 74 <?php 75 75 } trunk/AMP/amp_conf/htdocs/admin/header.php
r196 r301 36 36 </head> 37 37 38 <?php 39 setlocale(LC_MESSAGES, $_COOKIE['lang'] ? $_COOKIE['lang']:'en_US'); 40 bindtextdomain('amp','./i18n'); 41 textdomain('amp'); 42 ?> 43 38 44 <body> 39 45 <div id="page"> … … 50 56 <a id="<?php echo ($currentFile=='config.php' ? 'current':'') ?>" href="config.php?"> 51 57 • 52 <li> Setup</li>58 <li><?php echo _("Setup") ?></li> 53 59 </a> 54 60 <a id="<?php echo ($currentFile=='reports.php' ? 'current':'') ?>" href="reports.php?"> 55 61 • 56 <li> Reports</li>62 <li><?php echo _("Reports") ?></li> 57 63 </a> 58 64 <a id="<?php echo ($currentFile=='panel.php' ? 'current':'') ?>" href="panel.php?"> 59 65 • 60 <li> Panel</li>66 <li><?php echo _("Panel") ?></li> 61 67 </a> 62 68 </div> trunk/AMP/amp_conf/htdocs/admin/index.php
r173 r301 23 23 24 24 <?php 25 $title= "Asterisk Management Portal";26 $message= "Administration";25 $title=_("Asterisk Management Portal"); 26 $message=_("Administration"); 27 27 28 28 require_once('functions.php'); … … 52 52 ?> 53 53 54 <p align="right"> 55 Language: 56 <select onchange="javascript:changeLang(this.value)"> 57 <option value="en_US" <? echo ($_COOKIE['lang']=="en_US" ? "selected" : "") ?> >English</option> 58 <option value="it_IT" <? echo ($_COOKIE['lang']=="it_IT" ? "selected" : "") ?> >Italian</option> 59 </select> 60 </p> 61 54 62 <h2>AMP</h2> 55 63 <p> 56 64 Welcome to the Asterisk Management Portal <?php $ver=getversion(); echo $ver[0][0];?> 65 <?php echo _("Welcome to the Asterisk Management Portal") ?> <?php $ver=getversion(); echo $ver[0][0];?> 57 66 <br><br><br><br><br><br> 58 67 </p> trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/common/script.js
r298 r301 325 325 } 326 326 } 327 328 function changeLang(lang) { 329 document.cookie='lang='+lang; 330 window.location.reload(); 331 } 332 trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/config.php
r199 r301 83 83 // setup menu 84 84 $amp_sections = array( 85 9=> "Incoming Calls",86 3=> "Extensions",87 4=> "Ring Groups",88 11=> "Queues",89 2=> "Digital Receptionist",90 6=> "Trunks",91 8=> "Outbound Routing",92 7=> "DID Routes",93 1=> "On Hold Music",94 12=> "System Recordings",95 5=> "General Settings",96 99=> "Apply Changes Bar"85 9=>_("Incoming Calls"), 86 3=>_("Extensions"), 87 4=>_("Ring Groups"), 88 11=>_("Queues"), 89 2=>_("Digital Receptionist"), 90 6=>_("Trunks"), 91 8=>_("Outbound Routing"), 92 7=>_("DID Routes"), 93 1=>_("On Hold Music"), 94 12=>_("System Recordings"), 95 5=>_("General Settings"), 96 99=>_("Apply Changes Bar") 97 97 ); 98 98 … … 134 134 switch($display) { 135 135 default: 136 echo "<p> Welcome to AMP</p>";136 echo "<p>"._("Welcome to AMP")."</p>"; 137 137 echo str_repeat("<br />", 12); 138 138 break; 139 139 case 'noaccess': 140 echo "<h2> Not found</h2>";141 echo "<p> The section you requested does not exist or you do not have access to it.</p>";140 echo "<h2>"._("Not found")."</h2>"; 141 echo "<p>"._("The section you requested does not exist or you do not have access to it.")."</p>"; 142 142 echo str_repeat("<br />", 10); 143 143 break; 144 144 case '9': 145 echo "<h2> Incoming Calls</h2>";145 echo "<h2>"._("Incoming Calls")."</h2>"; 146 146 include 'incoming.php'; 147 147 break; … … 150 150 break; 151 151 case '2': 152 echo "<h2> Digital Receptionist</h2>";152 echo "<h2>"._("Digital Receptionist")."</h2>"; 153 153 // The Digital Receptionist code is a rat's nest. If you are planning on making significant modifications, just re-write from scratch. 154 154 //if menu_id is being empty, or if we are requesting delete, just use ivr_action.php … … 168 168 break; 169 169 case '5': 170 echo "<h2> General Settings</h2>";170 echo "<h2>"._("General Settings")."</h2>"; 171 171 include 'general.php'; 172 172 break; trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/footer.php
r176 r301 71 71 if ($need_reload[0] == 'true') { 72 72 ?> 73 <div class="inyourface"><a href="<?php echo $_SERVER["PHP_SELF"]?>?display=<?php echo $_REQUEST['display'] ?>&clk_reload=true"> You have made changes - when finished, click here to APPLY them</a></div>73 <div class="inyourface"><a href="<?php echo $_SERVER["PHP_SELF"]?>?display=<?php echo $_REQUEST['display'] ?>&clk_reload=true"><?php echo _("You have made changes - when finished, click here to APPLY them") ?></a></div> 74 74 <?php 75 75 } trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/header.php
r196 r301 36 36 </head> 37 37 38 <?php 39 setlocale(LC_MESSAGES, $_COOKIE['lang'] ? $_COOKIE['lang']:'en_US'); 40 bindtextdomain('amp','./i18n'); 41 textdomain('amp'); 42 ?> 43 38 44 <body> 39 45 <div id="page"> … … 50 56 <a id="<?php echo ($currentFile=='config.php' ? 'current':'') ?>" href="config.php?"> 51 57 • 52 <li> Setup</li>58 <li><?php echo _("Setup") ?></li> 53 59 </a> 54 60 <a id="<?php echo ($currentFile=='reports.php' ? 'current':'') ?>" href="reports.php?"> 55 61 • 56 <li> Reports</li>62 <li><?php echo _("Reports") ?></li> 57 63 </a> 58 64 <a id="<?php echo ($currentFile=='panel.php' ? 'current':'') ?>" href="panel.php?"> 59 65 • 60 <li> Panel</li>66 <li><?php echo _("Panel") ?></li> 61 67 </a> 62 68 </div> trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/index.php
r173 r301 23 23 24 24 <?php 25 $title= "Asterisk Management Portal";26 $message= "Administration";25 $title=_("Asterisk Management Portal"); 26 $message=_("Administration"); 27 27 28 28 require_once('functions.php'); … … 52 52 ?> 53 53 54 <p align="right"> 55 Language: 56 <select onchange="javascript:changeLang(this.value)"> 57 <option value="en_US" <? echo ($_COOKIE['lang']=="en_US" ? "selected" : "") ?> >English</option> 58 <option value="it_IT" <? echo ($_COOKIE['lang']=="it_IT" ? "selected" : "") ?> >Italian</option> 59 </select> 60 </p> 61 54 62 <h2>AMP</h2> 55 63 <p> 56 64 Welcome to the Asterisk Management Portal <?php $ver=getversion(); echo $ver[0][0];?> 65 <?php echo _("Welcome to the Asterisk Management Portal") ?> <?php $ver=getversion(); echo $ver[0][0];?> 57 66 <br><br><br><br><br><br> 58 67 </p>
