TagSpaces is an offline, open source, document manager with tagging support
Changes about locale strings and watching folder option hide/show
miroopa28adf907d9d
diff --git a/data/index.html b/data/index.htmlindex d7208df8c..c9a27b981 100644--- a/data/index.html+++ b/data/index.html@@ -892,8 +892,8 @@<div class="form-group"><label for="searchHistory" class="control-label">History of your last searches</label><select id="searchHistory" class="form-control searchFormElements disabled" disabled title="TagSpaces PRO feature">- <option value="">You can find here your last search queries</option><!--+ <option value="">You can find here your last search queries</option><option value="t:pictures +topsy">t:pictures +topsy</option><option value="t:pictures +danny">t:pictures +danny</option><option value="t:docs +work">t:docs +work</option>diff --git a/data/js/core.ui.js b/data/js/core.ui.jsindex 71f6a43ce..692a89a85 100644--- a/data/js/core.ui.js+++ b/data/js/core.ui.js@@ -648,7 +648,7 @@ define(function(require, exports, module) {], function(uiTPL, controller) {if ($('#dialogOptions').length < 1) {var uiTemplate = Handlebars.compile(uiTPL);- $('body').append(uiTemplate({isProVersion: TSCORE.PRO ? true : false}));+ $('body').append(uiTemplate({isProVersion: TSCORE.PRO ? true : false, isElectron: isElectron ? true : false}));controller.initUI();}diff --git a/data/js/directories.ui.js b/data/js/directories.ui.jsindex 558b833e7..0b692aaff 100644--- a/data/js/directories.ui.js+++ b/data/js/directories.ui.js@@ -495,7 +495,7 @@ define(function(require, exports, module) {// TODO enable after adding switch in the settings, disabling recursion does not work on windows// Disable watching on file operations with many fiels (copy, delete, rename, move)- if (TSCORE.IO.watchDirectory && TSCORE.Config.getUseWatchingCurrentDirectory()) {+ if (TSCORE.IO.watchDirectory && TSCORE.Config.getWatchCurrentDirectory()) {TSCORE.IO.watchDirectory(dirPath, function() {listDirectory(TSCORE.currentPath);});diff --git a/data/js/options.ui.js b/data/js/options.ui.jsindex b8f8b726a..8ab46069c 100644--- a/data/js/options.ui.js+++ b/data/js/options.ui.js@@ -114,6 +114,10 @@ define(function(require, exports, module) {$('#keyBindingInstructions').toggle();return false;});++ if (!isElectron) {+ $('#watchCurrentDirectoryControls').hide();+ }if (isCordova) {$('#trashCanArea').hide();$('#exportTagGroupsButton').hide();@@ -146,7 +150,7 @@ define(function(require, exports, module) {$('#loadLocationMetaData').attr('checked', TSCORE.Config.getLoadLocationMeta());$('#useSearchInSubfolders').attr('checked', TSCORE.Config.getUseSearchInSubfolders());$('#maxSearchResultCount').val(TSCORE.Config.getMaxSearchResultCount());- $('#useWatchingCurrentDirectory').attr('checked', TSCORE.Config.getUseWatchingCurrentDirectory());+ $('#watchCurrentDirectory').attr('checked', TSCORE.Config.getWatchCurrentDirectory());$('#tagsDelimiterInput').val(TSCORE.Config.getTagDelimiter());$('#prefixTagContainerInput').val(TSCORE.Config.getPrefixTagContainer());$('#nextDocumentKeyBinding').val(TSCORE.Config.getNextDocumentKeyBinding());@@ -226,7 +230,7 @@ define(function(require, exports, module) {TSCORE.Config.setLoadLocationMeta($('#loadLocationMetaData').is(':checked'));TSCORE.Config.setUseSearchInSubfolders($('#useSearchInSubfolders').is(':checked'));TSCORE.Config.setMaxSearchResultCount($('#maxSearchResultCount').val());- TSCORE.Config.setUseWatchingCurrentDirectory($('#useWatchingCurrentDirectory').is(':checked'));+ TSCORE.Config.setWatchCurrentDirectory($('#watchCurrentDirectory').is(':checked'));TSCORE.Config.setNextDocumentKeyBinding(parseKeyBinding($('#nextDocumentKeyBinding').val()));TSCORE.Config.setPrevDocumentKeyBinding(parseKeyBinding($('#prevDocumentKeyBinding').val()));TSCORE.Config.setCloseViewerKeyBinding(parseKeyBinding($('#closeDocumentKeyBinding').val()));diff --git a/data/js/settings.api.js b/data/js/settings.api.jsindex b9ba26604..3f5fa2362 100644--- a/data/js/settings.api.js+++ b/data/js/settings.api.js@@ -722,14 +722,14 @@ define(function(require, exports, module) {exports.Settings.maxSearchResultCount = value;}- function getUseWatchingCurrentDirectory() {- if (exports.Settings.useWatchingCurrentDirectory === undefined) {- exports.Settings.useWatchingCurrentDirectory = exports.DefaultSettings.useWatchingCurrentDirectory;+ function getWatchCurrentDirectory() {+ if (exports.Settings.watchCurrentDirectory === undefined) {+ exports.Settings.watchCurrentDirectory = exports.DefaultSettings.watchCurrentDirectory;}- return exports.Settings.useWatchingCurrentDirectory;+ return exports.Settings.watchCurrentDirectory;}- function setUseWatchingCurrentDirectory(value) {- exports.Settings.useWatchingCurrentDirectory = value;+ function setWatchCurrentDirectory(value) {+ exports.Settings.watchCurrentDirectory = value;}function getEnableMetaData() {@@ -1235,8 +1235,8 @@ define(function(require, exports, module) {exports.setUseSearchInSubfolders = setUseSearchInSubfolders;exports.getMaxSearchResultCount = getMaxSearchResultCount;exports.setMaxSearchResultCount = setMaxSearchResultCount;- exports.getUseWatchingCurrentDirectory = getUseWatchingCurrentDirectory;- exports.setUseWatchingCurrentDirectory = setUseWatchingCurrentDirectory;+ exports.getWatchCurrentDirectory = getWatchCurrentDirectory;+ exports.setWatchCurrentDirectory = setWatchCurrentDirectory;exports.setEnableMetaData = setEnableMetaData;exports.getEnableMetaData = getEnableMetaData;exports.getIsWindowMaximized = getIsWindowMaximized;diff --git a/data/js/settings.default.js b/data/js/settings.default.jsindex 3d607c152..f885ae3ad 100644--- a/data/js/settings.default.js+++ b/data/js/settings.default.js@@ -44,7 +44,7 @@ define(function (require, exports, module) {"useOCR": false,"useTextExtraction": false,"useGenerateThumbnails": false,- "useWatchingCurrentDirectory": false,+ "watchCurrentDirectory": false,"supportedLanguages": [{ "iso": "en_US", "title": "English" },{ "iso": "de_DE", "title": "Deutsch (German)" },diff --git a/data/locales/en_US/ns.dialogs.json b/data/locales/en_US/ns.dialogs.jsonindex 54ac0671f..b1bf688c9 100644--- a/data/locales/en_US/ns.dialogs.json+++ b/data/locales/en_US/ns.dialogs.json@@ -165,6 +165,6 @@"loadLocationMetaDataHelp": "Location metadata file 'tsm.json' should be placed in the '.ts' subfolder of the current location. The file format should be the same as the exported tag groups file from the tab 'general'.","useSearchInSubfolders": "Search in sub-folders by default","maxSearchResultCount": "Limit files found to",- "useWatchingCurrentDirectory": "Watching current directory",+ "watchCurrentDirectory": "Watching current directory","-": "-"}diff --git a/data/locales/en_US/ns.pro.json b/data/locales/en_US/ns.pro.jsonindex 65dc48dfb..7def871ac 100644--- a/data/locales/en_US/ns.pro.json+++ b/data/locales/en_US/ns.pro.json@@ -6,5 +6,8 @@"updateFolderThumbnails": "Update thumbnails","tagDirectory": "Tag Directory","directoryProperties": "Directory Properties",+ "searchHistoryInfoOption": "You can find here your last search queries",+ "searchHistoryRemoveOption": "Remove search history",+ "confirmDeleteSearchHistoryQuestion": "Do you realy want to delete the search history?""-": "-"}\ No newline at end of filediff --git a/data/templates/OptionsDialog.html b/data/templates/OptionsDialog.htmlindex bcf0fb118..9fa750fde 100644--- a/data/templates/OptionsDialog.html+++ b/data/templates/OptionsDialog.html@@ -83,15 +83,15 @@<span data-i18n="ns.dialogs:useSearchInSubfolders"></span></label></div>- </div>- <div class="form-group">+ </div>+ <div class="form-group" id="watchCurrentDirectoryControls"><div class="col-sm-12 checkbox">- <label for="useWatchingCurrentDirectory">- <input type="checkbox" id="useWatchingCurrentDirectory"/>- <span data-i18n="ns.dialogs:useWatchingCurrentDirectory"></span>+ <label for="watchCurrentDirectory">+ <input type="checkbox" id="watchCurrentDirectory"/>+ <span data-i18n="ns.dialogs:watchCurrentDirectory"></span></label></div>- </div>+ </div><div class='form-group'><button class="btn btn-default" id="exportTagGroupsButton" aria-hidden="true"><i class="fa fa-upload"></i> diff --git a/default.settings.tmpl.js b/default.settings.tmpl.jsindex c17117bdd..70f7803a3 100644--- a/default.settings.tmpl.js+++ b/default.settings.tmpl.js@@ -43,6 +43,7 @@ define(function (require, exports, module) {"useOCR": false,"useTextExtraction": false,"useGenerateThumbnails": false,+ "watchCurrentDirectory": false,"supportedLanguages": [{ "iso": "en_US", "title": "English" },{ "iso": "de_DE", "title": "Deutsch (German)" },