Localization not works perfect

In a fresh tutor install, I tried language code de-de and zh-tw, both in openedx-i18n projectproject, some strings are not translated, like sign in ,

How to solve this ? Thanks in advance, this trouble have made me unhappy for many days. Any help will be appreciated.

Hi @teruun! This is an Open edX issue. Some of the strings in the js code are not fully translated. The localized strings that you are looking for should be in lms/static/js/i18n/*/djangojs.js. I believe these files should be generated automatically with some command, but I have no idea which one. Maybe try your luck on the Open edX forums?

Hi, @regis. Nice to get your advice. Take care in this virus era, best wishes for you.

It’s strange there are very few discussions about this issue of open edx. And I installed a docker devstack of ironwood version and found these two commands can work for zh-cn language code. But for others, it still doesn’t work.

 `  paver i18n_fastgenerate`

 ` python manage.py lms compilejsi18n --settings=devstack_docker`

In tutor, I ran
tutor local run lms bash
and then paver i18n_fastgenerate command triggers an error. Maybe I can substitue the djangojs.js file you said, but any other quick solution for this?

---> pavelib.i18n.i18n_fastgenerate
i18n_tool generate
INFO:i18n.generate:Merging djangojs.po locale ar
INFO:i18n.generate:Merging django.po locale ar
INFO:i18n.generate:Merging djangojs.po locale es_419
INFO:i18n.generate:Merging django.po locale es_419
INFO:i18n.generate:Merging djangojs.po locale fr
INFO:i18n.generate:Merging django.po locale fr
INFO:i18n.generate:Merging djangojs.po locale he
INFO:i18n.generate:Merging django.po locale he
INFO:i18n.generate:Merging djangojs.po locale hi
INFO:i18n.generate:Merging django.po locale hi
INFO:i18n.generate:Merging djangojs.po locale ko_KR
INFO:i18n.generate:Merging django.po locale ko_KR
INFO:i18n.generate:Merging djangojs.po locale pt_BR
INFO:i18n.generate:Merging django.po locale pt_BR
INFO:i18n.generate:Merging djangojs.po locale ru
INFO:i18n.generate:Merging django.po locale ru
INFO:i18n.generate:Merging djangojs.po locale zh_CN
INFO:i18n.generate:Merging django.po locale zh_CN
INFO:i18n.generate:Merging djangojs.po locale eo
INFO:i18n.generate:Merging django.po locale eo
INFO:i18n.generate:Merging djangojs.po locale fake2
INFO:i18n.generate:Merging django.po locale fake2
INFO:i18n.generate:Merging djangojs.po locale rtl
INFO:i18n.generate:Merging django.po locale rtl
INFO:i18n.generate:Merging djangojs.po locale en
INFO:i18n.generate:Merging django.po locale en
INFO:i18n.execute:Executing in . ...
INFO:i18n.execute:django-admin.py compilemessages -v0
Traceback (most recent call last):
  File "/openedx/venv/bin/i18n_tool", line 11, in <module>
    sys.exit(main())
  File "/openedx/venv/local/lib/python2.7/site-packages/i18n/main.py", line 60, in main
    return module.main()
  File "/openedx/venv/local/lib/python2.7/site-packages/i18n/__init__.py", line 51, in __call__
    return self.run(args)
  File "/openedx/venv/local/lib/python2.7/site-packages/i18n/generate.py", line 189, in run
    execute(compile_cmd, working_directory=configuration.root_dir, stderr=stderr)
  File "/openedx/venv/local/lib/python2.7/site-packages/i18n/execute.py", line 21, in execute
    sp.check_call(command, cwd=working_directory, stderr=stderr, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'django-admin.py compilemessages -v0' returned non-zero exit status 1


Captured Task Output:
---------------------

---> pavelib.i18n.i18n_fastgenerate
i18n_tool generate

Build failed running pavelib.i18n.i18n_fastgenerate: Subprocess return code: 1