Localization failure [SOLVED]


#1

I have translated the content into Chinese, but some of the contents are still displayed in English. For example:
#: frontend/src/metabase/visualizations/visualizations/Table.jsx:67
msgid “Fields to include”
msgstr “选择要显示的字段”

What do I need to do with it?


#2

I have not tried working with localization, so I’m not familiar with the development steps, but have a few points for you:

  • Which version of the source code are you building with? I noticed that the translation message “Fields to include” is not in the master branch version of frontend/src/metabase/visualizations/visualizations/Table.jsx but if I go back to for example v0.28.0 it is there. So it sounds like what you have is out of sync.

  • On master the metabase.pot file got updated a day ago:
    https://github.com/metabase/metabase/pull/8174

  • There is renewed hope that localization could be part of next major version


system language
#3

Thanks very much!

I used the source code of the 0.29.3 version,Table.jsx has been loaded before calling:
app.js
import { setLocalization } from “metabase/lib/i18n”;
if (window.MetabaseLocalization) {
setLocalization(window.MetabaseLocalization);
}
So it is not properly localized.


#4

That’s odd, and sounds like a bug. The setLocalization call is intentionally near the top of app.js, before most of the application code is loaded, so it shouldn’t be an issue. I’ll have to look into it. I’ve filed an issue here: https://github.com/metabase/metabase/issues/8209

@hztyzhq Are you able to contribute your translation to the project?


#5

@tom
By August 3, 300+ entries had been complete,and it is estimated that first draft will be completed by the end of September,then available to internal users and refined accroding to their feedback.

I will be very pleased if the project requires me to provide localization file.


#6

@hztyzhq We fixed the bug you mentioned here. Also we’re starting to use POEditor for managing localization: https://poeditor.com/join/project/ynjQmwSsGh It would be great if you could submit what you have and maybe other people can help you.


#7

There are 1112 messages that have not been translated.

How do I submit my completed translation(zh.po,zh.json)?


#8

After you have signed up (free) - and easiest to just use your GitHub account - you select Chinese. I can see there is already some Chinese (simplified) uploaded by someone. Then on the Chinese page there’s a button for uploading in different formats:


#9

@hztyzhq 你好,我也刚刚开始关注这个项目,本地化的文档能email一份给我吗 freedomme@163.com