better translation interface, thanks Daniel González Zaballos
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 1.99.7 (2012-05-10 15:12:10) dev
|
Version 1.99.7 (2012-05-10 16:30:33) dev
|
||||||
|
|||||||
@@ -6,12 +6,17 @@ function delkey(id) {
|
|||||||
jQuery('#'+id+' TEXTAREA').val(String.fromCharCode(127));
|
jQuery('#'+id+' TEXTAREA').val(String.fromCharCode(127));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
function hideShowTranslated(){
|
||||||
|
jQuery(".translated").closest("p").toggle();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{{block sectionclass}}edit_language{{end}}
|
{{block sectionclass}}edit_language{{end}}
|
||||||
|
|
||||||
<h2>{{=T('Editing Language file')}} "{{=filename}}"</h2>
|
<h2>{{=T('Editing Language file')}} "{{=filename}}"</h2>
|
||||||
|
<a class="button" href="#" onclick="hideShowTranslated(this);">
|
||||||
|
<span>{{=T('Hide/Show Translated strings')}}</span>
|
||||||
|
</a>
|
||||||
<div class="languageform">
|
<div class="languageform">
|
||||||
{{=form}}
|
{{=form}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+2
-1
@@ -308,8 +308,9 @@ def findT(path, language='en-us'):
|
|||||||
mp = os.path.join(path, 'models')
|
mp = os.path.join(path, 'models')
|
||||||
cp = os.path.join(path, 'controllers')
|
cp = os.path.join(path, 'controllers')
|
||||||
vp = os.path.join(path, 'views')
|
vp = os.path.join(path, 'views')
|
||||||
|
mop = os.path.join(path, 'modules')
|
||||||
for file in listdir(mp, '.+\.py', 0) + listdir(cp, '.+\.py', 0)\
|
for file in listdir(mp, '.+\.py', 0) + listdir(cp, '.+\.py', 0)\
|
||||||
+ listdir(vp, '.+\.html', 0):
|
+ listdir(vp, '.+\.html', 0) + listdir(mop, '.+\.py', 0):
|
||||||
fp = portalocker.LockedFile(file, 'r')
|
fp = portalocker.LockedFile(file, 'r')
|
||||||
data = fp.read()
|
data = fp.read()
|
||||||
fp.close()
|
fp.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user