[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: l10n-kde4/scripts/lokalize
From: Nickolai Shaforostoff <shafff () ukr ! net>
Date: 2009-05-07 15:38:52
Message-ID: 1241710732.874480.12551.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 964886 by shaforo:
add .rc file for new lokalize and explanations on how to plug the script
A README
M +3 -4 opensrc.py
A opensrc.rc
--- trunk/l10n-kde4/scripts/lokalize/opensrc.py #964885:964886
@@ -1,13 +1,12 @@
# -*- coding: utf-8 -*-
import os,sys
-import Lokalize
import Editor
ourPath=([p for p in sys.path if p.endswith('/scripts/lokalize')]+[''])[0]
def srcFileOpenRequested(filename, line):
-
- if Lokalize.activeEditor() and Editor.currentFile()!='':
+
+ if Editor.isValid() and Editor.currentFile()!='':
(path, pofilename)=os.path.split(Editor.currentFile())
(package, ext)=os.path.splitext(pofilename)
(path, module)=os.path.split(path)
@@ -29,7 +28,7 @@
tryList=[ourPath+'/../../../KDE/'+module+'/'+package+'/'+filename,
ourPath+'/../../../KDE/'+module+'/'+package+'/src/'+filename,
ourPath+'/../../../KDE/'+module+'/'+package+'/'+package+'/'+filename]
-
+
for i in range(len(tryList)): tryList[i]=os.path.normpath(tryList[i])
srcFilePath=(filter(lambda p:os.path.exists(p),tryList)+[''])[0]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic