TagSpaces is an offline, open source, document manager with tagging support
i18n, renaming default to startup location
uggrock03b987ce4ddb
diff --git a/data/js/directories.ui.js b/data/js/directories.ui.jsindex f33ccf83a..8ff6ea0f7 100644--- a/data/js/directories.ui.js+++ b/data/js/directories.ui.js@@ -76,7 +76,7 @@ define(function(require, exports, module) {'<li style="line-height: 45px">' +'<button title="{{path}}" path="{{path}}" name="{{name}}" style="width: 180px; text-align: left; border: 0;" class="btn btn-default">' +'{{#if isDefault}}' +- '<i style="color: darkred" class="fa fa-bookmark" title="Default location"></i> {{name}}' ++ '<i style="color: darkred" class="fa fa-bookmark" data-i18n="[title]ns.dialogs:startupLocation"></i> {{name}}' +'{{else}}' +'<i class="fa fa-bookmark"></i> {{name}}' +'{{/if}}' +diff --git a/data/locales/en_US/ns.dialogs.json b/data/locales/en_US/ns.dialogs.jsonindex af2ed7f01..def29c3d4 100644--- a/data/locales/en_US/ns.dialogs.json+++ b/data/locales/en_US/ns.dialogs.json@@ -90,6 +90,7 @@"editLocationName": "Location Name","locationNamePlaceholder": "Example: My Documents","editLocationDefaultPerspective": "Default Perspective",+ "startupLocation": "Startup location","removeLocation": "Remove Location","locationPathSelectFolder": "Select local folder","optionsTitle": "Options",diff --git a/data/templates/LocationCreateDialog.html b/data/templates/LocationCreateDialog.htmlindex 95189d869..dee12cc00 100644--- a/data/templates/LocationCreateDialog.html+++ b/data/templates/LocationCreateDialog.html@@ -3,7 +3,7 @@<div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times fa-lg"></i></button>- <h4 data-i18n="ns.dialogs:createLocationTitle">Connect a Location</h4>+ <h4 data-i18n="ns.dialogs:createLocationTitle"></h4></div><div class="modal-body form"><form role="form" data-toggle="validator" id="formLocationCreate">@@ -18,17 +18,17 @@</div><!-- /input-group --></div><div class="form-group">- <label class="control-label" for="connectionName" data-i18n="ns.dialogs:createLocationName">Location Name</label>+ <label class="control-label" for="connectionName" data-i18n="ns.dialogs:createLocationName"></label><input class="form-control" type="text" name="connectionName" id="connectionName"pattern='^([^"]){1,}$' data-i18n="[placeholder]ns.dialogs:locationNamePlaceholder;[data-error]ns.dialogs:locationNameHelp" required /><p class="help-block with-errors"></p></div><div class="form-group">- <label class="control-label" for="locationPerspective" data-i18n="ns.dialogs:createLocationDefaultPerspective">Default Perspective</label>+ <label class="control-label" for="locationPerspective" data-i18n="ns.dialogs:createLocationDefaultPerspective"></label><select class="form-control" name="locationPerspective" id="locationPerspective" ></select></div><div class="form-group">- <label class="control-label" for="defaultLocation">Deault location</label>+ <label class="control-label" for="defaultLocation" data-i18n="ns.dialogs:startupLocation"></label><div class="onoffswitch"><input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="defaultLocation"><label class="onoffswitch-label" for="defaultLocation">diff --git a/data/templates/LocationEditDialog.html b/data/templates/LocationEditDialog.htmlindex 4f1dd6133..b81476fd1 100644--- a/data/templates/LocationEditDialog.html+++ b/data/templates/LocationEditDialog.html@@ -28,7 +28,7 @@<select class="form-control" name="locationPerspective2" id="locationPerspective2" ></select></div><div class="form-group">- <label class="control-label" for="defaultLocationEdit">Deault location</label>+ <label class="control-label" for="defaultLocationEdit" data-i18n="ns.dialogs:startupLocation"></label><div class="onoffswitch"><input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="defaultLocationEdit"><label class="onoffswitch-label" for="defaultLocationEdit">