Change how the "(legacy)" text is added
Should allow this to actually be translated properly
This commit is contained in:
1 file changed
+19
-9
@@ -552,16 +552,26 @@ class MenuBar extends React.Component {
|
||||
</React.Fragment>
|
||||
)}
|
||||
<MenuItem onClick={this.getSaveToComputerHandler(downloadProject)}>
|
||||
<FormattedMessage
|
||||
defaultMessage="Save to your computer"
|
||||
description="Menu bar item for downloading a project to your computer" // eslint-disable-line max-len
|
||||
id="gui.menuBar.downloadToComputer"
|
||||
/>
|
||||
{extended.available && (
|
||||
{extended.available ? (
|
||||
<FormattedMessage
|
||||
defaultMessage=" (legacy)"
|
||||
description="Text that appears after 'Save project to your computer' on legacy button." // eslint-disable-line max-len
|
||||
id="tw.menuBar.downloadToComputerLegacyAppend"
|
||||
defaultMessage="{saveToYourComputer} (legacy)"
|
||||
description="Wrapper around 'Save to your computer' when a more modern API is available" // eslint-disable-line max-len
|
||||
id="tw.menuBar.legacyDownloadToComputer"
|
||||
values={{
|
||||
saveToYourComputer: (
|
||||
<FormattedMessage
|
||||
defaultMessage="Save to your computer"
|
||||
description="Menu bar item for downloading a project to your computer" // eslint-disable-line max-len
|
||||
id="gui.menuBar.downloadToComputer"
|
||||
/>
|
||||
)
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
<FormattedMessage
|
||||
defaultMessage="Save to your computer"
|
||||
description="Menu bar item for downloading a project to your computer" // eslint-disable-line max-len
|
||||
id="gui.menuBar.downloadToComputer"
|
||||
/>
|
||||
)}
|
||||
</MenuItem>
|
||||
|
||||
Reference in new issue
Block a user