Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename "slice" to "chart" and update translations #5008

Merged
merged 2 commits into from May 22, 2018

Conversation

betodealmeida
Copy link
Member

@betodealmeida betodealmeida commented May 15, 2018

This PR renames "slice" to "chart" in all user facing strings. Code has not been updated.

I also regenerated the messages.pot file, since it hasn't been updated in a while (babel.cfg was still pointing to the old location of Javascript files, before @mistercrunch's reorg), and updated all the .po files.

I'll update the pt_BR translation on my free time.

$ fabmanager babel-extract --target superset/translations/ --output superset/translations/messages.pot --config superset/translations/babel.cfg -k _ -k __ -k t -k tn -k tct
$ for LANG in en de es fr it ja pt_BR ru zh
> do
> pybabel update -i superset/translations/messages.pot -d superset/translations -l ${LANG}
> po2json -d superset -f jed1.x superset/translations/${LANG}/LC_MESSAGES/messages.po superset/translations/${LANG}/LC_MESSAGES/messages.json
> done

@codecov-io
Copy link

Codecov Report

Merging #5008 into master will increase coverage by 0.21%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5008      +/-   ##
==========================================
+ Coverage   77.13%   77.34%   +0.21%     
==========================================
  Files          44       44              
  Lines        8649     8664      +15     
==========================================
+ Hits         6671     6701      +30     
+ Misses       1978     1963      -15
Impacted Files Coverage Δ
superset/connectors/sqla/views.py 70.47% <ø> (ø) ⬆️
superset/views/core.py 74.66% <ø> (ø) ⬆️
superset/connectors/druid/views.py 68.02% <ø> (ø) ⬆️
superset/viz.py 81.48% <0%> (+1.19%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b839608...8047d21. Read the comment docs.

@mistercrunch mistercrunch merged commit 973c661 into apache:master May 22, 2018
@mistercrunch mistercrunch deleted the DPTOOLS-577_fix_add_slice branch May 22, 2018 00:49
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
* Rename slice to chart and update translations

* Fix unit tests
timifasubaa pushed a commit to timifasubaa/incubator-superset that referenced this pull request May 31, 2018
* Rename slice to chart and update translations

* Fix unit tests
@mistercrunch
Copy link
Member

I think translations stopped working since this PR

@semteu
Copy link

semteu commented Jun 20, 2018

The whole french translation disappeared from the .po file.

@mistercrunch
Copy link
Member

Should be back in master by now.

@byc233518
Copy link

@mistercrunch @betodealmeida
可以这样修改, 不知是否合适, 本地已解决~
-- superset/view/core.py
image
image

-- superset/assets/src/i18n.jsx
image

ShirmineWang pushed a commit to ShirmineWang/incubator-superset that referenced this pull request Jul 2, 2018
Rename "slice", "slices" to "chart", "charts" in UI, but the category name, menu
name remains slice so there's no need to change any permission.

Refer to apache#5008 for upstream
pull request.
timifasubaa pushed a commit to airbnb/superset-fork that referenced this pull request Jul 25, 2018
* Rename slice to chart and update translations

* Fix unit tests
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
* Rename slice to chart and update translations

* Fix unit tests
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.26.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.26.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants