From a673a45b037b6e34cb4cdae7dd216b11b74be4aa Mon Sep 17 00:00:00 2001 From: laurensvalk Date: Mon, 24 Oct 2022 22:07:35 +0200 Subject: [PATCH] text: Don't say that dashes are allowed. (#1247) * text: Don't say that dashes are allowed. This was missed in https://github.com/pybricks/pybricks-code/commit/8b19ad58662186d2295a6241e8c3f84fbfd45809 * explorer/fileNameForGroup: remove dash from translaction dict Co-authored-by: David Lechner --- src/explorer/fileNameFormGroup/FileNameFormGroup.tsx | 1 - src/explorer/fileNameFormGroup/translations/en.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/explorer/fileNameFormGroup/FileNameFormGroup.tsx b/src/explorer/fileNameFormGroup/FileNameFormGroup.tsx index 07c6385e..ab6ce9af 100644 --- a/src/explorer/fileNameFormGroup/FileNameFormGroup.tsx +++ b/src/explorer/fileNameFormGroup/FileNameFormGroup.tsx @@ -119,7 +119,6 @@ const FileNameHelpText: React.VoidFunctionComponent = ({ {i18n.translate('helpText.hasInvalidCharacters', { letters: a…z, numbers: 0…9, - dash: -, underscore: _, })}{' '} diff --git a/src/explorer/fileNameFormGroup/translations/en.json b/src/explorer/fileNameFormGroup/translations/en.json index c4aaa02c..6c25a73d 100644 --- a/src/explorer/fileNameFormGroup/translations/en.json +++ b/src/explorer/fileNameFormGroup/translations/en.json @@ -6,7 +6,7 @@ "hasSpaces": "File name cannot have spaces.", "hasFileExtension": "The file extension will be added automatically.", "hasInvalidFirstCharacter": "File name must start with a letter ({letters}) or underscore ({underscore}).", - "hasInvalidCharacters": "File name can only contain letters ({letters}), numbers ({numbers}), dashes ({dash}) and underscores ({underscore}).", + "hasInvalidCharacters": "File name can only contain letters ({letters}), numbers ({numbers}) and underscores ({underscore}).", "alreadyExists": "A file with this name already exists. Try a different name.", "fixIt": "Fix it for me." }