From 20b59c35752fdcae25578ab5399efaa96080f27f Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 16 Jul 2023 19:35:03 +1000 Subject: [PATCH] Fix language code for pt-br (#5256) - Has to be lowercase in settings.py to work correctly --- InvenTree/InvenTree/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index 33428d64f4..4cb7c83469 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -762,14 +762,14 @@ LANGUAGES = [ ('no', _('Norwegian')), ('pl', _('Polish')), ('pt', _('Portuguese')), - ('pt-BR', _('Portuguese (Brazilian)')), + ('pt-br', _('Portuguese (Brazilian)')), ('ru', _('Russian')), ('sl', _('Slovenian')), ('sv', _('Swedish')), ('th', _('Thai')), ('tr', _('Turkish')), ('vi', _('Vietnamese')), - ('zh-hans', _('Chinese')), + ('zh-hans', _('Chinese (Simplified)')), ] # Testing interface translations