Changeset 70
- Timestamp:
- Sun Jul 17 12:49:50 2005
- Files:
-
- trunk/transolution/xliffeditor/gtk_main.py (modified) (diff)
- trunk/transolution/xliffeditor/gtk_documentviewpanel.py (modified) (diff)
- trunk/transolution/xliffeditor/glade/xliffeditor.glade (modified) (diff)
- trunk/readme.txt (modified) (diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
trunk/transolution/xliffeditor/gtk_main.py
r69 r70 19 19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 20 # 21 __version__ = ' Alpha'21 __version__ = '0.4 Beta1' 21 21 22 22 import sys … … 160 160 # disable document toolbar 161 161 self.document_operations.set_sensitive(False) 162 163 self.widgets_to_diable_when_tu_closed = [g("tu_open_toolbar"),g("tags_menu"),] 164 self.widgets_to_diable_when_tu_open = [g("tu_nav_toolbar"),g("next_tu_menuitem"),g("previous_tu_menuitem")] #self.tu_closed_toolbar] 162 disable_when_tu_closed = ["tu_open_toolbar","tags_menu", 163 "commit_close1","cancel_close1", 164 "remove_target_close1","commit_open_next1", 165 "copy_source1","copy_from_tm1","copy_alttrans1", 166 ] 167 self.widgets_to_disable_when_tu_closed = [g(w) for w in disable_when_tu_closed] 168 self.widgets_to_disable_when_tu_open = [g("tu_nav_toolbar"),g("next_tu_menuitem"),g("previous_tu_menuitem")] #self.tu_closed_toolbar] 165 169 166 170 # setup combobox TU prev/next constraint … … 409 413 self.onTuConstraintChanged() 410 414 # setup the TU toolbars 411 for w in self.widgets_to_diable_when_tu_open: 415 for w in self.widgets_to_disable_when_tu_open: 411 415 w.set_sensitive(self.docpane.open_seg is None) 412 for w in self.widgets_to_diable_when_tu_closed: 416 for w in self.widgets_to_disable_when_tu_closed: 412 416 w.set_sensitive(self.docpane.open_seg is not None) 413 417 -
trunk/transolution/xliffeditor/gtk_documentviewpanel.py
r55 r70 169 169 self.target_control.grab_focus() 170 170 parent = self.main_app 171 for w in parent.widgets_to_diable_when_tu_open: 171 for w in parent.widgets_to_disable_when_tu_open: 171 171 w.set_sensitive(False) 172 for w in parent.widgets_to_diable_when_tu_closed: 172 for w in parent.widgets_to_disable_when_tu_closed: 172 172 w.set_sensitive(True) 173 173 … … 184 184 self.diff_widget.hide_all() 185 185 parent = self.main_app 186 for w in parent.widgets_to_diable_when_tu_open: 186 for w in parent.widgets_to_disable_when_tu_open: 186 186 w.set_sensitive(True) 187 for w in parent.widgets_to_diable_when_tu_closed: 187 for w in parent.widgets_to_disable_when_tu_closed: 187 187 w.set_sensitive(False) 188 188 -
trunk/transolution/xliffeditor/glade/xliffeditor.glade
r68 r70 495 495 496 496 <child internal-child="image"> 497 <widget class="GtkImage" id="image6 5">497 <widget class="GtkImage" id="image68"> 497 497 <property name="visible">True</property> 498 <property name="stock">gtk-media-forward</property> 499 <property name="icon_size">1</property> 498 <property name="stock">gtk-go-forward</property> 500 499 <property name="xalign">0.5</property> 501 500 <property name="yalign">0.5</property> … … 517 516 518 517 <child internal-child="image"> 519 <widget class="GtkImage" id="image6 6">518 <widget class="GtkImage" id="image69"> 519 518 <property name="visible">True</property> 520 519 <property name="stock">gtk-go-back</property> … … 554 553 555 554 <child> 556 <widget class="GtkMenuItem" id="commit_ &_close1">555 <widget class="GtkMenuItem" id="commit_close1"> 556 555 <property name="visible">True</property> 557 556 <property name="tooltip" translatable="yes">Commit and close translation unit or subtag</property> … … 565 564 566 565 <child> 567 <widget class="GtkMenuItem" id="cancel_ &_close1">566 <widget class="GtkMenuItem" id="cancel_close1"> 567 566 <property name="visible">True</property> 568 567 <property name="tooltip" translatable="yes">Cancel Changes and close translation unit</property> … … 576 575 577 576 <child> 578 <widget class="GtkMenuItem" id="remove_target_ &_close1">577 <widget class="GtkMenuItem" id="remove_target_close1"> 578 577 <property name="visible">True</property> 579 578 <property name="tooltip" translatable="yes">Remove translation segment and close</property> … … 587 586 588 587 <child> 589 <widget class="GtkMenuItem" id="commit_ &_open_next1">588 <widget class="GtkMenuItem" id="commit_open_next1"> 589 588 <property name="visible">True</property> 590 589 <property name="label" translatable="yes">Commit & Open Next</property> … … 671 670 <widget class="GtkMenuItem" id="tags_menu"> 672 671 <property name="visible">True</property> 673 <property name="label" translatable="yes">T _ags</property>672 <property name="label" translatable="yes">Ta_gs</property> 673 672 <property name="use_underline">True</property> 674 673 -
trunk/readme.txt
r4 r70 1 Transolution XLIFF Editor1 Transolution - An Open Source Translation Suite 1 1 2 requirements: 3 python >2.3 4 pygtk 2.4 (with py-glade) 2 Transolution consist of: 3 * XLIFF Editor 4 * TM Engine 5 * XLIFF filters 5 6 6 Optional but recommended for better performance: 7 4suite XML >1.0a4 7 Requirements: 8 * Python >2.3 9 * Pygtk 2.4 (with py-glade) 10 * 4suite XML >1.0a4. Optional but recommended for better performance: 8 11 9 To start editor run: xliffeditor.py10 To start a TM Server run: tm.py11 12 12 Some very crued xliff sample files are located in xliff_samples/ 13 Installation: 14 Add the transolution directory to your Python path or you have to be in the directory containing the transolution directory. 15 16 17 To start editor run: 18 xliffeditor.py 19 20 To start a TM Server run: 21 tm.py 22 23 Xliff filters: 24 sgml2xliff.py 25 xliff2sgml.py 26 27 28 For more info and test XLIFF's see Transolution homepage: 29 http://transolution.python-hosting.com/ 30 31 Contact: 32 <fredrik.corneliusson at gmail.com> 33 13 34 14 For more info see: http://transolution.python-hosting.com/
