Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Fix copy version info tooltip #6392

Merged
merged 1 commit into from
Dec 22, 2016
Merged

Fix copy version info tooltip #6392

merged 1 commit into from
Dec 22, 2016

Conversation

cndouglas
Copy link

Temporary fix until we get l10n to work (see #6371)

Temporary fix until we get l10n to work (see #6371)
@@ -43,7 +43,7 @@ class AboutBrave extends React.Component {
<div className='siteDetailsPageContent aboutAbout'>
<div className='title'>
<span className='sectionTitle' data-l10n-id='versionInformation' />
<span className='fa fa-clipboard' title='Copy password to clipboard' onClick={this.onCopy} />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like this should work, but maybe another fix is needed for passing attributes to about pages, I'll merge this in the meantime either way though.
copyToClipboard.title=Copy to clipboard

Copy link
Member

@bsclifton bsclifton Dec 22, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two things ( cc: @liunkae ):

  1. We're missing data-l10n-id for this item. We need it to look like this:
    <span data-l10n-id='copyToClipboard' className='fa fa-clipboard' onClick={this.onCopy} />
  2. When you look at about-brave.html, you'll see that for localization this file uses app.properties. Inside the en-US version of this file, you'll need to be having something like this: copyToClipboard.title=Copy to clipboard

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants