summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/GUI/xasyStrings.py
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-02-28 18:48:48 +0000
committerKarl Berry <karl@freefriends.org>2019-02-28 18:48:48 +0000
commit3a9439b815af6c2d41c60f6694d88f2852544442 (patch)
tree6cc1c05e02ef84a1aeb2448b30814d7fc360ed9e /Master/texmf-dist/asymptote/GUI/xasyStrings.py
parent61a286ce26800c5976ff5c8c8795dc7eea404fd2 (diff)
asymptote 2.47 support files
git-svn-id: svn://tug.org/texlive/trunk@50168 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/asymptote/GUI/xasyStrings.py')
-rwxr-xr-xMaster/texmf-dist/asymptote/GUI/xasyStrings.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/Master/texmf-dist/asymptote/GUI/xasyStrings.py b/Master/texmf-dist/asymptote/GUI/xasyStrings.py
new file mode 100755
index 00000000000..53f83a64f14
--- /dev/null
+++ b/Master/texmf-dist/asymptote/GUI/xasyStrings.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python3
+
+import gettext
+
+p = property
+
+class xasyString:
+ def __init__(self, lang=None):
+ s = self
+ if lang is None:
+ _ = lambda x: x
+ else:
+ lng = gettext.translation('base', localedir='GUI/locale', languages=[lang])
+ lng.install()
+ _ = lng.gettext
+
+ s.rotate = _('Rotate')
+ s.scale = _('Scale')
+ s.translate = _('Translate')
+
+ s.fileOpenFailed = _('File Opening Failed.')
+ s.fileOpenFailedText = _('File could not be opened.')
+ s.asyfyComplete = _('Ready.')