Skip to content

Commit

Permalink
ui/translation: Add missing translation for batch volume creation
Browse files Browse the repository at this point in the history
Refs: #2964
  • Loading branch information
ChengYanJin committed Dec 18, 2020
1 parent 4ecfc4e commit ac5c3ff
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
12 changes: 6 additions & 6 deletions ui/src/containers/CreateVolume.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,7 @@ const CreateVolume = (props) => {
placement="right"
overlay={
<div style={{ minWidth: '200px' }}>
A devicePath or a partition mount point.
Example: "/dev/sdb"
{intl.translate('device_path_explanation')}
</div>
}
>
Expand All @@ -647,7 +646,7 @@ const CreateVolume = (props) => {
<CheckboxContainer>
<Checkbox
name="multiVolumeCreation"
label={'Create multiple volumes?'}
label={intl.translate('create_multiple_volumes')}
checked={values.multiVolumeCreation}
value={values.multiVolumeCreation}
onChange={handleChange('multiVolumeCreation')}
Expand All @@ -673,7 +672,7 @@ const CreateVolume = (props) => {
paddingRight: `${padding.base}`,
}}
>
Number of volume to create
{intl.translate('number_volume_create')}
</span>
{/* TODO: Generalize the number input component to core-ui. */}
<InputNumberComponentStyle
Expand All @@ -693,8 +692,9 @@ const CreateVolume = (props) => {
paddingTop: `${padding.large}`,
}}
>
Name the Volumes and provide the Device paths. You
may use the defaults or override them.
{intl.translate(
'default_batch_volume_values_explanation',
)}
</div>
{values.volumes.map((volume, index) => (
<SingleVolumeContainer key={`volume${index}`}>
Expand Down
6 changes: 5 additions & 1 deletion ui/src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,9 @@
"volume_usage": "Volume Usage",
"usage": "Usage",
"error_volume_details": "Volume details request has failed.",
"not_found": "not found."
"not_found": "not found.",
"device_path_explanation": "A device or partition path. Example: '/dev/sdb'",
"number_volume_create": "Number of volume to create",
"default_batch_volume_values_explanation": "Name the Volumes and provide the Device paths. You may use the defaults or override them.",
"create_multiple_volumes": "Create multiple volumes?"
}
6 changes: 5 additions & 1 deletion ui/src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,9 @@
"volume_usage": "Utilisation du Volume",
"usage": "Utilisation",
"error_volume_details": "Échec de la récuperation des details du volume.",
"not_found": "introuvable."
"not_found": "introuvable.",
"device_path_explanation": "Chemin du disque ou de la partition. Exemple : « /dev/sdb »",
"number_volume_create": "Nombre de volume à créer",
"default_batch_volume_values_explanation": "Nommez les volumes et fournissez les chemins des disques. Vouz pouvez utiliser les valeurs par défaut ou les modifier.",
"create_multiple_volumes": "Créer plusieurs volumes?"
}

0 comments on commit ac5c3ff

Please sign in to comment.