mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 18:37:36 -02:30
Merge pull request #11029 from AlexSCorey/10070-translateMetrics
Translates the UI strings on the metrics pages
This commit is contained in:
@@ -395,6 +395,8 @@ msgstr "Alert modal"
|
|||||||
|
|
||||||
#: components/LaunchButton/ReLaunchDropDown.js:48
|
#: components/LaunchButton/ReLaunchDropDown.js:48
|
||||||
#: components/PromptDetail/PromptDetail.js:120
|
#: components/PromptDetail/PromptDetail.js:120
|
||||||
|
#: screens/Metrics/Metrics.js:75
|
||||||
|
#: screens/Metrics/Metrics.js:75
|
||||||
#: screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.js:257
|
#: screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.js:257
|
||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr "All"
|
msgstr "All"
|
||||||
@@ -4873,6 +4875,7 @@ msgid "Leave this field blank to make the execution environment globally availab
|
|||||||
msgstr "Leave this field blank to make the execution environment globally available."
|
msgstr "Leave this field blank to make the execution environment globally available."
|
||||||
|
|
||||||
#: components/Workflow/WorkflowLegend.js:86
|
#: components/Workflow/WorkflowLegend.js:86
|
||||||
|
#: screens/Metrics/LineChart.js:120
|
||||||
msgid "Legend"
|
msgid "Legend"
|
||||||
msgstr "Legend"
|
msgstr "Legend"
|
||||||
|
|
||||||
|
|||||||
@@ -388,6 +388,8 @@ msgstr "Modal de alerta"
|
|||||||
|
|
||||||
#: components/LaunchButton/ReLaunchDropDown.js:48
|
#: components/LaunchButton/ReLaunchDropDown.js:48
|
||||||
#: components/PromptDetail/PromptDetail.js:120
|
#: components/PromptDetail/PromptDetail.js:120
|
||||||
|
#: screens/Metrics/Metrics.js:75
|
||||||
|
#: screens/Metrics/Metrics.js:75
|
||||||
#: screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.js:257
|
#: screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.js:257
|
||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr "Todos"
|
msgstr "Todos"
|
||||||
@@ -4773,6 +4775,7 @@ msgid "Leave this field blank to make the execution environment globally availab
|
|||||||
msgstr "Deje este campo en blanco para que el entorno de ejecución esté disponible globalmente."
|
msgstr "Deje este campo en blanco para que el entorno de ejecución esté disponible globalmente."
|
||||||
|
|
||||||
#: components/Workflow/WorkflowLegend.js:86
|
#: components/Workflow/WorkflowLegend.js:86
|
||||||
|
#: screens/Metrics/LineChart.js:120
|
||||||
msgid "Legend"
|
msgid "Legend"
|
||||||
msgstr "Leyenda"
|
msgstr "Leyenda"
|
||||||
|
|
||||||
|
|||||||
@@ -382,6 +382,8 @@ msgstr "Modal d'alerte"
|
|||||||
|
|
||||||
#: components/LaunchButton/ReLaunchDropDown.js:48
|
#: components/LaunchButton/ReLaunchDropDown.js:48
|
||||||
#: components/PromptDetail/PromptDetail.js:120
|
#: components/PromptDetail/PromptDetail.js:120
|
||||||
|
#: screens/Metrics/Metrics.js:75
|
||||||
|
#: screens/Metrics/Metrics.js:75
|
||||||
#: screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.js:257
|
#: screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.js:257
|
||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr "Tous"
|
msgstr "Tous"
|
||||||
@@ -4726,6 +4728,7 @@ msgid "Leave this field blank to make the execution environment globally availab
|
|||||||
msgstr "Laissez ce champ vide pour rendre l'environnement d'exécution globalement disponible."
|
msgstr "Laissez ce champ vide pour rendre l'environnement d'exécution globalement disponible."
|
||||||
|
|
||||||
#: components/Workflow/WorkflowLegend.js:86
|
#: components/Workflow/WorkflowLegend.js:86
|
||||||
|
#: screens/Metrics/LineChart.js:120
|
||||||
msgid "Legend"
|
msgid "Legend"
|
||||||
msgstr "Légende"
|
msgstr "Légende"
|
||||||
|
|
||||||
|
|||||||
@@ -382,6 +382,8 @@ msgstr "アラートモーダル"
|
|||||||
|
|
||||||
#: components/LaunchButton/ReLaunchDropDown.js:48
|
#: components/LaunchButton/ReLaunchDropDown.js:48
|
||||||
#: components/PromptDetail/PromptDetail.js:120
|
#: components/PromptDetail/PromptDetail.js:120
|
||||||
|
#: screens/Metrics/Metrics.js:75
|
||||||
|
#: screens/Metrics/Metrics.js:75
|
||||||
#: screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.js:257
|
#: screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.js:257
|
||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr "すべて"
|
msgstr "すべて"
|
||||||
@@ -4719,6 +4721,7 @@ msgid "Leave this field blank to make the execution environment globally availab
|
|||||||
msgstr "実行環境をシステム全体で利用できるようにするには、このフィールドを空白のままにします。"
|
msgstr "実行環境をシステム全体で利用できるようにするには、このフィールドを空白のままにします。"
|
||||||
|
|
||||||
#: components/Workflow/WorkflowLegend.js:86
|
#: components/Workflow/WorkflowLegend.js:86
|
||||||
|
#: screens/Metrics/LineChart.js:120
|
||||||
msgid "Legend"
|
msgid "Legend"
|
||||||
msgstr "凡例"
|
msgstr "凡例"
|
||||||
|
|
||||||
|
|||||||
@@ -388,6 +388,8 @@ msgstr "Waarschuwingsmodus"
|
|||||||
|
|
||||||
#: components/LaunchButton/ReLaunchDropDown.js:48
|
#: components/LaunchButton/ReLaunchDropDown.js:48
|
||||||
#: components/PromptDetail/PromptDetail.js:120
|
#: components/PromptDetail/PromptDetail.js:120
|
||||||
|
#: screens/Metrics/Metrics.js:75
|
||||||
|
#: screens/Metrics/Metrics.js:75
|
||||||
#: screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.js:257
|
#: screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.js:257
|
||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr "Alle"
|
msgstr "Alle"
|
||||||
@@ -4770,6 +4772,7 @@ msgid "Leave this field blank to make the execution environment globally availab
|
|||||||
msgstr "Laat dit veld leeg om de uitvoeringsomgeving globaal beschikbaar te maken."
|
msgstr "Laat dit veld leeg om de uitvoeringsomgeving globaal beschikbaar te maken."
|
||||||
|
|
||||||
#: components/Workflow/WorkflowLegend.js:86
|
#: components/Workflow/WorkflowLegend.js:86
|
||||||
|
#: screens/Metrics/LineChart.js:120
|
||||||
msgid "Legend"
|
msgid "Legend"
|
||||||
msgstr "Legenda"
|
msgstr "Legenda"
|
||||||
|
|
||||||
|
|||||||
@@ -382,6 +382,8 @@ msgstr "警报模式"
|
|||||||
|
|
||||||
#: components/LaunchButton/ReLaunchDropDown.js:48
|
#: components/LaunchButton/ReLaunchDropDown.js:48
|
||||||
#: components/PromptDetail/PromptDetail.js:120
|
#: components/PromptDetail/PromptDetail.js:120
|
||||||
|
#: screens/Metrics/Metrics.js:75
|
||||||
|
#: screens/Metrics/Metrics.js:75
|
||||||
#: screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.js:257
|
#: screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.js:257
|
||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr "所有"
|
msgstr "所有"
|
||||||
@@ -4719,6 +4721,7 @@ msgid "Leave this field blank to make the execution environment globally availab
|
|||||||
msgstr "将此字段留空以使执行环境全局可用。"
|
msgstr "将此字段留空以使执行环境全局可用。"
|
||||||
|
|
||||||
#: components/Workflow/WorkflowLegend.js:86
|
#: components/Workflow/WorkflowLegend.js:86
|
||||||
|
#: screens/Metrics/LineChart.js:120
|
||||||
msgid "Legend"
|
msgid "Legend"
|
||||||
msgstr "图例"
|
msgstr "图例"
|
||||||
|
|
||||||
|
|||||||
@@ -388,6 +388,8 @@ msgstr ""
|
|||||||
|
|
||||||
#: components/LaunchButton/ReLaunchDropDown.js:48
|
#: components/LaunchButton/ReLaunchDropDown.js:48
|
||||||
#: components/PromptDetail/PromptDetail.js:120
|
#: components/PromptDetail/PromptDetail.js:120
|
||||||
|
#: screens/Metrics/Metrics.js:75
|
||||||
|
#: screens/Metrics/Metrics.js:75
|
||||||
#: screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.js:257
|
#: screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.js:257
|
||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -4764,6 +4766,7 @@ msgid "Leave this field blank to make the execution environment globally availab
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: components/Workflow/WorkflowLegend.js:86
|
#: components/Workflow/WorkflowLegend.js:86
|
||||||
|
#: screens/Metrics/LineChart.js:120
|
||||||
msgid "Legend"
|
msgid "Legend"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import React, { useEffect, useCallback } from 'react';
|
import React, { useEffect, useCallback } from 'react';
|
||||||
|
import { t } from '@lingui/macro';
|
||||||
import * as d3 from 'd3';
|
import * as d3 from 'd3';
|
||||||
|
|
||||||
function LineChart({ data, helpText }) {
|
function LineChart({ data, helpText }) {
|
||||||
@@ -116,7 +117,7 @@ function LineChart({ data, helpText }) {
|
|||||||
.attr('class', 'legend-title')
|
.attr('class', 'legend-title')
|
||||||
.attr('x', '100')
|
.attr('x', '100')
|
||||||
.attr('y', '50')
|
.attr('y', '50')
|
||||||
.text('Legend');
|
.text(t`Legend`);
|
||||||
|
|
||||||
legendContainer.data(data, (d, i) => {
|
legendContainer.data(data, (d, i) => {
|
||||||
if (d?.name) {
|
if (d?.name) {
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ function Metrics() {
|
|||||||
const metricOptions = Object.keys(mets);
|
const metricOptions = Object.keys(mets);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
instances: [...results.map((result) => result.hostname), 'All'],
|
instances: [...results.map((result) => result.hostname), t`All`],
|
||||||
metrics: metricOptions,
|
metrics: metricOptions,
|
||||||
};
|
};
|
||||||
}, []),
|
}, []),
|
||||||
|
|||||||
Reference in New Issue
Block a user