superset icon indicating copy to clipboard operation
superset copied to clipboard

Portuguese Translation Doesn't Translate Everything

Open csc5k opened this issue 8 years ago • 5 comments

Superset version

0.24.0

Expected results

All tabs, non-data words (e.g. "since" and "until," month names) are translated to Portuguese

Actual results

Only the Security tab is translated image

csc5k avatar Jun 06 '18 11:06 csc5k

Please reproduce with 0.25 or master

xrmx avatar Jun 06 '18 12:06 xrmx

Thanks, I upgraded and some more buttons are translated but still not all. What I can see that needs to be translated:

Months: image

"Charts" and "Dashboards": image

Edit/View dashboard and Actions dropdown: image

"Since" and "Until" in a date filter: image

Tooltips when hovering over buttons: image

csc5k avatar Jun 08 '18 08:06 csc5k

Is there a translation file somewhere? We have a team in Mozambique who is fluent in Portuguese, so they could contribute to closing these gaps

csc5k avatar Jun 08 '18 08:06 csc5k

Instructions: https://github.com/apache/incubator-superset/blob/master/CONTRIBUTING.md#translations

File: https://github.com/apache/incubator-superset/blob/master/superset/translations/pt_BR/LC_MESSAGES/messages.po

mistercrunch avatar Jun 08 '18 15:06 mistercrunch

Is there a way to translate the time_range filter? When I change the names inside the DateFilterControl.jsx to t(English) it displays the Portuguese words, but the filter doesn't work. I think it is because the moment (eg. moment().startOf('day').subtract(1, units).format(MOMENT_FORMAT)) only works with English words.

Edit

I know that it is possible to set moment.locale(), but do I need to do it in every file?

SWoto avatar Oct 25 '19 11:10 SWoto