diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2017-01-10 08:58:25 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2017-01-10 08:58:25 +0000 |
| commit | e1e535998b740ea79b0bdcd5b09a855e13af397f (patch) | |
| tree | dd5f3d9c670aeaa74b9ccb746d011bdb21330a18 /share | |
| parent | [Bug #1654798] Broken icon in LPE 'Fill between many' (diff) | |
| download | inkscape-e1e535998b740ea79b0bdcd5b09a855e13af397f.tar.gz inkscape-e1e535998b740ea79b0bdcd5b09a855e13af397f.zip | |
[Bug #1651334] Strings untranslatable due to word puzzles.
Fixed bugs:
- https://launchpad.net/bugs/1651334
(bzr r15405)
Diffstat (limited to 'share')
| -rwxr-xr-x | share/extensions/draw_from_triangle.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/share/extensions/draw_from_triangle.py b/share/extensions/draw_from_triangle.py index 3146fe26e..fd966b1d1 100755 --- a/share/extensions/draw_from_triangle.py +++ b/share/extensions/draw_from_triangle.py @@ -176,16 +176,17 @@ def cot(x):#cotangent(x) def report_properties( params ):#report to the Inkscape console using errormsg # TODO: unit identifier needs solution for arbitrary document scale unit = Draw_From_Triangle.getDocumentUnit(e) - inkex.errormsg(_("Side Length 'a' (" + unit + "): " + str( params[0][0] ) )) - inkex.errormsg(_("Side Length 'b' (" + unit + "): " + str( params[0][1] ) )) - inkex.errormsg(_("Side Length 'c' (" + unit + "): " + str( params[0][2] ) )) - inkex.errormsg(_("Angle 'A' (radians): " + str( params[1][0] ) )) - inkex.errormsg(_("Angle 'B' (radians): " + str( params[1][1] ) )) - inkex.errormsg(_("Angle 'C' (radians): " + str( params[1][2] ) )) - inkex.errormsg(_("Semiperimeter (px): " + str( params[4][1] ) )) - inkex.errormsg(_("Area ("+ unit + "^2): " + str( params[4][0] ) )) + + inkex.errormsg(_("Side Length 'a' ({0}): {1}").format(unit, str(params[0][0])) ) + inkex.errormsg(_("Side Length 'b' ({0}): {1}").format(unit, str(params[0][1])) ) + inkex.errormsg(_("Side Length 'c' ({0}): {1}").format(unit, str(params[0][2])) ) + inkex.errormsg(_("Angle 'A' (radians): {}").format(str(params[1][0])) ) + inkex.errormsg(_("Angle 'B' (radians): {}").format(str(params[1][1])) ) + inkex.errormsg(_("Angle 'C' (radians): {}").format(params[1][2]) ) + inkex.errormsg(_("Semiperimeter (px): {}").format(params[4][1]) ) + inkex.errormsg(_("Area ({0}^2): {1}").format(unit, str(params[4][0])) ) return - + class Style(object): #container for style information def __init__(self, options): |
