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

Commit

Permalink
include and locale-ready webtorrent description (#8209)
Browse files Browse the repository at this point in the history
- Auditors: @jonathansampson
- Fix #8208
  • Loading branch information
cezaraugusto authored and bsclifton committed Apr 11, 2017
1 parent 639f072 commit 0342cc8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const extensionState = require('./common/state/extensionState')
const appActions = require('../js/actions/appActions')
const fs = require('fs')
const path = require('path')
const l10n = require('../js/l10n')

// Takes Content Security Policy flags, for example { 'default-src': '*' }
// Returns a CSP string, for example 'default-src: *;'
Expand Down Expand Up @@ -193,6 +194,7 @@ let generateTorrentManifest = () => {

return {
name: 'Torrent Viewer',
description: l10n.translation('l10nWebtorrentDesc'),
manifest_version: 2,
version: '1.0',
content_security_policy: concatCSP(cspDirectives),
Expand Down
2 changes: 1 addition & 1 deletion app/extensions/brave/locales/en-US/extensions.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ l10nPocketDesc=Pocket Extension for Brave - The best way to save articles, video
l10nSync= Brave Sync
l10nSyncDesc=
l10nWebtorrent= Torrent Viewer
l10nWebtorrentDesc=
l10nWebtorrentDesc=Uses WebTorrent to display torrents directly in the browser. Supports torrent files and magnet links.
l10nVimium= Vimium
l10nVimiumDesc=
1 change: 1 addition & 0 deletions app/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ var rendererIdentifiers = function () {
'downloadItemClear',
'downloadToolbarHide',
'downloadItemClearCompleted',
'l10nWebtorrentDesc',
// Caption buttons in titlebar (min/max/close - Windows only)
'windowCaptionButtonMinimize',
'windowCaptionButtonMaximize',
Expand Down
2 changes: 1 addition & 1 deletion js/about/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class ExtensionItem extends ImmutableComponent {
<span className={css(styles.extensionVersion)}>{this.props.extension.get('version')}</span>
{
!['__MSG_extDescriptionGoogleChrome__', '__MSG_appDesc__'].includes(this.props.extension.get('description'))
? <div data-test-id='extensionDescription'>{bravifyText(this.props.extension.get('description'))}</div>
? <div data-test-id='extensionDescription' data-l10n-id={this.props.extension.get('description')} />
: null
}
<div className='extensionPath'><span data-l10n-id='extensionPathLabel' /> <span>{this.props.extension.get('base_path')}</span></div>
Expand Down

0 comments on commit 0342cc8

Please sign in to comment.