Skip to content

Commit 750fbda

Browse files
author
Erika Perugachi
authored
Merge pull request #1213 from Hirobreak/settings-lokalise
supporting languages with lokalize
2 parents edb052e + 15ee910 commit 750fbda

File tree

14 files changed

+67
-14
lines changed

14 files changed

+67
-14
lines changed

electron_app/src/lang/index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
const en = require('./en.json');
22
const es = require('./es.json');
3+
const de = require('./de.json');
4+
const fr = require('./fr.json');
5+
const ru = require('./ru.json');
36
const mySettings = require('./../Settings');
47

58
const languageSettings = {
@@ -16,6 +19,18 @@ const languageSettings = {
1619
this.currentLanguage = 'es';
1720
this.strings = es;
1821
return;
22+
case 'de':
23+
this.currentLanguage = 'de';
24+
this.strings = de;
25+
return;
26+
case 'fr':
27+
this.currentLanguage = 'fr';
28+
this.strings = fr;
29+
return;
30+
case 'ru':
31+
this.currentLanguage = 'ru';
32+
this.strings = ru;
33+
return;
1934
default:
2035
this.currentLanguage = 'en';
2136
this.strings = en;

email_composer/src/app.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,14 @@ TABLE OF CONTENTS
177177

178178
@font-face {
179179
font-family: "Roboto";
180-
src:url(#{$_PATH_TO_FONTS}/roboto/Roboto-Thin.ttf) format("truetype");
180+
src:url(#{$_PATH_TO_FONTS}/roboto/Roboto-Regular.ttf) format("truetype");
181181
font-weight: normal;
182182
font-style: normal;
183183
}
184184

185185
@font-face {
186186
font-family: "Roboto";
187-
src:url(#{$_PATH_TO_FONTS}/roboto/Roboto-ThinItalic.ttf) format("truetype");
187+
src:url(#{$_PATH_TO_FONTS}/roboto/Roboto-Italic.ttf) format("truetype");
188188
font-weight: normal;
189189
font-style: italic;
190190
}

email_composer/src/lang/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@ import LocalizedStrings from 'react-localization';
22
import { mySettings } from '../utils/electronInterface';
33
import en from './en.json';
44
import es from './es.json';
5+
import de from './de.json';
6+
import fr from './fr.json';
7+
import ru from './ru.json';
58

69
const string = new LocalizedStrings({
710
en,
8-
es
11+
es,
12+
de,
13+
fr,
14+
ru
915
});
1016

1117
string.setLanguage(mySettings.language);

email_loading/src/lang/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@ import LocalizedStrings from 'react-localization';
22
import { mySettings } from '../utils/electronInterface';
33
import en from './en.json';
44
import es from './es.json';
5+
import de from './de.json';
6+
import fr from './fr.json';
7+
import ru from './ru.json';
58

69
const string = new LocalizedStrings({
710
en,
8-
es
11+
es,
12+
de,
13+
fr,
14+
ru
915
});
1016

1117
string.setLanguage(mySettings.language);

email_login/src/lang/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@ import LocalizedStrings from 'react-localization';
22
import { mySettings } from '../utils/electronInterface.js';
33
import en from './en.json';
44
import es from './es.json';
5+
import de from './de.json';
6+
import fr from './fr.json';
7+
import ru from './ru.json';
58

69
const string = new LocalizedStrings({
710
en,
8-
es
11+
es,
12+
de,
13+
fr,
14+
ru
915
});
1016

1117
string.setLanguage(mySettings.language);

email_mailbox/src/app.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,14 @@ TABLE OF CONTENTS
181181

182182
@font-face {
183183
font-family: "Roboto";
184-
src:url(#{$_PATH_TO_FONTS}/roboto/Roboto-Thin.ttf) format("truetype");
184+
src:url(#{$_PATH_TO_FONTS}/roboto/Roboto-Regular.ttf) format("truetype");
185185
font-weight: normal;
186186
font-style: normal;
187187
}
188188

189189
@font-face {
190190
font-family: "Roboto";
191-
src:url(#{$_PATH_TO_FONTS}/roboto/Roboto-ThinItalic.ttf) format("truetype");
191+
src:url(#{$_PATH_TO_FONTS}/roboto/Roboto-Italic.ttf) format("truetype");
192192
font-weight: normal;
193193
font-style: italic;
194194
}

email_mailbox/src/components/ActivityPanel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ class ActivityPanel extends Component {
108108
<div className="empty-container empty-activity-container">
109109
<div className="empty-content">
110110
<div className="empty-icon" />
111-
<div className="header-text">There&#39;s nothing new yet</div>
112-
<div className="subheader-text">Enjoy your day</div>
111+
<div className="header-text">{string.activity.empty_title}</div>
112+
<div className="subheader-text">{string.activity.empty_message}</div>
113113
</div>
114114
</div>
115115
);

email_mailbox/src/components/labeladd.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
li{
22
&.nav-item-label-add{
33
color: #0091ff;
4+
white-space: nowrap;
45

56
div{
67
align-items: center;

email_mailbox/src/lang/de.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"activity_feed": "Aktivitäten-Feed",
44
"deleted": "Gelöscht",
55
"downloaded": "heruntergeladen",
6+
"empty_message": "Genießt dein Tag",
7+
"empty_title": "Bis jetzt nichts neues",
68
"new": "neu",
79
"older": "älter",
810
"opened": "geöffnet",
@@ -677,7 +679,7 @@
677679
"show_in_label_list": "In der Labelliste anzeigen",
678680
"signature": "Unterschrift",
679681
"sign_footer": {
680-
"description": "Fußzeile \"Gesendet mit Criptext\" anzeigen"
682+
"description": "\"Gesendet mit Criptext\" anzeigen"
681683
},
682684
"system_labels": "Systemlabels",
683685
"theme": {

email_mailbox/src/lang/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"activity_feed": "Activity Feed",
44
"deleted": "Deleted",
55
"downloaded": "downloaded",
6+
"empty_message": "Enjoy your day",
7+
"empty_title": "There's nothing new yet",
68
"new": "new",
79
"older": "older",
810
"opened": "opened",

0 commit comments

Comments
 (0)