tomboy r2041 - in trunk: . extra/firefox-extension extra/firefox-extension/chrome extra/firefox-extension/chrome/content extra/firefox-extension/chrome/locale extra/firefox-extension/chrome/locale/en-US extra/firefox-extension/chrome/locale/pt-PT extra/firefox-extension/defaults extra/firefox-extension/defaults/preferences



Author: sharm
Date: Sun Jul 27 13:36:05 2008
New Revision: 2041
URL: http://svn.gnome.org/viewvc/tomboy?rev=2041&view=rev

Log:
* extra/firefox-extension: Adding source for Tomfox, the awesome
  Firefox extension from Harry Coal.  Please file bugs for this
  extension in GNOME bugzilla:
  http://bugzilla.gnome.org/enter_bug.cgi?product=Tomboy&component=Firefox%20Extension
  

  Tomfox can be installed from here:
  https://addons.mozilla.org/en-US/firefox/addon/8276

Added:
   trunk/extra/firefox-extension/   (props changed)
   trunk/extra/firefox-extension/chrome/   (props changed)
   trunk/extra/firefox-extension/chrome.manifest
   trunk/extra/firefox-extension/chrome/content/
   trunk/extra/firefox-extension/chrome/content/about.js
   trunk/extra/firefox-extension/chrome/content/about.xul
   trunk/extra/firefox-extension/chrome/content/logo.gif   (contents, props changed)
   trunk/extra/firefox-extension/chrome/content/options.xul
   trunk/extra/firefox-extension/chrome/content/rcmenu.xul
   trunk/extra/firefox-extension/chrome/content/tb_16.png   (contents, props changed)
   trunk/extra/firefox-extension/chrome/content/tomfox.js
   trunk/extra/firefox-extension/chrome/content/tomfox.png   (contents, props changed)
   trunk/extra/firefox-extension/chrome/locale/
   trunk/extra/firefox-extension/chrome/locale/en-US/
   trunk/extra/firefox-extension/chrome/locale/en-US/prefwindow.dtd
   trunk/extra/firefox-extension/chrome/locale/en-US/tomfox.dtd
   trunk/extra/firefox-extension/chrome/locale/en-US/tomfox.properties
   trunk/extra/firefox-extension/chrome/locale/pt-PT/
   trunk/extra/firefox-extension/chrome/locale/pt-PT/prefwindow.dtd
   trunk/extra/firefox-extension/chrome/locale/pt-PT/tomfox.dtd
   trunk/extra/firefox-extension/chrome/locale/pt-PT/tomfox.properties
   trunk/extra/firefox-extension/defaults/
   trunk/extra/firefox-extension/defaults/preferences/
   trunk/extra/firefox-extension/defaults/preferences/tomfox.js
   trunk/extra/firefox-extension/install.rdf
Modified:
   trunk/ChangeLog

Added: trunk/extra/firefox-extension/chrome.manifest
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/chrome.manifest	Sun Jul 27 13:36:05 2008
@@ -0,0 +1,8 @@
+content	tomfox	jar:chrome/tomfox.jar!/content/
+
+locale	tomfox	en-US	jar:chrome/tomfox.jar!/locale/en-US/
+locale	tomfox	pt-PT	jar:chrome/tomfox.jar!/locale/pt-PT/
+
+skin	tomfox	classic/1.0	jar:chrome/tomfox.jar!/skin/
+
+overlay	chrome://browser/content/browser.xul	chrome://tomfox/content/rcmenu.xul

Added: trunk/extra/firefox-extension/chrome/content/about.js
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/chrome/content/about.js	Sun Jul 27 13:36:05 2008
@@ -0,0 +1,16 @@
+
+function openLink(aPage) {
+	
+	// Open page in new tab
+	var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService();
+    	var wmed = wm.QueryInterface(Components.interfaces.nsIWindowMediator);
+    
+	var win = wmed.getMostRecentWindow("navigator:browser");
+	if (!win)
+    		win = window.openDialog("chrome://browser/content/browser.xul", "_blank", "chrome,all,dialog=no", aPage, null, null);
+	else {
+    	var content = win.document.getElementById("content");
+    	content.selectedTab = content.addTab(aPage);	
+    	}
+	
+}

Added: trunk/extra/firefox-extension/chrome/content/about.xul
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/chrome/content/about.xul	Sun Jul 27 13:36:05 2008
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+
+<!-- ***** BEGIN LICENSE BLOCK *****
+  -   Version: MPL 1.1/GPL 2.0/LGPL 2.1
+  -
+  - The contents of this file are subject to the Mozilla Public License Version
+  - 1.1 (the "License"); you may not use this file except in compliance with
+  - the License. You may obtain a copy of the License at
+  - http://www.mozilla.org/MPL/
+  - 
+  - Software distributed under the License is distributed on an "AS IS" basis,
+  - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+  - for the specific language governing rights and limitations under the
+  - License.
+  -
+  - The Original Code is Tomfox.
+  -
+  - The Initial Developer of the Original Code is
+  - Harry Coal.
+  - Portions created by the Initial Developer are Copyright (C) 2008
+  - the Initial Developer. All Rights Reserved.
+  -
+  - Contributor(s): Bruno Miguel (Portuguese Translation)
+  -
+  - Alternatively, the contents of this file may be used under the terms of
+  - either the GNU General Public License Version 2 or later (the "GPL"), or
+  - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+  - in which case the provisions of the GPL or the LGPL are applicable instead
+  - of those above. If you wish to allow use of your version of this file only
+  - under the terms of either the GPL or the LGPL, and not to allow others to
+  - use your version of this file under the terms of the MPL, indicate your
+  - decision by deleting the provisions above and replace them with the notice
+  - and other provisions required by the GPL or the LGPL. If you do not delete
+  - the provisions above, a recipient may use your version of this file under
+  - the terms of any one of the MPL, the GPL or the LGPL.
+  - 
+  - ***** END LICENSE BLOCK ***** -->
+
+<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
+<window 
+	title="About Tomfox"
+	width="424"
+	height="300"
+	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";>
+
+	<script type="application/x-javascript" src="chrome://tomfox/content/about.js"/>
+
+	<image src="chrome://tomfox/content/logo.gif"  width='424' height='120'/>
+
+	<label> </label>
+
+	<description>
+		Tomfox: Tomboy Notes for Firefox
+	</description>
+
+	<description>
+		Created by: Harry Coal (harry harrycoal co uk)
+	</description>
+
+	<menuseparator/>
+
+	<description>
+		Translations: Bruno Miguel (Portuguese)
+	</description>
+
+	<menuseparator/>
+
+	<label> </label>
+
+	<description>
+		If you find Tomfox useful, please consider making a donation.
+	</description>
+
+	<button label="Donate" accesskey="D" onclick="openLink('https://www.paypal.com/cgi-bin/webscr?cmd=_donations&#38;business=harrycoal%40yahoo%2ecom&#38;item_name=Tomfox%20Donations&#38;no_shipping=1&#38;tax=0&#38;currency_code=GBP&#38;lc=GB&#38;bn=PP%2dDonationsBF&#38;charset=UTF%2d8');"/>
+
+	<button label="Visit Website" accesskey="W" onclick="openLink('http://harrycoal.co.uk/tomfox');"/>
+
+</window>

Added: trunk/extra/firefox-extension/chrome/content/logo.gif
==============================================================================
Binary file. No diff available.

Added: trunk/extra/firefox-extension/chrome/content/options.xul
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/chrome/content/options.xul	Sun Jul 27 13:36:05 2008
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- ***** BEGIN LICENSE BLOCK *****
+  -   Version: MPL 1.1/GPL 2.0/LGPL 2.1
+  -
+  - The contents of this file are subject to the Mozilla Public License Version
+  - 1.1 (the "License"); you may not use this file except in compliance with
+  - the License. You may obtain a copy of the License at
+  - http://www.mozilla.org/MPL/
+  - 
+  - Software distributed under the License is distributed on an "AS IS" basis,
+  - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+  - for the specific language governing rights and limitations under the
+  - License.
+  -
+  - The Original Code is Tomfox.
+  -
+  - The Initial Developer of the Original Code is
+  - Harry Coal.
+  - Portions created by the Initial Developer are Copyright (C) 2008
+  - the Initial Developer. All Rights Reserved.
+  -
+  - Contributor(s): Bruno Miguel (Portuguese Translation)
+  -
+  - Alternatively, the contents of this file may be used under the terms of
+  - either the GNU General Public License Version 2 or later (the "GPL"), or
+  - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+  - in which case the provisions of the GPL or the LGPL are applicable instead
+  - of those above. If you wish to allow use of your version of this file only
+  - under the terms of either the GPL or the LGPL, and not to allow others to
+  - use your version of this file under the terms of the MPL, indicate your
+  - decision by deleting the provisions above and replace them with the notice
+  - and other provisions required by the GPL or the LGPL. If you do not delete
+  - the provisions above, a recipient may use your version of this file under
+  - the terms of any one of the MPL, the GPL or the LGPL.
+  - 
+  - ***** END LICENSE BLOCK ***** -->
+
+<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
+<!DOCTYPE prefwindow SYSTEM "chrome://tomfox/locale/prefwindow.dtd">
+<prefwindow id="tomfoxPreferences" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; title="&prefwindow.title;">
+  <prefpane id="pane1" label="&pane1.title;">
+    <preferences>
+      <preference id="displaynote" name="extensions.tomfox.bDisplayNote" type="bool"/>
+      <preference id="addurl" name="extensions.tomfox.bAddUrl" type="bool"/>
+      <preference id="promptfortitle" name="extensions.tomfox.bPromptForTitle" type="bool"/>
+      <preference id="defaultnotebook" name="extensions.tomfox.sDefaultNotebook" type="string"/>
+    </preferences>
+	<label> </label>
+	<hbox align="center">
+		<label control="defaultnotebook">&defaultnotebook.label;</label>
+		<textbox id="defaultnotebook" preference="defaultnotebook" label="&defaultnotebook.label;"/>
+	</hbox>
+	<label> </label>
+	<checkbox id="addurl" preference="addurl" label="&checkaddurl.label;" accesskey="&checkaddurl.accesskey;"/>
+ 	<checkbox id="displaynote" preference="displaynote" label="&checkdisplaynote.label;" accesskey="&checkdisplaynote.accesskey;"/>
+	<checkbox id="promptfortitle" preference="promptfortitle" label="&checkpromptfortitle.label;" accesskey="&checkpromptfortitle.accesskey;"/>
+  </prefpane>
+</prefwindow>
+
+
+
+

Added: trunk/extra/firefox-extension/chrome/content/rcmenu.xul
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/chrome/content/rcmenu.xul	Sun Jul 27 13:36:05 2008
@@ -0,0 +1,55 @@
+<?xml version="1.0"?>
+
+<!-- ***** BEGIN LICENSE BLOCK *****
+  -   Version: MPL 1.1/GPL 2.0/LGPL 2.1
+  -
+  - The contents of this file are subject to the Mozilla Public License Version
+  - 1.1 (the "License"); you may not use this file except in compliance with
+  - the License. You may obtain a copy of the License at
+  - http://www.mozilla.org/MPL/
+  - 
+  - Software distributed under the License is distributed on an "AS IS" basis,
+  - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+  - for the specific language governing rights and limitations under the
+  - License.
+  -
+  - The Original Code is Tomfox.
+  -
+  - The Initial Developer of the Original Code is
+  - Harry Coal.
+  - Portions created by the Initial Developer are Copyright (C) 2008
+  - the Initial Developer. All Rights Reserved.
+  -
+  - Contributor(s): Bruno Miguel (Portuguese Translation)
+  -
+  - Alternatively, the contents of this file may be used under the terms of
+  - either the GNU General Public License Version 2 or later (the "GPL"), or
+  - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+  - in which case the provisions of the GPL or the LGPL are applicable instead
+  - of those above. If you wish to allow use of your version of this file only
+  - under the terms of either the GPL or the LGPL, and not to allow others to
+  - use your version of this file under the terms of the MPL, indicate your
+  - decision by deleting the provisions above and replace them with the notice
+  - and other provisions required by the GPL or the LGPL. If you do not delete
+  - the provisions above, a recipient may use your version of this file under
+  - the terms of any one of the MPL, the GPL or the LGPL.
+  - 
+  - ***** END LICENSE BLOCK ***** -->
+
+<!DOCTYPE overlay SYSTEM "chrome://tomfox/locale/tomfox.dtd">
+
+<overlay id="tomfox_overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";>
+
+	<script src="chrome://tomfox/content/tomfox.js" type="application/x-javascript"/>
+
+	<stringbundleset id="stringbundleset">
+		<stringbundle id="tomfoxbundle" src="chrome://tomfox/locale/tomfox.properties"/>
+	</stringbundleset>
+
+ 	<popup id="contentAreaContextMenu">
+		<menuitem id="tomfox" label="&rcmenu.label;" image="chrome://tomfox/content/tb_16.png" oncommand="createnote();" />
+	</popup>
+  
+</overlay>
+
+

Added: trunk/extra/firefox-extension/chrome/content/tb_16.png
==============================================================================
Binary file. No diff available.

Added: trunk/extra/firefox-extension/chrome/content/tomfox.js
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/chrome/content/tomfox.js	Sun Jul 27 13:36:05 2008
@@ -0,0 +1,218 @@
+// Tomfox by Harry Coal - http://harrycoal.co.uk/tomfox - harry harrycoal co uk
+
+/* ***** BEGIN LICENSE BLOCK *****
+ *   Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ * 
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Tomfox.
+ *
+ * The Initial Developer of the Original Code is
+ * Harry Coal.
+ * Portions created by the Initial Developer are Copyright (C) 2008
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s): Bruno Miguel (Portuguese Translation)
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ * 
+ * ***** END LICENSE BLOCK ***** */
+
+function createnote(){
+
+		// Locale
+		tb_strings = document.getElementById("tomfoxbundle");
+
+		// Get Preferences
+		var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
+
+		var bDisplayNote;
+		if (prefs.getPrefType("extensions.tomfox.bDisplayNote") == prefs.PREF_BOOL){
+		  bDisplayNote = prefs.getBoolPref("extensions.tomfox.bDisplayNote");
+		}
+		
+		var bAddUrl;
+		if (prefs.getPrefType("extensions.tomfox.bAddUrl") == prefs.PREF_BOOL){
+		  bAddUrl = prefs.getBoolPref("extensions.tomfox.bAddUrl");
+		}
+
+		var bPromptForTitle;
+		if (prefs.getPrefType("extensions.tomfox.bPromptForTitle") == prefs.PREF_BOOL){
+		  bPromptForTitle = prefs.getBoolPref("extensions.tomfox.bPromptForTitle");
+		}
+
+		var sDefaultNotebook = prefs.getCharPref("extensions.tomfox.sDefaultNotebook");
+		var sDefaultNotebook = trim(sDefaultNotebook);
+
+		// Tomboy DBUS
+		var tomboy = "dbus-send --type=method_call --print-reply --session --dest=org.gnome.Tomboy ";
+		tomboy = tomboy + "/org/gnome/Tomboy/RemoteControl org.gnome.Tomboy.RemoteControl.";
+
+		// Process
+		var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
+		file.initWithPath("/bin/bash");
+		var process = Components.classes["@mozilla.org/process/util;1"].createInstance(Components.interfaces.nsIProcess);
+		process.init(file);
+
+		var tbtitle = PageTitle();
+
+		if (bPromptForTitle==true)
+		{
+		tbtitle = window.prompt(tb_strings.getString("notetitleprompt"),tbtitle,"Tomfox");
+		}
+		
+		if(tbtitle=="")
+		{
+		   tbtitle = "Untitled";
+		}
+		
+		// Limit the size of the note title
+		tbtitle = tbtitle.substring(0,100);
+				
+		// Set Note Contents
+		var tbnote = SelectedText();
+		var tbURL = CurrentURL();
+
+		// Escape text
+		tbtitle = String(EscapeText(tbtitle));
+		tbnote = String(EscapeText(tbnote));
+		tbURL = String(EscapeText(tbURL));
+		sDefaultNotebook = String(EscapeText(sDefaultNotebook));
+		
+		// Replace XML Characters
+		tbtitle = String(ReplaceXMLchars(tbtitle));
+		tbnote = String(ReplaceXMLchars(tbnote));
+		tbURL = String(ReplaceXMLchars(tbURL));
+
+		// Prepare command
+		var cmd = "NAME=\"" + tbtitle +"\";";
+		cmd = cmd + "FINALNAME=$NAME;";
+		cmd = cmd + "NOTE=\"" + tbnote +"\";";
+		cmd = cmd + "WEBURL=\"" + tbURL +"\";";
+		cmd = cmd + "NOTEBOOK=\"" + sDefaultNotebook +"\";";
+		cmd = cmd + "DUPES=0;";
+		cmd = cmd + "URI=$(" + tomboy + "FindNote string:\"$NAME\" | grep string | awk -F\\\" '{print $2}');";
+		cmd = cmd + "EXISTS=$(" + tomboy + "NoteExists string:$URI | grep boolean | awk -F\\\" '{print $1}');";
+		cmd = cmd + "while [ \"$EXISTS\" = '" + "   boolean true" + "' ]; do ";
+		cmd = cmd + "let \"DUPES += 1\";";
+		cmd = cmd + "FINALNAME=\"$NAME #$DUPES\";";
+		cmd = cmd + "URI=$(" + tomboy + "FindNote string:\"$FINALNAME\" | grep string | awk -F\\\" '{print $2}');";
+		cmd = cmd + "EXISTS=$(" + tomboy + "NoteExists string:$URI | grep boolean | awk -F\\\" '{print $1}');";
+		cmd = cmd + "done;";
+		cmd = cmd + tomboy + "CreateNamedNote string:\"$FINALNAME\";";
+		cmd = cmd + "URI=$(" + tomboy + "FindNote string:\"$FINALNAME\" | grep string | awk -F\\\" '{print $2}');";
+		cmd = cmd + "CONTENTS=$FINALNAME$NOTE;";
+
+		if (bAddUrl==true)
+		{
+		cmd = cmd + "XML=\"<note-content>$FINALNAME\n\n\"$NOTE\"\n\n<link:url>\"$WEBURL\"</link:url>\n\n</note-content>\";";
+		}
+		else
+		{
+		cmd = cmd + "XML=\"<note-content>$FINALNAME\n\n\"$NOTE\"\n\n</note-content>\";";
+		}
+
+		cmd = cmd + tomboy + "SetNoteContentsXml string:$URI string:\"$XML\";";
+
+		// Default Notebook
+		if (!(sDefaultNotebook == ""))
+		{
+		cmd = cmd + tomboy + "AddTagToNote string:$URI  string:system:notebook:\"$NOTEBOOK\";";
+		}
+
+		if (bDisplayNote==true)
+		{
+		cmd = cmd + tomboy + "DisplayNote string:$URI;";
+		}
+
+		// Unicode Converter
+		cmd = fromUnicode(cmd);
+
+		// Execute Command
+		var args = [ "-c", cmd ];
+		process.run(false, args, args.length);
+
+}
+
+function EscapeText(txt){
+
+	// Escape or Replace Special Characters
+	txt = txt.replace(new RegExp("\\\\","g"), " \\\\ ");
+	txt = txt.replace(new RegExp("â","g"), "'");
+	txt = txt.replace(new RegExp("'","g"), "\'");
+	txt = txt.replace(new RegExp('"',"g"), '\\"');
+	txt = txt.replace(new RegExp('`',"g"), '\\`');
+
+	return String(txt);
+
+}
+
+function ReplaceXMLchars(txt){
+
+	// Replace disallowed reserved XML characters
+	txt = txt.replace(new RegExp("&","g"), "\&amp;");
+	txt = txt.replace(new RegExp("<","g"), "\&lt;");
+	txt = txt.replace(new RegExp(">","g"), "\&gt;");
+	txt = txt.replace(new RegExp("â","g"), "\&#45;");
+
+	return String(txt);
+
+}
+
+function SelectedText(){
+    var focusedWindow = document.commandDispatcher.focusedWindow;
+    var selection = focusedWindow.getSelection();
+    return String(selection);
+}
+
+function fromUnicode(value) {
+	const conv = Components.classes["@mozilla.org/intl/scriptableunicodeconverter"].createInstance(Components.interfaces.nsIScriptableUnicodeConverter);
+	conv.charset = "UTF-8";
+	return conv.ConvertFromUnicode(value) + conv.Finish();
+}
+
+function CurrentURL(){
+    var aDocShell = document.getElementById("content").webNavigation;
+    var url = aDocShell.currentURI.spec;
+    var title = null;
+    return url;
+}
+
+function PageTitle(){
+    var aDocShell = document.getElementById("content").webNavigation;
+    var url = aDocShell.currentURI.spec;
+    var title = null;
+    try {
+      title = aDocShell.document.title;
+    }catch (e) {
+      title = url;
+    }
+    return title;
+}
+
+function trim(stringToTrim) {
+	return stringToTrim.replace(/^\s+|\s+$/g,"");
+}
+
+
+
+
+

Added: trunk/extra/firefox-extension/chrome/content/tomfox.png
==============================================================================
Binary file. No diff available.

Added: trunk/extra/firefox-extension/chrome/locale/en-US/prefwindow.dtd
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/chrome/locale/en-US/prefwindow.dtd	Sun Jul 27 13:36:05 2008
@@ -0,0 +1,10 @@
+<!ENTITY prefwindow.title "Tomfox Preferences">
+<!ENTITY pane1.title "Tomfox Preferences">
+<!ENTITY checkdisplaynote.label "Display note once added">
+<!ENTITY checkdisplaynote.accesskey "D">
+<!ENTITY checkaddurl.label "Add website URL to notes">
+<!ENTITY checkaddurl.accesskey "U">
+<!ENTITY checkpromptfortitle.label "Prompt for note title (otherwise use page title)">
+<!ENTITY checkpromptfortitle.accesskey "P">
+<!ENTITY defaultnotebook.label "Default Notebook">
+

Added: trunk/extra/firefox-extension/chrome/locale/en-US/tomfox.dtd
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/chrome/locale/en-US/tomfox.dtd	Sun Jul 27 13:36:05 2008
@@ -0,0 +1,4 @@
+<!ENTITY rcmenu.label "Create Tomboy Note">
+
+
+

Added: trunk/extra/firefox-extension/chrome/locale/en-US/tomfox.properties
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/chrome/locale/en-US/tomfox.properties	Sun Jul 27 13:36:05 2008
@@ -0,0 +1 @@
+notetitleprompt=Enter note title:

Added: trunk/extra/firefox-extension/chrome/locale/pt-PT/prefwindow.dtd
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/chrome/locale/pt-PT/prefwindow.dtd	Sun Jul 27 13:36:05 2008
@@ -0,0 +1,10 @@
+<!ENTITY prefwindow.title "OpÃÃes do Tomfox">
+<!ENTITY pane1.title "Tomfox Preferences">
+<!ENTITY checkdisplaynote.label "Mostrar a nota logo apÃs a adiÃÃo">
+<!ENTITY checkdisplaynote.accesskey "L">
+<!ENTITY checkaddurl.label "Adicionar endereÃos Ãs notas">
+<!ENTITY checkaddurl.accesskey "N">
+<!ENTITY checkpromptfortitle.label "Pedir nome para a nota (se nÃo atribuir um tÃtulo à nota, o tÃtulo da pÃgina à usado)">
+<!ENTITY checkpromptfortitle.accesskey "P">
+<!ENTITY defaultnotebook.label "PadrÃo Tag">
+

Added: trunk/extra/firefox-extension/chrome/locale/pt-PT/tomfox.dtd
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/chrome/locale/pt-PT/tomfox.dtd	Sun Jul 27 13:36:05 2008
@@ -0,0 +1,4 @@
+<!ENTITY rcmenu.label "Criar nota no Tomboy">
+
+
+

Added: trunk/extra/firefox-extension/chrome/locale/pt-PT/tomfox.properties
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/chrome/locale/pt-PT/tomfox.properties	Sun Jul 27 13:36:05 2008
@@ -0,0 +1 @@
+notetitleprompt=Insira o tÃtulo da nota:

Added: trunk/extra/firefox-extension/defaults/preferences/tomfox.js
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/defaults/preferences/tomfox.js	Sun Jul 27 13:36:05 2008
@@ -0,0 +1,6 @@
+pref("extensions tomfox harrycoal co uk description", "chrome://tomfox/locale/tomfox.properties");
+pref("extensions.tomfox.bAddUrl", true);
+pref("extensions.tomfox.bDisplayNote", false);
+pref("extensions.tomfox.bPromptForTitle", false);
+pref("extensions.tomfox.sDefaultNotebook", "Snippets");
+

Added: trunk/extra/firefox-extension/install.rdf
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/install.rdf	Sun Jul 27 13:36:05 2008
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; 
+ xmlns:em="http://www.mozilla.org/2004/em-rdf#";>
+<Description about="urn:mozilla:install-manifest">
+    <em:id>tomfox harrycoal co uk</em:id>
+    <em:name>Tomfox</em:name>
+    <em:version>1.0</em:version>
+    <em:creator>Harry Coal</em:creator>
+    <em:description>Tomboy notes for Firefox.</em:description>
+    <em:homepageURL>http://harrycoal.co.uk/tomfox</em:homepageURL>
+    <em:optionsURL>chrome://tomfox/content/options.xul</em:optionsURL>
+    <em:iconURL>chrome://tomfox/content/tomfox.png</em:iconURL>
+    <em:aboutURL>chrome://tomfox/content/about.xul</em:aboutURL>
+    <em:contributor>Bruno Miguel (Portuguese Translation)</em:contributor>
+    <em:targetApplication>
+      <Description>
+        <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <!-- firefox -->
+        <em:minVersion>1.5</em:minVersion>
+        <em:maxVersion>3.0.*</em:maxVersion>
+      </Description>
+    </em:targetApplication>
+  </Description>
+</RDF>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]