Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions electron_app/src/lang/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const en = require('./en.json');
const es = require('./es.json');
const de = require('./de.json');
const fr = require('./fr.json');
const ru = require('./ru.json');
const mySettings = require('./../Settings');

const languageSettings = {
Expand All @@ -16,6 +19,18 @@ const languageSettings = {
this.currentLanguage = 'es';
this.strings = es;
return;
case 'de':
this.currentLanguage = 'de';
this.strings = de;
return;
case 'fr':
this.currentLanguage = 'fr';
this.strings = fr;
return;
case 'ru':
this.currentLanguage = 'ru';
this.strings = ru;
return;
default:
this.currentLanguage = 'en';
this.strings = en;
Expand Down
4 changes: 2 additions & 2 deletions email_composer/src/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,14 @@ TABLE OF CONTENTS

@font-face {
font-family: "Roboto";
src:url(#{$_PATH_TO_FONTS}/roboto/Roboto-Thin.ttf) format("truetype");
src:url(#{$_PATH_TO_FONTS}/roboto/Roboto-Regular.ttf) format("truetype");
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: "Roboto";
src:url(#{$_PATH_TO_FONTS}/roboto/Roboto-ThinItalic.ttf) format("truetype");
src:url(#{$_PATH_TO_FONTS}/roboto/Roboto-Italic.ttf) format("truetype");
font-weight: normal;
font-style: italic;
}
Expand Down
8 changes: 7 additions & 1 deletion email_composer/src/lang/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@ import LocalizedStrings from 'react-localization';
import { mySettings } from '../utils/electronInterface';
import en from './en.json';
import es from './es.json';
import de from './de.json';
import fr from './fr.json';
import ru from './ru.json';

const string = new LocalizedStrings({
en,
es
es,
de,
fr,
ru
});

string.setLanguage(mySettings.language);
Expand Down
8 changes: 7 additions & 1 deletion email_loading/src/lang/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@ import LocalizedStrings from 'react-localization';
import { mySettings } from '../utils/electronInterface';
import en from './en.json';
import es from './es.json';
import de from './de.json';
import fr from './fr.json';
import ru from './ru.json';

const string = new LocalizedStrings({
en,
es
es,
de,
fr,
ru
});

string.setLanguage(mySettings.language);
Expand Down
8 changes: 7 additions & 1 deletion email_login/src/lang/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@ import LocalizedStrings from 'react-localization';
import { mySettings } from '../utils/electronInterface.js';
import en from './en.json';
import es from './es.json';
import de from './de.json';
import fr from './fr.json';
import ru from './ru.json';

const string = new LocalizedStrings({
en,
es
es,
de,
fr,
ru
});

string.setLanguage(mySettings.language);
Expand Down
4 changes: 2 additions & 2 deletions email_mailbox/src/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,14 @@ TABLE OF CONTENTS

@font-face {
font-family: "Roboto";
src:url(#{$_PATH_TO_FONTS}/roboto/Roboto-Thin.ttf) format("truetype");
src:url(#{$_PATH_TO_FONTS}/roboto/Roboto-Regular.ttf) format("truetype");
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: "Roboto";
src:url(#{$_PATH_TO_FONTS}/roboto/Roboto-ThinItalic.ttf) format("truetype");
src:url(#{$_PATH_TO_FONTS}/roboto/Roboto-Italic.ttf) format("truetype");
font-weight: normal;
font-style: italic;
}
Expand Down
4 changes: 2 additions & 2 deletions email_mailbox/src/components/ActivityPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ class ActivityPanel extends Component {
<div className="empty-container empty-activity-container">
<div className="empty-content">
<div className="empty-icon" />
<div className="header-text">There&#39;s nothing new yet</div>
<div className="subheader-text">Enjoy your day</div>
<div className="header-text">{string.activity.empty_title}</div>
<div className="subheader-text">{string.activity.empty_message}</div>
</div>
</div>
);
Expand Down
1 change: 1 addition & 0 deletions email_mailbox/src/components/labeladd.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
li{
&.nav-item-label-add{
color: #0091ff;
white-space: nowrap;

div{
align-items: center;
Expand Down
4 changes: 3 additions & 1 deletion email_mailbox/src/lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"activity_feed": "Aktivitäten-Feed",
"deleted": "Gelöscht",
"downloaded": "heruntergeladen",
"empty_message": "Genießt dein Tag",
"empty_title": "Bis jetzt nichts neues",
"new": "neu",
"older": "älter",
"opened": "geöffnet",
Expand Down Expand Up @@ -677,7 +679,7 @@
"show_in_label_list": "In der Labelliste anzeigen",
"signature": "Unterschrift",
"sign_footer": {
"description": "Fußzeile \"Gesendet mit Criptext\" anzeigen"
"description": "\"Gesendet mit Criptext\" anzeigen"
},
"system_labels": "Systemlabels",
"theme": {
Expand Down
2 changes: 2 additions & 0 deletions email_mailbox/src/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"activity_feed": "Activity Feed",
"deleted": "Deleted",
"downloaded": "downloaded",
"empty_message": "Enjoy your day",
"empty_title": "There's nothing new yet",
"new": "new",
"older": "older",
"opened": "opened",
Expand Down
2 changes: 2 additions & 0 deletions email_mailbox/src/lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"activity_feed": "Actividad Reciente",
"deleted": "Borrado",
"downloaded": "ha descargado",
"empty_message": "Disfruta tu día",
"empty_title": "No hay nada nuevo aún",
"new": "nuevo",
"older": "antiguo",
"opened": "ha abierto",
Expand Down
4 changes: 3 additions & 1 deletion email_mailbox/src/lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"activity_feed": "Flux d'activité",
"deleted": "Supprimé",
"downloaded": "téléchargé",
"empty_message": "Profiter de votre journée",
"empty_title": "Il n'y a encore rien de nouveau",
"new": "nouveau",
"older": "précédent",
"opened": "ouvert(s)",
Expand Down Expand Up @@ -677,7 +679,7 @@
"show_in_label_list": "Afficher dans la liste de marqueurs",
"signature": "Signature",
"sign_footer": {
"description": "Afficher le pied de page «Envoyé avec Criptext»"
"description": "Afficher «Envoyé avec Criptext»"
},
"system_labels": "Marqueurs Système",
"theme": {
Expand Down
13 changes: 11 additions & 2 deletions email_mailbox/src/lang/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,27 @@ import { mySettings } from '../utils/electronInterface';
import { updateSettings } from '../utils/ipc';
import en from './en.json';
import es from './es.json';
import de from './de.json';
import fr from './fr.json';
import ru from './ru.json';

const string = new LocalizedStrings({
en,
es
es,
de,
fr,
ru
});

export const currentLanguage = mySettings.language;
string.setLanguage(currentLanguage || 'en');

export const languages = [
{ text: 'English', value: 'en' },
{ text: 'Español', value: 'es' }
{ text: 'Español', value: 'es' },
{ text: 'Français', value: 'fr' },
{ text: 'Deutsch', value: 'de' },
{ text: 'Русский', value: 'ru' }
];

export const setLang = async lang => {
Expand Down
4 changes: 3 additions & 1 deletion email_mailbox/src/lang/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"activity_feed": "Лента Активности",
"deleted": "удаленный",
"downloaded": "загружено",
"empty_message": "Приятного дня",
"empty_title": "Там нет ничего нового пока",
"new": "новое",
"older": "старое",
"opened": "открыто",
Expand Down Expand Up @@ -677,7 +679,7 @@
"show_in_label_list": "Показать в списке этикеток",
"signature": "Подпись",
"sign_footer": {
"description": "Показать нижний колонтитул «Отправлено с криптекстом»"
"description": "Показать «Отправлено с Criptext»"
},
"system_labels": "Системные метки",
"theme": {
Expand Down