<?php
/************************************************************************/
/* js_localisation.php                                                  */
/*----------------------------------------------------------------------*/
/* Creates some Javascript defining localised versions of strings used  */
/* by the app.                                                          */
/* Note: that this file is machine generated by jslocalise.pl           */
/* Copyright (c) 2008-2009 Avaya Inc.                                   */
/************************************************************************/

$arr = array(

  "Please fill in all the fields." => gettext("Please fill in all the fields."),
  "Navigate to other pages" => gettext("Navigate to other pages"),
  "saved message" => gettext("saved message"),
  "Fast forward voice message" => gettext("Fast forward voice message"),
  "d" => gettext("d"),
  "Number" => gettext("Number"),
  "Inbox" => gettext("Inbox"),
  "Message has been deleted" => gettext("Message has been deleted"),
  "Select or de-select message" => gettext("Select or de-select message"),
  "Paused" => gettext("Paused"),
  "Your session has been disconnected." => gettext("Your session has been disconnected."),
  "Yes" => gettext("Yes"),
  "Forward failed." => gettext("Forward failed."),
  "No extensions were found on the system." => gettext("No extensions were found on the system."),
  "Stop" => gettext("Stop"),
  "Passwords must not be a single repeated digit." => gettext("Passwords must not be a single repeated digit."),
  "Play" => gettext("Play"),
  "Passwords must not be a string of consecutive digits." => gettext("Passwords must not be a string of consecutive digits."),
  "Trash" => gettext("Trash"),
  "of" => gettext("of"),
  "Too many mailboxes selected." => gettext("Too many mailboxes selected."),
  "Stop voice message" => gettext("Stop voice message"),
  "Page" => gettext("Page"),
  "No" => gettext("No"),
  "Message has been saved" => gettext("Message has been saved"),
  "Passwords must be between 2 and 16 characters in length." => gettext("Passwords must be between 2 and 16 characters in length."),
  "Passwords do not match. Please re-enter." => gettext("Passwords do not match. Please re-enter."),
  "Pause voice message" => gettext("Pause voice message"),
  "Play voice message" => gettext("Play voice message"),
  "Passwords must not be the same as your extension number." => gettext("Passwords must not be the same as your extension number."),
  "Please select a forward destination." => gettext("Please select a forward destination."),
  "Name" => gettext("Name"),
  "Are you sure you want to delete the selected messages?" => gettext("Are you sure you want to delete the selected messages?"),
  "No hunt groups were found on the system." => gettext("No hunt groups were found on the system."),
  "OK" => gettext("OK"),
  "Your session has been idle for too long and has been disconnected." => gettext("Your session has been idle for too long and has been disconnected."),
  "Please select messages." => gettext("Please select messages."),
  "Password has been successfully changed." => gettext("Password has been successfully changed."),
  "priority message" => gettext("priority message"),
  "unknown message state" => gettext("unknown message state"),
  "Pause" => gettext("Pause"),
  "s" => gettext("s"),
  "Private messages can not forwarded." => gettext("Private messages can not forwarded."),
  "Passwords must be composed of digits only." => gettext("Passwords must be composed of digits only."),
  "To" => gettext("To"),
  "message flagged for deletion" => gettext("message flagged for deletion"),
  "Select or de-select all messages" => gettext("Select or de-select all messages"),
  "Playing" => gettext("Playing"),
  "Rewind" => gettext("Rewind"),
  "This will permanently delete the messages. Proceed?" => gettext("This will permanently delete the messages. Proceed?"),
  "un-opened message" => gettext("un-opened message"),
  "A network problem was encountered. Please try later." => gettext("A network problem was encountered. Please try later."),
  "Stopped" => gettext("Stopped"),
  "previously opened message" => gettext("previously opened message"),
  "Message has not yet been heard" => gettext("Message has not yet been heard"),
  "Message has been heard" => gettext("Message has been heard"),
  "State" => gettext("State"),
  "Your new password is the same as the current one. Please choose a different password." => gettext("Your new password is the same as the current one. Please choose a different password."),
  "h" => gettext("h"),
  "Received on" => gettext("Received on"),
  "Rewind voice message" => gettext("Rewind voice message"),
  "m" => gettext("m"),
  "Fast Forward" => gettext("Fast Forward"),
  "Length" => gettext("Length"),
  "private message" => gettext("private message"),
  "Are you sure you want to delete the selected message?" => gettext("Are you sure you want to delete the selected message?"),
  "Your session has ended." => gettext("Your session has ended."),
  "From" => gettext("From"),
  "-" => gettext("-")
);

$javastr = "    <script type=\"text/javascript\">\n";
$javastr .= "      <!--\n";
$javastr .= "      var strings = new Object();\n";

while(list($key, $val) = each($arr))
{
  $javastr .= "      strings[\"". $key. "\"] = \"$val\";\n";
}
//add function to get the string
$javastr .= "      function LocaliseString(orig)\n";
$javastr .= "      {\n";
$javastr .= "        if (strings[orig] != null) return strings[orig]; else return orig;\n";
$javastr .= "      }\n";
$javastr .= "      //-->\n";
$javastr .= "    </script>\n";
echo $javastr;
?>

