TagSpaces is an offline, open source, document manager with tagging support
i18n the name of the taggroup, refreshing the UI after adding new tag
uggrock202e45b1df74
diff --git a/data/js/tagutils.js b/data/js/tagutils.jsindex a913a0d43..b28f15d7c 100644--- a/data/js/tagutils.js+++ b/data/js/tagutils.js@@ -476,16 +476,14 @@ define(function(require, exports, module) {TSCORE.IO.renameFile(filePath, containingDirectoryPath + TSCORE.dirSeparator + newFileName);}- //Collect recent tags to gorup- //TODO: UI is not refreshed+ //Collect recent tags in a custom tag-groupfunction collectRecentTags (newTags) {-var collectGroupKey = 'COL';var collectGroup = TSCORE.Config.getTagGroupData(collectGroupKey);if (!collectGroup) {var collectGroupTemplate = {- 'title': 'Collected Tags',+ 'title': $.i18n.t('ns.common:collectedTagsTagGroupTitle'),'key': collectGroupKey,'expanded': true,'children': []@@ -499,11 +497,12 @@ define(function(require, exports, module) {newTags.forEach(function(newTagName) {if (!TSCORE.Config.findTag(newTagName)) {TSCORE.Config.createTag(collectGroup, newTagName);+ TSCORE.generateTagGroups();}});}- // Public API definition+ // Public API definitionsexports.beginTagContainer = BEGIN_TAG_CONTAINER;exports.endTagContainer = END_TAG_CONTAINER;exports.extractFileName = extractFileName;diff --git a/data/locales/en_US/ns.common.json b/data/locales/en_US/ns.common.jsonindex 7c8b81085..e04fc28aa 100644--- a/data/locales/en_US/ns.common.json+++ b/data/locales/en_US/ns.common.json@@ -128,6 +128,7 @@"perspectivesDropDown": "Perspectives","suggestedTags": "Suggested Tags","tagsFromCurrentFolder": "Tags From Current Folder",+ "collectedTagsTagGroupTitle": "Collected Tags","tagsFromCurrentLocation": "Tags From Current Location","perspectiveSwitch": "Perspective Switch","tagsInPerspective": "Tags in Perspective",