From df7e77c8659a87a4a951e3e16d365220a76e781a Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Tue, 16 Jul 2019 16:14:28 -0400 Subject: [PATCH] Localize button titles --- src/components/sound-editor/sound-editor.jsx | 31 +++++++++++++++----- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/src/components/sound-editor/sound-editor.jsx b/src/components/sound-editor/sound-editor.jsx index 316a0e2cb..c0ca1d1e1 100644 --- a/src/components/sound-editor/sound-editor.jsx +++ b/src/components/sound-editor/sound-editor.jsx @@ -51,10 +51,25 @@ const messages = defineMessages({ description: 'Title of the button to stop the sound', defaultMessage: 'Stop' }, - trim: { - id: 'gui.soundEditor.trim', - description: 'Title of the button to start trimminging the sound', - defaultMessage: 'Trim' + copy: { + id: 'gui.soundEditor.copy', + description: 'Title of the button to copy the sound', + defaultMessage: 'Copy' + }, + paste: { + id: 'gui.soundEditor.paste', + description: 'Title of the button to paste the sound', + defaultMessage: 'Paste' + }, + copyToNew: { + id: 'gui.soundEditor.copyToNew', + description: 'Title of the button to copy the selection into a new sound', + defaultMessage: 'Copy to New' + }, + delete: { + id: 'gui.soundEditor.delete', + description: 'Title of the button to delete the sound', + defaultMessage: 'Delete' }, save: { id: 'gui.soundEditor.save', @@ -170,20 +185,20 @@ const SoundEditor = props => ( @@ -191,7 +206,7 @@ const SoundEditor = props => ( className={styles.toolButton} disabled={props.trimStart === null} img={deleteIcon} - title={'Delete'} + title={props.intl.formatMessage(messages.delete)} onClick={props.onDelete} />