summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2012-06-15 15:52:29 +0000
committerJazzyNico <nicoduf@yahoo.fr>2012-06-15 15:52:29 +0000
commit7274dd39baf079b79098076ed940c51274311338 (patch)
treed4fa1d371f2a920da73305a94355c294bd53ed99 /share
parentFix new deprecated GTK+ symbols in desktop-widget (diff)
downloadinkscape-7274dd39baf079b79098076ed940c51274311338.tar.gz
inkscape-7274dd39baf079b79098076ed940c51274311338.zip
Translations. Fix for Bug #837856 (Help: localized keys and mouse refs is not opened.) and French translation update.
(bzr r11500)
Diffstat (limited to 'share')
-rw-r--r--share/extensions/inkscape_help_commandline.inx27
-rw-r--r--share/extensions/inkscape_help_faq.inx27
-rw-r--r--share/extensions/inkscape_help_keys.inx27
-rw-r--r--share/extensions/inkscape_help_manual.inx27
-rw-r--r--share/extensions/inkscape_help_relnotes.inx27
-rwxr-xr-xshare/extensions/launch_webbrowser.py8
6 files changed, 76 insertions, 67 deletions
diff --git a/share/extensions/inkscape_help_commandline.inx b/share/extensions/inkscape_help_commandline.inx
index b010296fc..b87b154f6 100644
--- a/share/extensions/inkscape_help_commandline.inx
+++ b/share/extensions/inkscape_help_commandline.inx
@@ -1,14 +1,15 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>Command Line Options</_name>
- <id>org.inkscape.help.commandline</id>
- <dependency type="executable" location="extensions">launch_webbrowser.py</dependency>
- <param name="url" gui-hidden="true" type="string">http://inkscape.org/doc/inkscape-man.html</param>
- <effect needs-document="false">
- <object-type>all</object-type>
- <effects-menu hidden="true"/>
- </effect>
- <script>
- <command reldir="extensions" interpreter="python">launch_webbrowser.py</command>
- </script>
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <_name>Command Line Options</_name>
+ <id>org.inkscape.help.commandline</id>
+ <dependency type="executable" location="extensions">launch_webbrowser.py</dependency>
+ <!-- i18n. Please don't translate it unless a page exists in your language -->
+ <_param name="url" gui-hidden="true" type="string">http://inkscape.org/doc/inkscape-man.html</_param>
+ <effect needs-document="false">
+ <object-type>all</object-type>
+ <effects-menu hidden="true" />
+ </effect>
+ <script>
+ <command reldir="extensions" interpreter="python">launch_webbrowser.py</command>
+ </script>
</inkscape-extension>
diff --git a/share/extensions/inkscape_help_faq.inx b/share/extensions/inkscape_help_faq.inx
index 5f7821b04..aa2afcb2c 100644
--- a/share/extensions/inkscape_help_faq.inx
+++ b/share/extensions/inkscape_help_faq.inx
@@ -1,14 +1,15 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>FAQ</_name>
- <id>org.inkscape.help.faq</id>
- <dependency type="executable" location="extensions">launch_webbrowser.py</dependency>
- <param name="url" gui-hidden="true" type="string">http://wiki.inkscape.org/wiki/index.php/FAQ</param>
- <effect needs-document="false">
- <object-type>all</object-type>
- <effects-menu hidden="true"/>
- </effect>
- <script>
- <command reldir="extensions" interpreter="python">launch_webbrowser.py</command>
- </script>
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <_name>FAQ</_name>
+ <id>org.inkscape.help.faq</id>
+ <dependency type="executable" location="extensions">launch_webbrowser.py</dependency>
+ <!-- i18n. Please don't translate it unless a page exists in your language -->
+ <_param name="url" gui-hidden="true" type="string">http://wiki.inkscape.org/wiki/index.php/FAQ</_param>
+ <effect needs-document="false">
+ <object-type>all</object-type>
+ <effects-menu hidden="true" />
+ </effect>
+ <script>
+ <command reldir="extensions" interpreter="python">launch_webbrowser.py</command>
+ </script>
</inkscape-extension>
diff --git a/share/extensions/inkscape_help_keys.inx b/share/extensions/inkscape_help_keys.inx
index 30289aece..9608ac7b9 100644
--- a/share/extensions/inkscape_help_keys.inx
+++ b/share/extensions/inkscape_help_keys.inx
@@ -1,14 +1,15 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>Keys and Mouse Reference</_name>
- <id>org.inkscape.help.keys</id>
- <dependency type="executable" location="extensions">launch_webbrowser.py</dependency>
- <_param name="url" gui-hidden="true" type="string">http://inkscape.org/doc/keys048.html</_param>
- <effect needs-document="false">
- <object-type>all</object-type>
- <effects-menu hidden="true"/>
- </effect>
- <script>
- <command reldir="extensions" interpreter="python">launch_webbrowser.py</command>
- </script>
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <_name>Keys and Mouse Reference</_name>
+ <id>org.inkscape.help.keys</id>
+ <dependency type="executable" location="extensions">launch_webbrowser.py</dependency>
+ <!-- i18n. Please don't translate it unless a page exists in your language -->
+ <_param name="url" gui-hidden="true" type="string">http://inkscape.org/doc/keys048.html</_param>
+ <effect needs-document="false">
+ <object-type>all</object-type>
+ <effects-menu hidden="true" />
+ </effect>
+ <script>
+ <command reldir="extensions" interpreter="python">launch_webbrowser.py</command>
+ </script>
</inkscape-extension>
diff --git a/share/extensions/inkscape_help_manual.inx b/share/extensions/inkscape_help_manual.inx
index 08713e7e9..e96f4ff8c 100644
--- a/share/extensions/inkscape_help_manual.inx
+++ b/share/extensions/inkscape_help_manual.inx
@@ -1,14 +1,15 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>Inkscape Manual</_name>
- <id>org.inkscape.help.manual</id>
- <dependency type="executable" location="extensions">launch_webbrowser.py</dependency>
- <param name="url" gui-hidden="true" type="string">http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.php</param>
- <effect needs-document="false">
- <object-type>all</object-type>
- <effects-menu hidden="true"/>
- </effect>
- <script>
- <command reldir="extensions" interpreter="python">launch_webbrowser.py</command>
- </script>
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <_name>Inkscape Manual</_name>
+ <id>org.inkscape.help.manual</id>
+ <dependency type="executable" location="extensions">launch_webbrowser.py</dependency>
+ <!-- i18n. Please don't translate it unless a page exists in your language -->
+ <_param name="url" gui-hidden="true" type="string">http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.php</_param>
+ <effect needs-document="false">
+ <object-type>all</object-type>
+ <effects-menu hidden="true" />
+ </effect>
+ <script>
+ <command reldir="extensions" interpreter="python">launch_webbrowser.py</command>
+ </script>
</inkscape-extension>
diff --git a/share/extensions/inkscape_help_relnotes.inx b/share/extensions/inkscape_help_relnotes.inx
index 7b034da8d..9f59513ba 100644
--- a/share/extensions/inkscape_help_relnotes.inx
+++ b/share/extensions/inkscape_help_relnotes.inx
@@ -1,14 +1,15 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>New in This Version</_name>
- <id>org.inkscape.help.relnotes</id>
- <dependency type="executable" location="extensions">launch_webbrowser.py</dependency>
- <param name="url" gui-hidden="true" type="string">http://wiki.inkscape.org/wiki/index.php/Release_notes/0.49</param>
- <effect needs-document="false">
- <object-type>all</object-type>
- <effects-menu hidden="true"/>
- </effect>
- <script>
- <command reldir="extensions" interpreter="python">launch_webbrowser.py</command>
- </script>
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <_name>New in This Version</_name>
+ <id>org.inkscape.help.relnotes</id>
+ <dependency type="executable" location="extensions">launch_webbrowser.py</dependency>
+ <!-- i18n. Please don't translate it unless a page exists in your language -->
+ <_param name="url" gui-hidden="true" type="string">http://wiki.inkscape.org/wiki/index.php/Release_notes/0.49</_param>
+ <effect needs-document="false">
+ <object-type>all</object-type>
+ <effects-menu hidden="true" />
+ </effect>
+ <script>
+ <command reldir="extensions" interpreter="python">launch_webbrowser.py</command>
+ </script>
</inkscape-extension>
diff --git a/share/extensions/launch_webbrowser.py b/share/extensions/launch_webbrowser.py
index 8de5611be..387d8b2cb 100755
--- a/share/extensions/launch_webbrowser.py
+++ b/share/extensions/launch_webbrowser.py
@@ -1,7 +1,11 @@
#!/usr/bin/env python
-import webbrowser, threading
+import gettext
+import webbrowser
+import threading
from optparse import OptionParser
+_ = gettext.gettext
+
class VisitWebSiteWithoutLockingInkscape(threading.Thread):
def __init__(self):
threading.Thread.__init__ (self)
@@ -12,7 +16,7 @@ class VisitWebSiteWithoutLockingInkscape(threading.Thread):
(self.options, args) = parser.parse_args()
def run(self):
- webbrowser.open(self.options.url)
+ webbrowser.open(_(self.options.url))
vwswli = VisitWebSiteWithoutLockingInkscape()
vwswli.start()