tomboy r2048 - in trunk: . extra/firefox-extension extra/firefox-extension/content extra/firefox-extension/locale/ru-RU



Author: sharm
Date: Fri Aug  1 22:19:12 2008
New Revision: 2048
URL: http://svn.gnome.org/viewvc/tomboy?rev=2048&view=rev

Log:
* extra/firefox-extension/locale/ru-RU,
  extra/firefox-extension/locale/ru-RU/tomfox.dtd,
  extra/firefox-extension/locale/ru-RU/tomfox.properties,
  extra/firefox-extension/locale/ru-RU/prefwindow.dtd,
  extra/firefox-extension/chrome.manifest: New russian translation.
* extra/firefox-extension/install.rdf,
  extra/firefox-extension/content/rcmenu.xul,
  extra/firefox-extension/content/about.xul,
  extra/firefox-extension/content/options.xul,
  extra/firefox-extension/content/tomfox.js: Update to 1.0.1 (Harry
  Coal).
* extra/firefox-extension/licence.txt: Added standard Mozilla
  tri-license.
* extra/firefox-extension/build.sh,
  extra/firefox-extension/config_build.sh: Extension build scripts.

Added:
   trunk/extra/firefox-extension/build.sh   (contents, props changed)
   trunk/extra/firefox-extension/config_build.sh
   trunk/extra/firefox-extension/licence.txt
   trunk/extra/firefox-extension/locale/ru-RU/
   trunk/extra/firefox-extension/locale/ru-RU/prefwindow.dtd
   trunk/extra/firefox-extension/locale/ru-RU/tomfox.dtd
   trunk/extra/firefox-extension/locale/ru-RU/tomfox.properties
Modified:
   trunk/ChangeLog
   trunk/extra/firefox-extension/chrome.manifest
   trunk/extra/firefox-extension/content/about.xul
   trunk/extra/firefox-extension/content/options.xul
   trunk/extra/firefox-extension/content/rcmenu.xul
   trunk/extra/firefox-extension/content/tomfox.js
   trunk/extra/firefox-extension/install.rdf

Added: trunk/extra/firefox-extension/build.sh
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/build.sh	Fri Aug  1 22:19:12 2008
@@ -0,0 +1,128 @@
+#!/bin/bash
+# build.sh -- builds JAR and XPI files for mozilla extensions
+#   by Nickolay Ponomarev <asqueella gmail com>
+#   (original version based on Nathan Yergler's build script)
+# Most recent version is at <http://kb.mozillazine.org/Bash_build_script>
+
+# This script assumes the following directory structure:
+# ./
+#   chrome.manifest (optional - for newer extensions)
+#   install.rdf
+#   (other files listed in $ROOT_FILES)
+#
+#   content/    |
+#   locale/     |} these can be named arbitrary and listed in $CHROME_PROVIDERS
+#   skin/       |
+#
+#   defaults/   |
+#   components/ |} these must be listed in $ROOT_DIRS in order to be packaged
+#   ...         |
+#
+# It uses a temporary directory ./build when building; don't use that!
+# Script's output is:
+# ./$APP_NAME.xpi
+# ./$APP_NAME.jar  (only if $KEEP_JAR=1)
+# ./files -- the list of packaged files
+#
+# Note: It modifies chrome.manifest when packaging so that it points to 
+#       chrome/$APP_NAME.jar!/*
+
+#
+# default configuration file is ./config_build.sh, unless another file is 
+# specified in command-line. Available config variables:
+APP_NAME=          # short-name, jar and xpi files name. Must be lowercase with no spaces
+CHROME_PROVIDERS=  # which chrome providers we have (space-separated list)
+CLEAN_UP=          # delete the jar / "files" when done?       (1/0)
+ROOT_FILES=        # put these files in root of xpi (space separated list of leaf filenames)
+ROOT_DIRS=         # ...and these directories       (space separated list)
+BEFORE_BUILD=      # run this before building       (bash command)
+AFTER_BUILD=       # ...and this after the build    (bash command)
+
+if [ -z $1 ]; then
+  . ./config_build.sh
+else
+  . $1
+fi
+
+if [ -z $APP_NAME ]; then
+  echo "You need to create build config file first!"
+  echo "Read comments at the beginning of this script for more info."
+  exit;
+fi
+
+ROOT_DIR=`pwd`
+TMP_DIR=build
+
+#uncomment to debug
+#set -x
+
+# remove any left-over files from previous build
+rm -f $APP_NAME.jar $APP_NAME.xpi files
+rm -rf $TMP_DIR
+
+$BEFORE_BUILD
+
+mkdir --parents --verbose $TMP_DIR/chrome
+
+# generate the JAR file, excluding CVS and temporary files
+JAR_FILE=$TMP_DIR/chrome/$APP_NAME.jar
+echo "Generating $JAR_FILE..."
+for CHROME_SUBDIR in $CHROME_PROVIDERS; do
+  find $CHROME_SUBDIR -path '*CVS*' -prune -o -type f -print | grep -v \~ >> files
+done
+
+zip -0 -r $JAR_FILE `cat files`
+# The following statement should be used instead if you don't wish to use the JAR file
+#cp --verbose --parents `cat files` $TMP_DIR/chrome
+
+# prepare components and defaults
+echo "Copying various files to $TMP_DIR folder..."
+for DIR in $ROOT_DIRS; do
+  mkdir $TMP_DIR/$DIR
+  FILES="`find $DIR -path '*CVS*' -prune -o -type f -print | grep -v \~`"
+  echo $FILES >> files
+  cp --verbose --parents $FILES $TMP_DIR
+done
+
+# Copy other files to the root of future XPI.
+for ROOT_FILE in $ROOT_FILES install.rdf chrome.manifest; do
+  cp --verbose $ROOT_FILE $TMP_DIR
+  if [ -f $ROOT_FILE ]; then
+    echo $ROOT_FILE >> files
+  fi
+done
+
+cd $TMP_DIR
+
+if [ -f "chrome.manifest" ]; then
+  echo "Preprocessing chrome.manifest..."
+  # You think this is scary?
+  #s/^(content\s+\S*\s+)(\S*\/)$/\1jar:chrome\/$APP_NAME\.jar!\/\2/
+  #s/^(skin|locale)(\s+\S*\s+\S*\s+)(.*\/)$/\1\2jar:chrome\/$APP_NAME\.jar!\/\3/
+  #
+  # Then try this! (Same, but with characters escaped for bash :)
+  sed -i -r s/^\(content\\s+\\S*\\s+\)\(\\S*\\/\)$/\\1jar:chrome\\/$APP_NAME\\.jar!\\/\\2/ chrome.manifest
+  sed -i -r s/^\(skin\|locale\)\(\\s+\\S*\\s+\\S*\\s+\)\(.*\\/\)$/\\1\\2jar:chrome\\/$APP_NAME\\.jar!\\/\\3/ chrome.manifest
+
+  # (it simply adds jar:chrome/whatever.jar!/ at appropriate positions of chrome.manifest)
+fi
+
+# generate the XPI file
+echo "Generating $APP_NAME.xpi..."
+zip -r ../$APP_NAME.xpi *
+
+cd "$ROOT_DIR"
+
+echo "Cleanup..."
+if [ $CLEAN_UP = 0 ]; then
+  # save the jar file
+  mv $TMP_DIR/chrome/$APP_NAME.jar .
+else
+  rm ./files
+fi
+
+# remove the working files
+rm -rf $TMP_DIR
+echo "Done!"
+
+$AFTER_BUILD

Modified: trunk/extra/firefox-extension/chrome.manifest
==============================================================================
--- trunk/extra/firefox-extension/chrome.manifest	(original)
+++ trunk/extra/firefox-extension/chrome.manifest	Fri Aug  1 22:19:12 2008
@@ -1,8 +1,9 @@
-content	tomfox	jar:chrome/tomfox.jar!/content/
+content	tomfox	content/
 
-locale	tomfox	en-US	jar:chrome/tomfox.jar!/locale/en-US/
-locale	tomfox	pt-PT	jar:chrome/tomfox.jar!/locale/pt-PT/
+locale	tomfox	en-US	locale/en-US/
+locale	tomfox	pt-PT	locale/pt-PT/
+locale	tomfox	ru-RU	locale/ru-RU/
 
-skin	tomfox	classic/1.0	jar:chrome/tomfox.jar!/skin/
+skin	tomfox	classic/1.0	skin/
 
 overlay	chrome://browser/content/browser.xul	chrome://tomfox/content/rcmenu.xul

Added: trunk/extra/firefox-extension/config_build.sh
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/config_build.sh	Fri Aug  1 22:19:12 2008
@@ -0,0 +1,9 @@
+#!/bin/bash
+# Build config for build.sh
+APP_NAME=tomfox
+CHROME_PROVIDERS="content locale skin"
+CLEAN_UP=1
+ROOT_FILES=
+ROOT_DIRS="defaults"
+BEFORE_BUILD=
+AFTER_BUILD=

Modified: trunk/extra/firefox-extension/content/about.xul
==============================================================================
--- trunk/extra/firefox-extension/content/about.xul	(original)
+++ trunk/extra/firefox-extension/content/about.xul	Fri Aug  1 22:19:12 2008
@@ -1,4 +1,4 @@
-<?xml version="1.0"?>
+<?xml version="1.0"?>
 
 <!-- ***** BEGIN LICENSE BLOCK *****
   -   Version: MPL 1.1/GPL 2.0/LGPL 2.1
@@ -7,7 +7,7 @@
   - 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
@@ -20,7 +20,7 @@
   - Portions created by the Initial Developer are Copyright (C) 2008
   - the Initial Developer. All Rights Reserved.
   -
-  - Contributor(s): Bruno Miguel (Portuguese Translation)
+  - Contributor(s): Bruno Miguel (Portuguese Translation), Serg and Dmitry Kostenko (Russian 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
@@ -33,46 +33,54 @@
   - 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 ***** -->
-
+  -
+  - ***** 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";>
+<window
+    title="About Tomfox"
+    width="424"
+    height="340"
+    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'/>
 
-	<script type="application/x-javascript" src="chrome://tomfox/content/about.js"/>
+    <label> </label>
 
-	<image src="chrome://tomfox/content/logo.gif"  width='424' height='120'/>
+    <description>
+        Tomfox: Tomboy Notes for Firefox
+    </description>
 
-	<label> </label>
+    <description>
+        Created by: Harry Coal (harry harrycoal co uk)
+    </description>
 
-	<description>
-		Tomfox: Tomboy Notes for Firefox
-	</description>
+    <menuseparator/>
 
-	<description>
-		Created by: Harry Coal (harry harrycoal co uk)
-	</description>
+    <description>
+        Translations:
+    </description>
 
-	<menuseparator/>
+    <description>
+        Bruno Miguel (Portuguese)
+    </description>
 
-	<description>
-		Translations: Bruno Miguel (Portuguese)
-	</description>
+    <description>
+        Serg and Dmitry Kostenko (Russian Translation)
+    </description>
 
-	<menuseparator/>
+    <menuseparator/>
 
-	<label> </label>
+    <label> </label>
 
-	<description>
-		If you find Tomfox useful, please consider making a donation.
-	</description>
+    <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="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');"/>
+    <button label="Visit Website" accesskey="W" onclick="openLink('http://harrycoal.co.uk/tomfox');"/>
 
 </window>

Modified: trunk/extra/firefox-extension/content/options.xul
==============================================================================
--- trunk/extra/firefox-extension/content/options.xul	(original)
+++ trunk/extra/firefox-extension/content/options.xul	Fri Aug  1 22:19:12 2008
@@ -19,7 +19,7 @@
   - Portions created by the Initial Developer are Copyright (C) 2008
   - the Initial Developer. All Rights Reserved.
   -
-  - Contributor(s): Bruno Miguel (Portuguese Translation)
+  - Contributor(s): Bruno Miguel (Portuguese Translation), Serg and Dmitry Kostenko (Russian 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

Modified: trunk/extra/firefox-extension/content/rcmenu.xul
==============================================================================
--- trunk/extra/firefox-extension/content/rcmenu.xul	(original)
+++ trunk/extra/firefox-extension/content/rcmenu.xul	Fri Aug  1 22:19:12 2008
@@ -20,7 +20,7 @@
   - Portions created by the Initial Developer are Copyright (C) 2008
   - the Initial Developer. All Rights Reserved.
   -
-  - Contributor(s): Bruno Miguel (Portuguese Translation)
+  - Contributor(s): Bruno Miguel (Portuguese Translation), Serg and Dmitry Kostenko (Russian 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

Modified: trunk/extra/firefox-extension/content/tomfox.js
==============================================================================
--- trunk/extra/firefox-extension/content/tomfox.js	(original)
+++ trunk/extra/firefox-extension/content/tomfox.js	Fri Aug  1 22:19:12 2008
@@ -20,7 +20,7 @@
  * Portions created by the Initial Developer are Copyright (C) 2008
  * the Initial Developer. All Rights Reserved.
  *
- * Contributor(s): Bruno Miguel (Portuguese Translation)
+ * Contributor(s): Bruno Miguel (Portuguese Translation), Serg and Dmitry Kostenko (Russian 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

Modified: trunk/extra/firefox-extension/install.rdf
==============================================================================
--- trunk/extra/firefox-extension/install.rdf	(original)
+++ trunk/extra/firefox-extension/install.rdf	Fri Aug  1 22:19:12 2008
@@ -4,7 +4,7 @@
 <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:version>1.0.1</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>
@@ -12,6 +12,7 @@
     <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:contributor>Serg and Dmitry Kostenko (Russian Translation)</em:contributor>
     <em:targetApplication>
       <Description>
         <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <!-- firefox -->

Added: trunk/extra/firefox-extension/licence.txt
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/licence.txt	Fri Aug  1 22:19:12 2008
@@ -0,0 +1,37 @@
+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), Serg and Dmitry Kostenko (Russian 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 *****

Added: trunk/extra/firefox-extension/locale/ru-RU/prefwindow.dtd
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/locale/ru-RU/prefwindow.dtd	Fri Aug  1 22:19:12 2008
@@ -0,0 +1,10 @@
+<!ENTITY prefwindow.title "ÐÐÐÐÑÑÐÐ Tomfox">
+<!ENTITY pane1.title "ÐÐÐÐÑÑÐÐ Tomfox">
+<!ENTITY checkdisplaynote.label "ÐÐÐÐÐÑÐÐÑÑ ÐÐÐÐÐÐÑÐÐÑÐ ÐÐÐÐÑÐÐ">
+<!ENTITY checkdisplaynote.accesskey "Ð">
+<!ENTITY checkaddurl.label "ÐÐÐÐÐÐÑÑÑ ÐÐÑÐÑ ÑÐÐÑÐ Ð ÐÐÐÐÑÐÐÐ">
+<!ENTITY checkaddurl.accesskey "Ð">
+<!ENTITY checkpromptfortitle.label "CÐÑÐÑÐÐÐÑÑ ÐÐÐÐÐÐÐÐÐ ÐÐÐÐÑÐÐ (ÐÐÐÑÐ ÐÑÐÐÐÑÐÐÐÐÑÑ ÐÐÐÐÐÐÐÐÐ ÑÑÑÐÐÐÑÑ)">
+<!ENTITY checkpromptfortitle.accesskey "Ð">
+<!ENTITY defaultnotebook.label "ÐÐÐÐÐÐ (ÑÐÐÐÐÐ) ÐÐ ÑÐÐÐÑÐÐÐÑ">
+

Added: trunk/extra/firefox-extension/locale/ru-RU/tomfox.dtd
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/locale/ru-RU/tomfox.dtd	Fri Aug  1 22:19:12 2008
@@ -0,0 +1 @@
+<!ENTITY rcmenu.label "ÐÐÐÐÐÑÑ ÐÐÐÐÑÐÑ Tomboy">

Added: trunk/extra/firefox-extension/locale/ru-RU/tomfox.properties
==============================================================================
--- (empty file)
+++ trunk/extra/firefox-extension/locale/ru-RU/tomfox.properties	Fri Aug  1 22:19:12 2008
@@ -0,0 +1 @@
+notetitleprompt=ÐÐÐÐÐÑÐ ÐÐÐÐÐÐÐÐÐ ÐÐÐÐÑÐÐ:



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