Commit e5bfb1f3 authored by yPhil's avatar yPhil
Browse files

#bug: .val at startup

parent 64b7297a
Pipeline #398951 passed with stage
in 54 seconds
......@@ -49,6 +49,7 @@ PTL.i18n.translations = {
"Menu": { fr: "Menu", ja: "メニュー", es: "Menú" },
"Sorry": { fr: "Désolé", ja: "ごめんなさい", es: "Perdón" },
"Warning": { fr: "Avertissement", ja: "警告", es: "Advertencia" },
"All": { fr: "Tout", ja: "すべて", es: "todos" },
// Pétrolette
......
......@@ -8,7 +8,7 @@ var PTL = (function() {
language: 'en',
start : function() {
PTL.util.say(PTL.tr('Pétrolette start'), 'success');
PTL.util.say(PTL.tr('Pétrolette starting up OK'), 'success');
var $sideMenu = $('nav#sideMenu'),
$overlay = $('#overlay'),
......@@ -141,8 +141,17 @@ var PTL = (function() {
}
});
$langMenu.val(PTL.prefs.readConfig('lang')).prop('selected', true);
const $syncBox = $('#sync-box');
const $readMore = $('<a>')
.attr('class', 'translate')
.attr('target', '_blank')
.attr('data-content', 'About the remoteStorage protocol')
.attr('href', 'https://remotestorage.io/')
.text(PTL.tr('About the remoteStorage protocol'));
$syncBox.find('h1.rs-big-headline, h3.rs-small-headline')
.addClass('translate')
.attr('data-content', 'Connection to storage')
......@@ -150,17 +159,11 @@ var PTL = (function() {
$syncBox.find('p.rs-short-desc, span.rs-sub-headline')
.addClass('translate')
.attr('data-content', 'To synchronize tabs and feeds across devices')
.text(PTL.tr('To synchronize the feeds across devices'));
const $readMore = $('<a>')
.attr('class', 'translate')
.attr('target', '_blank')
.attr('data-content', 'About the remoteStorage protocol')
.attr('href', 'https://remotestorage.io/')
.text(PTL.tr('About the remoteStorage protocol'));
.attr('data-content', 'To synchronize the feeds across devices')
.text(PTL.tr('To synchronize the feeds across devices'))
.after($readMore);
$syncBox.find('p.rs-short-desc').after($readMore);
// $syncBox.find('p.rs-short-desc').after($readMore);
$langMenu.change(function() {
var selectedLang = $(this).val();
......
......@@ -63,7 +63,7 @@ PTL.sync = (function() {
remoteStorage.on('connected', function() {
PTL.synchronized = true;
PTL.util.say(PTL.tr('Connected to remote storage'), 'ok');
PTL.util.say(PTL.tr('Connected to remote storage'), 'success');
});
remoteStorage.on('not-connected', function() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment