diff options
Diffstat (limited to 'Master/texmf-dist/asymptote/GUI/xasyStrings.py')
-rwxr-xr-x | Master/texmf-dist/asymptote/GUI/xasyStrings.py | 23 |
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.') |