Translation files used by GVM 20.08

Use this category only if you have build GVM from sources or if you use packages provided by a 3rdparty repository.

Please read About the Greenbone Source Edition (GSE) and About GVM Architecture before posting.

When posting you should provide information about your environment using the following template:

GVM versions

gsad: 20.08.0 (‘gsad --version’)
gvmd: 20.08.0 (‘gvmd --version’)
openvas-scanner: 20.8.0 (‘openvas --version’, in older GVM versions < 11: ‘openvassd --version’)
gvm-libs: 20.8.0

Environment

Operating system: Ubuntu 18.04
Kernel:4.15.0-135-generic #139-Ubuntu (‘uname -a’)
Installation method / source: gsa

Hello,

I migrated from OpenVAS 9 to GVM 20.08 and it works fine.

I was a contributor of traditional Chinese language (https://github.com/greenbone/gsa/commits?author=jasoncheng7115), and I used to translate via gsa-zh_TW.po, but now I can’t find gsa-zh_TW.po in the latest version. file, how can I continue?

I have found the gsa-zh_TW.json file, but where can I find the gas_en.json file for referencing?

Thank you! :slightly_smiling_face:

Hi,

first of all thanks a lot for your translation. You are doing an awesome job! We have removed the support for gettext based translations because it was only a hack and did create some serious issues for us.

Because of these issues we switched to using the json files directly which are required by our used i18next library. At the moment only German translations are updated via yarn i18n-extract(https://github.com/greenbone/gsa/blob/master/gsa/package.json#L81). You need to update the babelrc file (https://github.com/greenbone/gsa/blob/master/gsa/.babelrc#L7) to add other languages and run yarn i18n-extract to update the files in https://github.com/greenbone/gsa/tree/master/gsa/public/locales.

2 Likes

And the new language must be added to https://github.com/greenbone/gsa/blob/master/gsa/src/gmp/locale/languages.js#L23 to be selectable in the user settings.

1 Like

Hi,

I have tried the languages.js modification and it does select zh_tw and display the Traditional Chinese string that I contributed before, the picture below:

I have also successfully yarn i18n-extract to update gsa-zh_tw.json to the latest language file to be translated, and I will start to work on the translation, thank you very much for your help!

3 Likes