From f1d2a42fe202b20fd84ca1739164f68eff8be77b Mon Sep 17 00:00:00 2001 From: Niharika Khanna Date: Thu, 12 Apr 2018 09:15:03 +0100 Subject: [PATCH] Localize Settings Page --- locales/en-US/server.ftl | 15 ++++++++++++++ server/src/pages/settings/view.js | 33 +++++++++++++++++++++++-------- 2 files changed, 40 insertions(+), 8 deletions(-) diff --git a/locales/en-US/server.ftl b/locales/en-US/server.ftl index 49b9a19eb7..1d850e7907 100644 --- a/locales/en-US/server.ftl +++ b/locales/en-US/server.ftl @@ -213,6 +213,21 @@ annotationColorSeaGreen = annotationColorGrey = .title = Grey + +## Settings Page + +settingsDisconnectButton = Disconnect + .title = Disconnect +settingsGuestAccountMessage = Guest Account +settingsSignInInvite = Sign in to sync across devices +settingsSignInButton = Sign In + .title = Sign in +SettingsPageHeader = Firefox Screenshots Settings +settingsDescription = You can sign in with Firefox Accounts to sync all your screenshots across devices and access them privately. +settingsPageSubHeader = Sync & Accounts +settingsClosePreferences = + .title = Close preferences + ## Shotindex page # { $status } is a placeholder for an HTTP status code, like '500'. diff --git a/server/src/pages/settings/view.js b/server/src/pages/settings/view.js index ba4cc16dbb..46a313943f 100644 --- a/server/src/pages/settings/view.js +++ b/server/src/pages/settings/view.js @@ -3,6 +3,7 @@ const reactruntime = require("../../reactruntime"); const sendEvent = require("../../browser-send-event.js"); const React = require("react"); const PropTypes = require("prop-types"); +const { Localized } = require("fluent-react/compat"); class Head extends React.Component { @@ -27,7 +28,9 @@ class Body extends React.Component {
- + + +
{ this.renderAccountInfo() } @@ -48,7 +51,9 @@ class Body extends React.Component {

{this.props.accountInfo.nickname || this.props.accountInfo.email}

{ this.props.accountInfo.nickname ?

{this.props.accountInfo.email}

: null } - + + +
); @@ -57,20 +62,32 @@ class Body extends React.Component {
-

Guest Account

-

Sign in to sync across devices

- Sign In + +

Guest Account

+
+ +

Sign in to sync across devices

+
+ + Sign In +
); subInfo = ( -

You can sign in with Firefox Account to sync all your screenshots across devices and access them privately.

+ +

You can sign in with Firefox Accounts to sync all your screenshots across devices and access them privately.

+
); } return
-

Firefox Screenshots Settings

+ +

Firefox Screenshots Settings

+

-

Sync & Accounts

+ +

Sync & Accounts

+
{ info } { subInfo}
;