Self hosted FLOSS fitness/workout, nutrition and weight tracker
Also extract the settings units
Roland Geider97603c2935d8
diff --git a/wger/core/management/commands/extract-i18n.py b/wger/core/management/commands/extract-i18n.pyindex a7561f2fd..52a153c43 100644--- a/wger/core/management/commands/extract-i18n.py+++ b/wger/core/management/commands/extract-i18n.py@@ -16,6 +16,7 @@from django.core.management.base import BaseCommand+from wger.core.models import SettingUnitfrom wger.exercises.models import (ExerciseCategory,Muscle,@@ -46,3 +47,8 @@ class Command(BaseCommand):for muscle in Muscle.objects.all():self.stdout.write('msgid "{0}"\n''msgstr ""\n\n'.format(muscle))++ # Setting units+ for unit in SettingUnit.objects.all():+ self.stdout.write('msgid "{0}"\n'+ 'msgstr ""\n\n'.format(unit))