Changeset 105
- Timestamp:
- Sun Aug 21 08:18:29 2005
- Files:
-
- trunk/transolution/xliffeditor/gtk_main.py (modified) (diff)
- trunk/transolution/xliffeditor/gtk_documentviewpanel.py (modified) (diff)
- trunk/transolution/xliffeditor/gtk_search_replace_dialog.py (modified) (diff)
- trunk/transolution/xliffeditor/glade/xliffeditor.glade (modified) (diff)
- trunk/transolution/tm/server/estreen.py (modified) (diff)
- trunk/transolution/tmx/xliff2tmx.py (modified) (diff)
- trunk/win_setup.py (modified) (diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
trunk/transolution/xliffeditor/gtk_main.py
r101 r105 19 19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 20 # 21 __version__ = '0.4 Beta 4'21 __version__ = '0.4 Beta 5' 21 21 22 22 import sys -
trunk/transolution/xliffeditor/gtk_documentviewpanel.py
r99 r105 563 563 def openTransUnit(self,*args,**kwargs): 564 564 ret = DocumentViewPanelBase.openTransUnit(self,*args,**kwargs) 565 if not settings.tm.automatic_lookup.lower =='true':565 if not settings.tm.automatic_lookup.lower() == 'true': 565 565 return ret 566 566 -
trunk/transolution/xliffeditor/gtk_search_replace_dialog.py
r2 r105 73 73 d['search_target'] = self.cb_target.get_active() 74 74 d['search_phrase'] = self.search_entry.get_text() 75 d['replace_phrase'] = self.replace_entry. child.get_text()75 d['replace_phrase'] = self.replace_entry.get_text() 75 75 self.search_settings = d 76 76 -
trunk/transolution/xliffeditor/glade/xliffeditor.glade
r101 r105 1629 1629 <widget class="GtkWindow" id="ReplaceDialog"> 1630 1630 <property name="visible">True</property> 1631 <property name="title" translatable="yes"> Find</property>1631 <property name="title" translatable="yes">Search</property> 1631 1631 <property name="type">GTK_WINDOW_TOPLEVEL</property> 1632 1632 <property name="window_position">GTK_WIN_POS_NONE</property> … … 1727 1727 1728 1728 <child> 1729 <widget class="Gtk ComboBoxEntry" id="replace_entry">1729 <widget class="GtkEntry" id="replace_entry"> 1729 1729 <property name="visible">True</property> 1730 <property name="can_focus">True</property> 1731 <property name="editable">True</property> 1732 <property name="visibility">True</property> 1733 <property name="max_length">0</property> 1734 <property name="text" translatable="yes"></property> 1735 <property name="has_frame">True</property> 1736 <property name="invisible_char" translatable="yes">*</property> 1737 <property name="activates_default">False</property> 1730 1738 </widget> 1731 1739 <packing> … … 1735 1743 <property name="top_attach">1</property> 1736 1744 <property name="bottom_attach">2</property> 1737 <property name="x_options">fill</property> 1738 <property name="y_options">fill</property> 1745 <property name="y_options"></property> 1739 1746 </packing> 1740 1747 </child> … … 1848 1855 <property name="has_default">True</property> 1849 1856 <property name="can_focus">True</property> 1850 <property name="label" translatable="yes">Search</property> 1851 <property name="use_underline">True</property> 1857 <property name="label">gtk-find</property> 1858 <property name="use_stock">True</property> 1852 1859 <property name="relief">GTK_RELIEF_NORMAL</property> 1853 1860 <property name="focus_on_click">True</property> … … 1861 1868 <property name="can_default">True</property> 1862 1869 <property name="can_focus">True</property> 1863 <property name="label" translatable="yes">Replace</property> 1864 <property name="use_underline">True</property> 1870 <property name="label">gtk-find-and-replace</property> 1871 <property name="use_stock">True</property> 1865 1872 <property name="relief">GTK_RELIEF_NORMAL</property> 1866 1873 <property name="focus_on_click">True</property> … … 1899 1906 <property name="visible">True</property> 1900 1907 <property name="can_focus">True</property> 1901 <property name="label" translatable="yes">Cancel</property> 1902 <property name="use_underline">True</property> 1908 <property name="label">gtk-close</property> 1909 <property name="use_stock">True</property> 1903 1910 <property name="relief">GTK_RELIEF_NORMAL</property> 1904 1911 <property name="focus_on_click">True</property> … … 1909 1916 <property name="padding">0</property> 1910 1917 <property name="expand">False</property> 1911 <property name="fill"> True</property>1918 <property name="fill">False</property> 1911 1918 </packing> 1912 1919 </child> … … 1915 1922 <packing> 1916 1923 <property name="padding">0</property> 1917 <property name="expand">False</property> 1918 <property name="fill">True</property> 1924 <property name="expand">True</property> 1925 <property name="fill">False</property> 1919 1926 </packing> 1920 1927 </child> -
trunk/transolution/tm/server/estreen.py
r88 r105 136 136 key = tu.getKey(slang) 137 137 tu.getKey(tlang) 138 val = ( getSeg(tu,slang), getSeg(tu,tlang) ) 138 139 except TMXException,e: 139 140 skipped+=1 140 141 continue 141 val = ( getSeg(tu,slang), getSeg(tu,tlang) )142 141 142 tmidx.addItem(index.IndexItem(key,val)) 142 143 ents += 1 143 144 if ents % 100 == 0: 144 145 print ents 146 if ents == 0: 147 raise SystemExit('No TUs matching Source and Target langs found in TMX.') 145 148 print "Total TU's added:%d skipped:%d"%(ents,skipped) 146 149 del tm … … 149 152 150 153 def getSeg(tu,lang): 154 lang = lang.lower() 151 155 for tuv in tu.tuvs: 152 if tuv.lang == lang: 156 if tuv.lang.lower() == lang: 152 156 return tuv.seg.node.cloneNode(True) 157 raise TMXException('No TUV with lang code found:%s'%(lang,)) 153 158 154 159 def startServer(slang1,tlang1,fnames,port): -
trunk/transolution/tmx/xliff2tmx.py
r104 r105 145 145 assert src_lang and trg_lang,'Source or Target language not set.' 146 146 147 filenode.parseSkeleton() 148 for seg in filenode.generateSegments(): 147 ## filenode.parseSkeleton() 148 for seg in filenode.generateSegments(use_skeleton=False): 149 149 if seg.__class__ is TuSegment and seg.tu.hasTarget(): 150 150 addTMXTu(dom,body,seg) -
trunk/win_setup.py
r103 r105 37 37 {"script": "sgml2xliff.py", 38 38 ## "icon_resources": [(1, "jajouka.ico")] 39 }, 40 {"script": "xliff2tmx.py", 41 ## "icon_resources": [(1, "jajouka.ico")] 39 42 } 40 43 ],
