From: <dwa...@us...> - 2008-04-30 16:09:13
|
Revision: 7305 http://translate.svn.sourceforge.net/translate/?rev=7305&view=rev Author: dwaynebailey Date: 2008-04-30 09:09:11 -0700 (Wed, 30 Apr 2008) Log Message: ----------- Add help entry for localisation guide Modified Paths: -------------- src/trunk/virtaal/data/virtaal.glade src/trunk/virtaal/virtaal/main_window.py Modified: src/trunk/virtaal/data/virtaal.glade =================================================================== --- src/trunk/virtaal/data/virtaal.glade 2008-04-30 15:41:37 UTC (rev 7304) +++ src/trunk/virtaal/data/virtaal.glade 2008-04-30 16:09:11 UTC (rev 7305) @@ -142,6 +142,24 @@ <widget class="GtkMenu" id="menu3"> <property name="visible">True</property> <child> + <widget class="GtkImageMenuItem" id="menuitem_localization_guide"> + <property name="visible">True</property> + <property name="label" translatable="yes">_Localization Guide</property> + <property name="use_underline">True</property> + <signal name="activate" handler="on_localization_guide_activate"/> + <child internal-child="image"> + <widget class="GtkImage" id="menu-item-image2"> + <property name="stock">gtk-help</property> + </widget> + </child> + </widget> + </child> + <child> + <widget class="GtkSeparatorMenuItem" id="separator1"> + <property name="visible">True</property> + </widget> + </child> + <child> <widget class="GtkImageMenuItem" id="imagemenuitem10"> <property name="visible">True</property> <property name="label">gtk-about</property> Modified: src/trunk/virtaal/virtaal/main_window.py =================================================================== --- src/trunk/virtaal/virtaal/main_window.py 2008-04-30 15:41:37 UTC (rev 7304) +++ src/trunk/virtaal/virtaal/main_window.py 2008-04-30 16:09:11 UTC (rev 7305) @@ -104,6 +104,7 @@ "on_save_activate" : self._on_file_save, "on_saveas_activate" : self._on_file_saveas, "on_about_activate" : self._on_help_about, + "on_localization_guide_activate" : self._on_localization_guide, } self.gui.signal_autoconnect(dic) @@ -319,6 +320,12 @@ def _on_help_about(self, widget=None): About(self.main_window) + def _on_localization_guide(self, widget=None): + # Should be more redundent + # If the guide is installed and no internet then open local + # If Internet then go live, if no Internet or guide then disable + os.system("xdg-open http://translate.sourceforge.net/wiki/guide/start") + def run(self): if len(sys.argv) > 1: self.load_file(sys.argv[1]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |