Skip to content

Commit

Permalink
adds additional box plot localization
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Apr 22, 2016
1 parent 35b5185 commit 29a4c8e
Show file tree
Hide file tree
Showing 11 changed files with 71 additions and 48 deletions.
25 changes: 9 additions & 16 deletions src/core/locale/languages/de_DE.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@ module.exports = {
"months": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
"shortMonths": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"]
},
"dev": {
"accepted": "{0} ist kein gültiger Wert für {1}. Benutzen Sie bitte eine der folgenden Optionen: {2}.",
"deprecated": "Die Methode {0} wurde entfernt. Aktualisieren Sie Ihren Code, um {1} zu verwenden.",
"noChange": "{0} wurde nicht aktualisiert, weil es nicht verändert wurde.",
"noContainer": "Es existiert kein Container-Element, das zu {0} passt.",
"of": "von",
"oldStyle": "Die Stileigenschaften für {0} sind nun direkt in .{1}() eingebettet.",
"sameEdge": "Kanten können nicht auf sich selbst verweisen. Selbst-referenzierende Kanten {0} werden automatisch entfernt.",
"set": "{0} wurde definiert.",
"setLong": "{0} wurde auf {1} gesetzt.",
"setContainer": "Definieren Sie ein Container-Element (div) für Ihre Darstellung mit Hilfe des .container()-Attributs."
},
"error": {
"accepted": "{0} ist kein gültiger {1} für {2}-Darstellungen. Benutzen Sie bitte: {3}.",
"connections": "Keine Verbindungen verfügbar für {0}.",
Expand Down Expand Up @@ -134,10 +122,15 @@ module.exports = {
"values": "Werte",
"including": "einschließlich",
"or": "oder",
"iqr": "Interquartilabstände {0}",
"max": "maximal",
"percentile": "{0} Perzentil",
"tukey_bottom": "boden tukey"
"iqr": "Interquartilsabstände {0}",
"max": "Maximalwert",
"min": "Minimalwert",
"percentile": "Perzentil P{0}",
"tukey_bottom": "Unterer Ausreißer",
"tukey_top": "Oberer Ausreißer",
"quartile_first": "Unteres Quartil Q1",
"quartile_third": "Oberes Quartil Q3",
"median": "Medianwert"
},
"message": {
"data": "analysiere Daten",
Expand Down
45 changes: 24 additions & 21 deletions src/core/locale/languages/en_US.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -92,27 +92,30 @@ module.exports =
"Minutes-Milliseconds": "%H:%M:%S.%L"
"Seconds-Milliseconds": "%H:%M:%S.%L"
ui:
and: "and"
back: "back"
collapse: "click to collapse"
error: "error"
expand: "click to expand"
including: "including"
iqr: "interquartile range for {0}"
loading: "loading..."
max: "maximum"
min: "minimum"
more: "{0} more"
moreInfo: "click for more info"
or: "or"
noResults: "no results matching {0}."
percentile: "{0} percentile"
primary: "primary connections"
share: "share"
total: "total"
tukey_bottom: "bottom tukey"
tukey_top: "top tukey"
values: "values"
and: "and"
back: "back"
collapse: "click to collapse"
error: "error"
expand: "click to expand"
including: "including"
iqr: "interquartile range for {0}"
loading: "loading..."
max: "maximum"
median: "median"
min: "minimum"
more: "{0} more"
moreInfo: "click for more info"
or: "or"
noResults: "no results matching {0}."
percentile: "{0} percentile"
primary: "primary connections"
quartile_first: "first quartile"
quartile_third: "third quartile"
share: "share"
total: "total"
tukey_bottom: "bottom tukey"
tukey_top: "top tukey"
values: "values"
uppercase: ["CEO", "CEOs", "CFO", "CFOs", "CNC", "COO", "COOs", "CPU", "CPUs", "GDP", "HVAC", "ID", "IT", "R&D", "TV", "UI"]
visualization:
bar: "Bar Chart"
Expand Down
5 changes: 4 additions & 1 deletion src/core/locale/languages/es_ES.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ module.exports = {
"min": "mínimo",
"percentile": "{0} percentil",
"tukey_bottom": "Tukey inferior",
"tukey_top": "la parte superior de Tukey"
"tukey_top": "la parte superior de Tukey",
"quartile_first": "primer cuartil",
"quartile_third": "tercer cuartil",
"median": "mediana"
},
"message": {
"data": "analizando los datos",
Expand Down
5 changes: 4 additions & 1 deletion src/core/locale/languages/fr_FR.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ module.exports = {
"min": "le minimum",
"percentile": "{0} percentile",
"tukey_bottom": "tukey bas",
"tukey_top": "top tukey"
"tukey_top": "top tukey",
"quartile_first": "premier quartile",
"quartile_third": "le troisième quartile",
"median": "médian"
},
"message": {
"data": "analyse des données",
Expand Down
5 changes: 4 additions & 1 deletion src/core/locale/languages/ko_KR.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ module.exports = {
"min": "최저한의",
"percentile": "{0} 백분위 수",
"tukey_bottom": "바닥 Tukey에",
"tukey_top": "상단 Tukey에"
"tukey_top": "상단 Tukey에",
"quartile_first": "1 분위",
"quartile_third": "3 분위",
"median": "중앙값"
},
"message": {
"data": "데이터 분석 중",
Expand Down
5 changes: 4 additions & 1 deletion src/core/locale/languages/mk_MK.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ module.exports = {
"min": "минимум",
"percentile": "{0} перцентил",
"tukey_bottom": "дното Tukey",
"tukey_top": "Топ Tukey"
"tukey_top": "Топ Tukey",
"quartile_first": "првиот квартал",
"quartile_third": "третиот квартал",
"median": "средната"
},
"message": {
"data": "анализа на податоци",
Expand Down
5 changes: 4 additions & 1 deletion src/core/locale/languages/pt_BR.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ module.exports = {
"min": "mínimo",
"percentile": "{0} percentil",
"tukey_bottom": "tukey bottom",
"tukey_top": "tukey topo"
"tukey_top": "tukey topo",
"quartile_first": "primeiro quartil",
"quartile_third": "terceiro quartil",
"median": "mediana"
},
"message": {
"data": "analisando dados",
Expand Down
5 changes: 4 additions & 1 deletion src/core/locale/languages/pt_PT.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ module.exports = {
"min": "mínimo",
"percentile": "{0} percentil",
"tukey_bottom": "tukey bottom",
"tukey_top": "tukey topo"
"tukey_top": "tukey topo",
"quartile_first": "primeiro quartil",
"quartile_third": "terceiro quartil",
"median": "mediana"
},
"message": {
"data": "a analisar os dados",
Expand Down
5 changes: 4 additions & 1 deletion src/core/locale/languages/ru_RU.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ module.exports = {
"min": "минимальный",
"percentile": "{0} процентиль",
"tukey_bottom": "нижний Тьюки",
"tukey_top": "сверху Тьюки"
"tukey_top": "сверху Тьюки",
"quartile_first": "первый квартиль",
"quartile_third": "третий квартиль",
"median": "медиана"
},
"message": {
"data": "данные анализа",
Expand Down
5 changes: 4 additions & 1 deletion src/core/locale/languages/zh_CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ module.exports = {
"min": "最低限度",
"percentile": "{0}百分",
"tukey_bottom": "底部杜克",
"tukey_top": "顶部杜克"
"tukey_top": "顶部杜克",
"quartile_first": "第一个四分位数",
"quartile_third": "第三个四分位数",
"median": "中位数"
},
"message": {
"data": "分析数据",
Expand Down
9 changes: 6 additions & 3 deletions src/viz/types/box.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ box = (vars) ->
pctstr = vars.format.value(vars.format.locale.value.ui.percentile)
botstr = vars.format.value(vars.format.locale.value.ui.tukey_bottom)
topstr = vars.format.value(vars.format.locale.value.ui.tukey_top)
qt1str = vars.format.value(vars.format.locale.value.ui.quartile_first)
qt3str = vars.format.value(vars.format.locale.value.ui.quartile_third)
medstr = vars.format.value(vars.format.locale.value.ui.median)

returnData = []
d3.nest()
Expand Down Expand Up @@ -79,13 +82,13 @@ box = (vars) ->
value: top

if vars.tooltip.iqr.value
tooltipData["third quartile"] =
tooltipData[qt3str] =
key: vars[opposite].value
value: second
tooltipData["median"] =
tooltipData[medstr] =
key: vars[opposite].value
value: median
tooltipData["first quartile"] =
tooltipData[qt1str] =
key: vars[opposite].value
value: first

Expand Down

0 comments on commit 29a4c8e

Please sign in to comment.