TagSpaces is an offline, open source, document manager with tagging support
i18n chrome extension ui
uggrock6e47616b47f3
diff --git a/data/_locales/en/messages.json b/data/_locales/en/messages.jsondeleted file mode 100644index 6c02cc852..000000000--- a/data/_locales/en/messages.json+++ /dev/null@@ -1,14 +0,0 @@-{- "appName": {- "message": "TagSpaces",- "description": "The title of the application, displayed in the web store."- },- "appDesc": {- "message": "File browser supporting web content scraping and projecting of local files to Chromecast.",- "description":"The description of the application, displayed in the web store."- },- "appLauncher": {- "message": "Launch TagSpaces",- "description":"Title of the application launcher in the browser."- }-}\ No newline at end of filediff --git a/data/_locales/en_US/messages.json b/data/_locales/en_US/messages.jsonindex 8e1a47d24..7fedbedd8 100644--- a/data/_locales/en_US/messages.json+++ b/data/_locales/en_US/messages.json@@ -4,5 +4,13 @@},"appDesc": {"message": "File Browser with Web Content Scraping and Chromecast Support."+ },+ "appLauncher": {+ "message": "Launch TagSpaces",+ "description": "Title of the application launcher in the browser."+ },+ "appLauncherTitle": {+ "message": "Start TagSpaces Browser in a new tab",+ "description": "Title of the application launcher in the browser."}}\ No newline at end of filediff --git a/data/chromelight/chrome.manifest.tmpl.json b/data/chromelight/chrome.manifest.tmpl.jsonindex 8fb6dc486..e1d15ba1c 100644--- a/data/chromelight/chrome.manifest.tmpl.json+++ b/data/chromelight/chrome.manifest.tmpl.json@@ -3,7 +3,7 @@"version": "@@VERSION.@@BUILD","manifest_version": 2,"description": "__MSG_appDesc__",- "default_locale": "en",+ "default_locale": "en_US","icons": {"16": "assets/icon16.png","48": "assets/icon48.png",diff --git a/data/chromelight/popup.js b/data/chromelight/popup.jsindex 819c8dc56..5dac79174 100644--- a/data/chromelight/popup.js+++ b/data/chromelight/popup.js@@ -71,6 +71,19 @@});}});++ // I18n this panel+ $('[data-i18n]').each(function() {+ var me = $(this);+ var key = me.data('i18n');+ me.html(chrome.i18n.getMessage(key));+ });++ $('[data-i18n-title]').each(function() {+ var me = $(this);+ var key = me.data('i18n-title');+ me.attr("title", chrome.i18n.getMessage(key));+ });}function saveAsMHTML() {diff --git a/data/manifest.json b/data/manifest.jsonindex 711195f5d..28692db98 100644--- a/data/manifest.json+++ b/data/manifest.json@@ -3,7 +3,7 @@"version": "1.10.5","manifest_version": 2,"description": "__MSG_appDesc__",- "default_locale": "en",+ "default_locale": "en_US","icons": {"16": "assets/icon16.png","48": "assets/icon48.png",diff --git a/data/popup.html b/data/popup.htmlindex 852082897..802447264 100644--- a/data/popup.html+++ b/data/popup.html@@ -1,7 +1,7 @@<!DOCTYPE html><html><!---Copyright (c) 2012-2014 The TagSpaces Authors. All rights reserved.+Copyright (c) 2012-2015 The TagSpaces Authors. All rights reserved.Use of this source code is governed by a AGPL3 license thatcan be found in the LICENSE file.-->@@ -19,24 +19,24 @@ can be found in the LICENSE file.<div class="well" style="margin: 0;"><div style="white-space: nowrap;" class="text-center"><img src="assets/icon128.png" class="pull-left" style="margin-left: 20px; max-height: 32px; max-width: 32px;"/> - <a href="#" class="btn btn-primary" id="startTagSpaces" style="width: 350px;">Start TagSpaces</a>+ <a href="#" class="btn btn-primary" id="startTagSpaces" style="width: 350px;" data-i18n="appLauncher" data-i18n-title="appLauncherTitle"></a></div><label style="margin-top: 15px; font-size: 17px;">Capture Web Content</label><div class="form-group">- <label class="control-label" for="title" data-i18n="ns.dialogs:tagOperationTag">1. Edit Title</label>+ <label class="control-label" for="title">1. <span>Edit Title</span></label><input class="form-control" type="text" name="title" id="title" autocomplete="off"data-i18n="[placeholder]ns.dialogs:tagOperationTagsPlaceholder"/><p class="help-block" data-i18n="ns.dialogs:editTagNamesRestrictionsHelp"></p></div><form role="form" data-toggle="validator"><div class="form-group">- <label class="control-label" for="tags" data-i18n="ns.dialogs:tagOperationTag">2. Add Tags</label>+ <label class="control-label" for="tags">2. <span>Add Tags</span></label><input class="form-control" type="text" name="tags" id="tags" autocomplete="off"data-i18n="[placeholder]ns.dialogs:tagOperationTagsPlaceholder"/>- <p class="help-block" data-i18n="ns.dialogs:editTagNamesRestrictionsHelp">Tags should have a minimum length of 2 characters and should not contain special characters such as spaces, #, / ,\ and other.</p>+ <p class="help-block">Tags should have a minimum length of 2 characters and should not contain special characters such as spaces, #, / ,\ and other.</p></div></form>- <label>3. Save as File</label>+ <label>3. <span>Save as File</span></label><div class="btn-toolbar text-center noWrap"><a href="#" class="btn btn-primary" id="saveAsMhtml" title="Save whole page as MHTML"><i class="fa fa-file fa-lg fa-fw"></i> <span>Save Whole Page</span></a><a href="#" class="btn btn-primary" id="saveSelectionAsHtml" title="Save selected content as HTML"><i class="fa fa-file-text fa-lg fa-fw"></i> <span>Save Selected</span></a>