Opened 14 years ago

Closed 14 years ago

#392 closed defect (fixed)

NO lang file for plugin : NoteServer

Reported by: Kim Steinhaug Owned by: gogo
Priority: normal Milestone:
Component: Plugin_Other Version:
Severity: normal Keywords:
Cc:

Description

NO lang file

Attachments (4)

no.js (289 bytes) - added by kim@… 14 years ago.
UTF-8 NO lang file
no.2.js (678 bytes) - added by kim@… 14 years ago.
Updated NO lang file UTF-8 with new strings
de.js (856 bytes) - added by kim@… 14 years ago.
Updated DE lang file with new strings (Not translated but in place)
fr.js (862 bytes) - added by kim@… 14 years ago.
Updated FR lang file with new strings (Not translated but in place

Download all attachments as: .zip

Change History (6)

Changed 14 years ago by kim@…

UTF-8 NO lang file

comment:1 Changed 14 years ago by Kim Steinhaug

Well, Ive been expanding the language for this plugin, and it requries some slight modofications to the popup file,

Line 109 from :
Guido code :
to :
<span>Guido code</span> :

Line 115 from :

<input type="checkbox" id="f_midi" value="ON"> Add MIDI link to allow students to hear the music

To :

<input type="checkbox" id="f_midi" value="ON"> <span>Add MIDI link to allow students to hear the music</span>

Line 117 from :

<input type="checkbox" id="f_affcode" value="ON"> Add GUIDO Code in a textbox on the page

To this line :

<input type="checkbox" id="f_affcode" value="ON"> <span>Add GUIDO Code in a textbox on the page</span>

Line 123 :

<input type="checkbox" id="f_applet" value="ON" onclick="message();" > Image in applet

To :

Line 140:

<span>Image Preview</span>:<br />

To :

Image Preview:<br />

Line 153 :

<p>Sample Guido Codes: </p>

to :

<p>Sample Guido Codes:</p>

If you have winmerge or something you can easily detect the changes above from this copy of the fininshed codenote.html file :

<html>

<head>

<title>Insert GUIDO Music Notation</title>
<link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
<script type="text/javascript"  src="../note-server.js"></script>
<script type="text/javascript" src="../../../popups/popup.js"></script>

<script type="text/javascript">

window.resizeTo(500, 200);

NoteServer = window.opener.NoteServer;

var editor = null;
function Init() {
  __dlg_translate('NoteServer');
  __dlg_init();

//   var param = window.dialogArguments;
//  if (param) {
//    document.getElementById("f_midi").value = param["f_midi"];
//    document.getElementById("f_code").value = param["f_code"];
//    document.getElementById("f_zoom").value = param["f_zoom"];
//    document.getElementById("f_affcode").value = param["f_affcode"];
//    document.getElementById("f_applet").value = param["f_applet"];
//  }
//  editor = param.editor;
//  document.getElementById("f_code").focus();
//  document.getElementById("f_code").select();
};

function onOK() {
  var f_code = document.getElementById("f_code");
  if (!f_code.value) {
    alert("You have to enter GUIDO code");
    f_code.focus();
    return false;
}

  // pass data back to the calling window

  var param = {};
  param["f_code"] = f_code.value;
  var f_zoom = document.getElementById("f_zoom");
  var z = "1.0";
  if (f_zoom.value == "1.0" || f_zoom.value == "100%") z = 1.0;
  else if (f_zoom.value == "0.8" || f_zoom.value == "80%") z = 0.8;
  else if (f_zoom.value == "1.2" || f_zoom.value == "120%") z = 1.2;
  else if (f_zoom.value == "1.5" || f_zoom.value == "150%") z = 1.5;

  param["f_zoom"] = z;

  param["f_midi"] = document.getElementById("f_midi").checked;

  param["f_affcode"] = document.getElementById("f_affcode").checked;
  param["f_applet"] = document.getElementById("f_applet").checked;

  __dlg_close(param);
  return false;
};

function onCancel() {
  __dlg_close(null);
  return false;

};


function message(){
if (document.getElementById("f_applet").checked)
  if (!((navigator.userAgent.toLowerCase().indexOf("msie") != -1)
    && (navigator.userAgent.toLowerCase().indexOf("opera") == -1))) {
    alert("With Mozilla, the applet will not be visible in editor, but only in Web page after submitting.");
  }
}

function onPreview() {

  var f_code = document.getElementById("f_code");
  var f_zoom = document.getElementById("f_zoom");

var z = "1.0";
if (f_zoom.value == "1.0" || f_zoom.value == "100%") z = 1.0;
else if (f_zoom.value == "0.8" || f_zoom.value == "80%") z = 0.8;
else if (f_zoom.value == "1.2" || f_zoom.value == "120%") z = 1.2;
else if (f_zoom.value == "1.5" || f_zoom.value == "150%") z = 1.5;

  var url = GetGIFURL(f_code.value,z,"");
  if (!f_code.value) {
    alert("You have to enter GUIDO code");
    f_code.focus();
    return false;
 }


  window.ipreview.location.replace(url);

  return false;
};

</script>
</head>

<body class="Dialog" onload="Init()">
<div class="title">Insert GUIDO Music Notation</div>

<span>Guido code</span> :
  <br><textarea rows="7" id="f_code" cols="55"></textarea><br>

<div class="space"></div>
<fieldset style="float: left; margin-left: 5px;">
<legend>Options</legend>
  <input type="checkbox" id="f_midi" value="ON"> <span>Add MIDI link to allow students to hear the music</span>
  <div class="space"></div>
  <input type="checkbox" id="f_affcode" value="ON"> <span>Add GUIDO Code in a textbox on the page</span>
  <div class="space"></div>
</fieldset>

<fieldset style="float: right; margin-left: 5px;">
<legend>Format</legend>
  <input type="checkbox" id="f_applet" value="ON" onclick="message();" > <span>Image in applet</span>
  <div class="space"></div>
  <span>Zoom</span> :
  <select size="1" id="f_zoom" title="Zoom :">
    <option value="0.8">80%</option>
    <option selected="1.0">100%</option>
    <option value="1.2">120%</option>
    <option value="1.5">150%</option>
  </select>
  <div class="space"></div>
</fieldset>

<br clear="all" />

<table width="100%" style="margin-bottom: 0.2em">
 <tr>
  <td valign="bottom">
    <span>Image Preview</span>:<br />
    <iframe name="ipreview" id="ipreview" frameborder="0" style="border : 1px solid gray;" height="200" width="350" src=""></iframe>
  </td>

  <td valign="bottom" style="text-align: right">
    <button type="button" name="preview" onclick="return onPreview();"
      title="Preview the image in a new window">Preview</button><br>
    <button type="button" name="ok" onclick="return onOK();"><span>OK</span></button><br>
    <button type="button" name="cancel" onclick="return onCancel();"><span>Cancel</span></button>
  </td>
 </tr>
 <tr>
  <td colspan="2">
   <p>Sample Guido Codes:</p>
   <p><a href="http://piano-go.chez.tiscali.fr/rachmaninoff.gmn" target="_blank">Code Sample 1</a> or type [ do re mi fa sol la si ] | <a href="http://www.informatik.tu-darmstadt.de/AFS/SALIERI/guido/demos.html" target="_blank">Code Sample 2</a></p>
   <p>Resources: </p>
   <p>The Guido Specification (<a href="http://piano-go.chez.tiscali.fr/GUIDO-Music%20Notation%20Format.pdf" target="_blank">PDF)</a> | <a href="http://www.salieri.org/guido/doc.html" target="_blank">(HTML)</a></p>
   <p><a href="http://www.salieri.org/guido/" target="_blank">GUIDO Music Notation Format Site</a> | <a href="http://www.noteserver.org/" target="_blank">Guido Note Server</a> | <a href="http://sourceforge.net/projects/guidolib/" target="_blank">SourceForge Homepage</a></p>
  </td>
 </tr>
</table>
</body>
</html>

Changed 14 years ago by kim@…

Updated NO lang file UTF-8 with new strings

Changed 14 years ago by kim@…

Updated DE lang file with new strings (Not translated but in place)

Changed 14 years ago by kim@…

Updated FR lang file with new strings (Not translated but in place

comment:2 Changed 14 years ago by gocher

  • Resolution set to fixed
  • Status changed from new to closed

Updated in Changeset 271

Note: See TracTickets for help on using tickets.