Move tooltip for rect width/height to the label instead of just input control. Update all translations.

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1534 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2010-04-21 16:05:32 +00:00
parent 8c13cceea9
commit ffc666c77f
58 changed files with 431 additions and 418 deletions

View File

@@ -13,6 +13,19 @@ import os
import json
from types import DictType
def changeTooltipTarget(j):
"""
Moves the tooltip target for some tools
"""
tools = ['rect_width', 'rect_height']
for row in j:
try:
id = row['id']
if id in tools:
row['id'] = row['id'] + '_tool'
except KeyError:
pass
def updateMainMenu(j):
"""
Converts title into textContent for items in the main menu
@@ -58,7 +71,7 @@ def processFile(filename):
j = json.loads(in_string)
# process the JSON object here
# updateMainMenu(j)
changeTooltipTarget(j)
# now write it out back to the file
s = ourPrettyPrint(j).encode("UTF-8")