- added a fix in the Gerber parser when adding the geometry in the self.apertures dict for the case that the current aperture is None (Allegro does that)

- finished support for internationalization by adding a set of .po/.mo files for the English language. Unfortunately the final action can be done only when Beta will be out of Beta (no more changes) or when I will decide to stop working on this app.
- changed the tooltip for 'feedrate_rapids' parameter to point out that this parameter is useful only for the Marlin postprocessor
This commit is contained in:
Marius Stanciu
2019-03-10 14:34:13 +02:00
parent de79370fb3
commit 53627b566c
98 changed files with 25132 additions and 3092 deletions

View File

@@ -76,7 +76,7 @@ def on_language_apply_click(app, restart=False):
restart_program(app=app)
def apply_language(filename, lang=None):
def apply_language(domain, lang=None):
lang_code = ''
if lang is None:
@@ -97,7 +97,7 @@ def apply_language(filename, lang=None):
return "no language"
else:
try:
current_lang = gettext.translation(str(filename), localedir=languages_dir(), languages=[lang_code])
current_lang = gettext.translation(str(domain), localedir=languages_dir(), languages=[lang_code])
current_lang.install()
except Exception as e:
log.debug("FlatCAMTranslation.apply_language() --> %s" % str(e))