SIP Status: Rename and multilinguify.

This commit is contained in:
Nate Jones
2014-06-21 09:12:17 +00:00
parent 59687a4785
commit 572f3e2989
2 changed files with 59 additions and 13 deletions

View File

@@ -46,8 +46,54 @@
$text['title-sofia-status-profile']['pt-pt'] = "perfil associado ao estado do módulo sofia";
$text['title-sofia-status-profile']['fr-fr'] = "profile statut sofia";
$text['title-status']['en-us'] = "status";
$text['title-status']['es-cl'] = "estado";
$text['title-status']['pt-pt'] = "estado";
$text['title-status']['fr-fr'] = "statut";
$text['title-status']['en-us'] = "Status";
$text['title-status']['es-cl'] = "Estado";
$text['title-status']['pt-pt'] = "Estado";
$text['title-status']['fr-fr'] = "Statut";
$text['button-flush_memcache']['en-us'] = "Flush Memcache";
$text['button-flush_memcache']['es-cl'] = "Memcache Flush";
$text['button-flush_memcache']['pt-pt'] = "Memcache Lavar";
$text['button-flush_memcache']['fr-fr'] = "Memcache Rincer";
$text['button-reload_acl']['en-us'] = "Reload ACL";
$text['button-reload_acl']['es-cl'] = "Actualizar ACL";
$text['button-reload_acl']['pt-pt'] = "Recarregar ACL";
$text['button-reload_acl']['fr-fr'] = "Reload ACL";
$text['button-reload_xml']['en-us'] = "Reload XML";
$text['button-reload_xml']['es-cl'] = "Actualizar XML";
$text['button-reload_xml']['pt-pt'] = "Recarregar XML";
$text['button-reload_xml']['fr-fr'] = "Reload XML";
$text['button-flush_registrations']['en-us'] = "Flush Registrations";
$text['button-flush_registrations']['es-cl'] = "Inscripciones Flush";
$text['button-flush_registrations']['pt-pt'] = "Inscrições Lavar";
$text['button-flush_registrations']['fr-fr'] = "Inscriptions Rincer";
$text['button-registrations']['en-us'] = "Registrations";
$text['button-registrations']['es-cl'] = "Inscripciones";
$text['button-registrations']['pt-pt'] = "Inscrições";
$text['button-registrations']['fr-fr'] = "Inscriptions";
$text['button-start']['en-us'] = "Start";
$text['button-start']['es-cl'] = "Iniciar";
$text['button-start']['pt-pt'] = "Iniciar";
$text['button-start']['fr-fr'] = "Démarrer";
$text['button-stop']['en-us'] = "Stop";
$text['button-stop']['es-cl'] = "Detener";
$text['button-stop']['pt-pt'] = "Parar";
$text['button-stop']['fr-fr'] = "Stop";
$text['button-restart']['en-us'] = "Restart";
$text['button-restart']['es-cl'] = "Reanudar";
$text['button-restart']['pt-pt'] = "Restart";
$text['button-restart']['fr-fr'] = "Redémarrer";
$text['button-rescan']['en-us'] = "Rescan";
$text['button-rescan']['es-cl'] = "Vuelva a Explorar";
$text['button-rescan']['pt-pt'] = "Redigitalize";
$text['button-rescan']['fr-fr'] = "Rescan";
?>

View File

@@ -126,9 +126,9 @@ if ($_GET['a'] == "download") {
echo " <b><a href='javascript:void(0);' onclick=\"$('#sofia_status').slideToggle();\">".$text['title-sofia-status']."</a></b> \n";
echo "</td>\n";
echo "<td width='50%' align='right'>\n";
echo " <input type='button' class='btn' value='memcache flush' onclick=\"document.location.href='cmd.php?cmd=api+memcache+flush';\" />\n";
echo " <input type='button' class='btn' value='reloadacl' onclick=\"document.location.href='cmd.php?cmd=api+reloadacl';\" />\n";
echo " <input type='button' class='btn' value='reloadxml' onclick=\"document.location.href='cmd.php?cmd=api+reloadxml';\" />\n";
echo " <input type='button' class='btn' value='".$text['button-flush_memcache']."' onclick=\"document.location.href='cmd.php?cmd=api+memcache+flush';\" />\n";
echo " <input type='button' class='btn' value='".$text['button-reload_acl']."' onclick=\"document.location.href='cmd.php?cmd=api+reloadacl';\" />\n";
echo " <input type='button' class='btn' value='".$text['button-reload_xml']."' onclick=\"document.location.href='cmd.php?cmd=api+reloadxml';\" />\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
@@ -208,13 +208,13 @@ if ($_GET['a'] == "download") {
echo "</td>\n";
echo "<td align='right' nowrap>\n";
if ($sip_profile_name != "external") {
echo " <input type='button' class='btn' value='flush_inbound_reg' onclick=\"document.location.href='cmd.php?cmd=api+sofia+profile+".$sip_profile_name."+flush_inbound_reg';\" />\n";
echo " <input type='button' class='btn' value='".$text['button-flush_registrations']."' onclick=\"document.location.href='cmd.php?cmd=api+sofia+profile+".$sip_profile_name."+flush_inbound_reg';\" />\n";
}
echo " <input type='button' class='btn' value='registrations' onclick=\"document.location.href='".PROJECT_PATH."/app/registrations/status_registrations.php?show_reg=1&profile=".$sip_profile_name."';\" />\n";
echo " <input type='button' class='btn' value='start' onclick=\"document.location.href='cmd.php?cmd=api+sofia+profile+".$sip_profile_name."+start';\" />\n";
echo " <input type='button' class='btn' value='stop' onclick=\"document.location.href='cmd.php?cmd=api+sofia+profile+".$sip_profile_name."+stop';\" />\n";
echo " <input type='button' class='btn' value='restart' onclick=\"document.location.href='cmd.php?cmd=api+sofia+profile+".$sip_profile_name."+restart';\" />\n";
echo " <input type='button' class='btn' value='rescan' onclick=\"document.location.href='cmd.php?cmd=api+sofia+profile+".$sip_profile_name."+rescan';\" />\n";
echo " <input type='button' class='btn' value='".$text['button-registrations']."' onclick=\"document.location.href='".PROJECT_PATH."/app/registrations/status_registrations.php?show_reg=1&profile=".$sip_profile_name."';\" />\n";
echo " <input type='button' class='btn' value='".$text['button-start']."' onclick=\"document.location.href='cmd.php?cmd=api+sofia+profile+".$sip_profile_name."+start';\" />\n";
echo " <input type='button' class='btn' value='".$text['button-stop']."' onclick=\"document.location.href='cmd.php?cmd=api+sofia+profile+".$sip_profile_name."+stop';\" />\n";
echo " <input type='button' class='btn' value='".$text['button-restart']."' onclick=\"document.location.href='cmd.php?cmd=api+sofia+profile+".$sip_profile_name."+restart';\" />\n";
echo " <input type='button' class='btn' value='".$text['button-rescan']."' onclick=\"document.location.href='cmd.php?cmd=api+sofia+profile+".$sip_profile_name."+rescan';\" />\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";