mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-14 14:29:21 +00:00
fix: 修复i8n 500
This commit is contained in:
@@ -35,7 +35,10 @@ def i18n_trans(s):
|
||||
tpl, args = s.split(' % ', 1)
|
||||
args = args.split(', ')
|
||||
args = [gettext(arg) for arg in args]
|
||||
try:
|
||||
return gettext(tpl) % tuple(args)
|
||||
except TypeError:
|
||||
return gettext(tpl)
|
||||
|
||||
|
||||
def hello():
|
||||
|
Reference in New Issue
Block a user