Skip to content

TagSpaces is an offline, open source, document manager with tagging support

polish: ui improvements, adding new strings

Ilian Sapundshiev938f6dd93355
diff --git a/app/components/EntryProperties.tsx b/app/components/EntryProperties.tsx
index 1bfe7fb3e..c5493409c 100644
--- a/app/components/EntryProperties.tsx
+++ b/app/components/EntryProperties.tsx
@@ -97,7 +97,7 @@ const styles: any = (theme: any) => ({
overflowY: AppConfig.isFirefox ? 'auto' : 'overlay',
overflowX: 'hidden',
flexGrow: 1,
- padding: '0 7px',
+ padding: 7,
height: '100%'
},
tags: {
@@ -639,7 +639,9 @@ const EntryProperties = (props: Props) => {
className={classes.header}
style={{ display: 'block' }}
>
- {i18n.t('core:editTagMasterName')}
+ {currentEntry.isFile
+ ? i18n.t('core:fileName')
+ : i18n.t('core:folderName')}
</Typography>
</div>
</div>
@@ -811,7 +813,7 @@ const EntryProperties = (props: Props) => {
{i18n.t('core:cancel')}
</Button>
)}
- <ProTooltip>
+ <ProTooltip tooltip={i18n.t('editDescription')}>
<Button
color="primary"
className={classes.button}
@@ -949,8 +951,9 @@ const EntryProperties = (props: Props) => {
<Grid item xs={2}>
{currentEntry.color && (
<>
- <Tooltip title="Clears the background color of this folder">
+ <ProTooltip tooltip={i18n.t('clearFolderColor')}>
<IconButton
+ disabled={!Pro}
aria-label="clear"
size="small"
style={{ marginTop: 5 }}
@@ -958,7 +961,7 @@ const EntryProperties = (props: Props) => {
>
<ClearColorIcon />
</IconButton>
- </Tooltip>
+ </ProTooltip>
{isConfirmResetColorDialogOpened && (
<ConfirmDialog
open={isConfirmResetColorDialogOpened}
@@ -1087,17 +1090,12 @@ const EntryProperties = (props: Props) => {
'Link for sharing to other TagSpaces installation using the same location IDs'
)}
/>
- {/* <Tooltip arrow title={i18n.t('Explanation')}>
- <InfoIcon
- style={{
- color: theme.palette.text.secondary,
- paddingLeft: 5,
- verticalAlign: 'bottom'
- }}
- />
- </Tooltip> */}
</Typography>
- <FormControl fullWidth={true} className={classes.formControl}>
+ <FormControl
+ style={{ marginTop: -10 }}
+ fullWidth={true}
+ className={classes.formControl}
+ >
<TextField
margin="dense"
name="path"
@@ -1151,7 +1149,11 @@ const EntryProperties = (props: Props) => {
)}
/>
</Typography>
- <FormControl fullWidth={true} className={classes.formControl}>
+ <FormControl
+ style={{ marginTop: -10 }}
+ fullWidth={true}
+ className={classes.formControl}
+ >
<TextField
margin="dense"
name="path"
@@ -1258,7 +1260,7 @@ const EntryProperties = (props: Props) => {
!currentEntry.editMode &&
editName === undefined &&
editDescription === undefined && (
- <ProTooltip>
+ <ProTooltip tooltip={i18n.t('changeThumbnail')}>
<Button
disabled={!Pro}
color="primary"
@@ -1293,17 +1295,6 @@ const EntryProperties = (props: Props) => {
</div>
</Grid>
</Grid>
-
- {/* {tagMenuOpened && (
- <EntryTagMenu
- anchorEl={tagMenuAnchorEl}
- open={tagMenuOpened}
- onClose={handleCloseTagMenu}
- selectedTag={selectedTag}
- currentEntryPath={currentEntry.path}
- removeTags={removeTags}
- />
- )} */}
{isMoveCopyFilesDialogOpened && (
<MoveCopyFilesDialog
key={uuidv1()}
@@ -1314,7 +1305,6 @@ const EntryProperties = (props: Props) => {
)}
{ThumbnailChooserDialog && isFileThumbChooseDialogOpened && (
<ThumbnailChooserDialog
- // key={uuidv1()}
open={isFileThumbChooseDialogOpened}
onClose={toggleThumbFilesDialog}
selectedFile={thumbPath}
diff --git a/app/components/HelperComponents.tsx b/app/components/HelperComponents.tsx
index 1e2d52b8c..8b4b8470f 100644
--- a/app/components/HelperComponents.tsx
+++ b/app/components/HelperComponents.tsx
@@ -44,13 +44,13 @@ export const ProLabel = () =>
);
export const ProTooltip = props => {
- const { title } = props;
+ const { tooltip } = props;
+ const proTooltip = tooltip && tooltip;
+ const noProTooltip = tooltip
+ ? tooltip + ' - ' + i18n.t('thisFunctionalityIsAvailableInPro')
+ : i18n.t('thisFunctionalityIsAvailableInPro');
return (
- <Tooltip
- arrow
- placement="top"
- title={Pro ? title : i18n.t('thisFunctionalityIsAvailableInPro')}
- >
+ <Tooltip arrow placement="top" title={Pro ? proTooltip : noProTooltip}>
<span {...props} />
</Tooltip>
);
diff --git a/app/components/dialogs/CreateEditLocationDialog.tsx b/app/components/dialogs/CreateEditLocationDialog.tsx
index 33db48e82..2c2a15a34 100644
--- a/app/components/dialogs/CreateEditLocationDialog.tsx
+++ b/app/components/dialogs/CreateEditLocationDialog.tsx
@@ -693,7 +693,7 @@ const CreateEditLocationDialog = (props: Props) => {
labelPlacement="start"
style={{ justifyContent: 'space-between' }}
control={
- <ProTooltip title={i18n.t('ignorePatternDialogTitle')}>
+ <ProTooltip tooltip={i18n.t('ignorePatternDialogTitle')}>
<Button
color="primary"
disabled={!Pro}
diff --git a/app/components/dialogs/ProTeaserDialog.tsx b/app/components/dialogs/ProTeaserDialog.tsx
index c46d72989..41291e30a 100644
--- a/app/components/dialogs/ProTeaserDialog.tsx
+++ b/app/components/dialogs/ProTeaserDialog.tsx
@@ -51,7 +51,7 @@ interface SlideProps {
description?: '';
ctaURL?: string;
ctaTitle?: string;
- bullets?: Array<string>;
+ items?: Array<string>;
pictureURL?: string;
pictureHeight?: number;
}
@@ -59,15 +59,32 @@ interface SlideProps {
const slidesEN = [];
slidesEN['general'] = {
title: 'TagSpaces Pro - Key Features',
- bullets: [
- 'Connect cloud storage as locations (e.g. AWS S3 Buckets, MinIO folders hosted on your NAS)',
- 'Advanced search with full text support for some files and persisted queries',
- 'Global search in all locations (cloud & local ones)',
- 'Custom perspectives for custom use-cases with your files',
- 'Add description and custom thumbnails to your files and folder',
- 'Set custom background color for folders',
- 'Advanced tagging with geo-location support',
- 'Generating persistent thumbnails'
+ items: [
+ <>
+ Connect cloud <b>object storage</b> as locations (e.g. AWS S3 Buckets,
+ MinIO folders hosted on your NAS)
+ </>,
+ <>
+ Advanced search with <b>full text</b> support for some files and{' '}
+ <b>persisted queries</b>
+ </>,
+ <>
+ <b>Global search</b> in all locations (cloud &amp; local ones)
+ </>,
+ <>
+ Additional <b>perspectives</b> for custom use-cases with your files
+ </>,
+ <>
+ Add <b>description</b> and <b>custom thumbnails</b> to your files and
+ folder
+ </>,
+ <>
+ Set custom background <b>color for folders</b>
+ </>,
+ <>
+ Advanced tagging with <b>geo-location</b> support
+ </>,
+ <>Generating persistent thumbnails</>
],
ctaURL: AppConfig.links.productsOverview,
ctaTitle: 'Open Product Comparison',
@@ -76,7 +93,7 @@ slidesEN['general'] = {
};
slidesEN['search'] = {
title: 'Advanced Search & Persisted Search Queries',
- bullets: [
+ items: [
<>
<b>Global search</b> - in all locations at once, regardless if they are
local or in the Cloud
@@ -111,7 +128,7 @@ slidesEN['objectstorage'] = {
back in order to preview, edit or annotate it.
</>
),
- bullets: [
+ items: [
<>Connect self-hosted (e.g. on your NAS) MinIO folders as locations</>,
<>Browse object storage buckets in TagSpaces</>,
<>Direct streaming of the supported audio and video formats</>,
@@ -132,7 +149,7 @@ slidesEN['perspectives'] = {
of tasks you want to perform with your files.
</>
),
- bullets: [
+ items: [
<>
<b>Default</b> - present your files as list or in grid, suitable for
tagging and file management
@@ -164,7 +181,7 @@ slidesEN['annotation'] = {
build-in search or just visually:
</>
),
- bullets: [
+ items: [
<>
Add <b>custom description</b> to every document, photo or folder
</>,
@@ -185,7 +202,7 @@ slidesEN['annotation'] = {
};
slidesEN['geotagging'] = {
title: 'Tag with geo coordinates',
- bullets: [
+ items: [
<>
This feature can be used to add geo coordinates to every file or folder.
</>,
@@ -215,7 +232,7 @@ slidesEN['persistentThumbs'] = {
};
slidesEN['enterprise'] = {
title: 'TagSpaces Enterprise',
- bullets: [
+ items: [
<>
<b>On-prem web</b> version of TagSpaces Pro for <b>self-hosting</b>
</>,
@@ -253,7 +270,7 @@ const SlideComponent = (props: SlideProps) => {
description,
ctaURL,
ctaTitle,
- bullets,
+ items,
pictureURL,
pictureHeight,
openURLExternally
@@ -269,8 +286,8 @@ const SlideComponent = (props: SlideProps) => {
{description && (
<Typography variant="subtitle1">{description}</Typography>
)}
- {bullets &&
- bullets.map(item => (
+ {items &&
+ items.map(item => (
<Typography variant="subtitle1">&#x2605;&nbsp;{item}</Typography>
))}
<Typography variant="subtitle1">&nbsp;</Typography>
diff --git a/app/components/dialogs/settings/SettingsAdvanced.tsx b/app/components/dialogs/settings/SettingsAdvanced.tsx
index 8c3050bb5..e73760fb2 100644
--- a/app/components/dialogs/settings/SettingsAdvanced.tsx
+++ b/app/components/dialogs/settings/SettingsAdvanced.tsx
@@ -29,7 +29,6 @@ import CheckIcon from '@material-ui/icons/Check';
import EditIcon from '@material-ui/icons/Edit';
import IconButton from '@material-ui/core/IconButton';
import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction';
-import AddIcon from '@material-ui/icons/Add';
import Switch from '@material-ui/core/Switch';
import i18n from '-/services/i18n';
import {
@@ -40,6 +39,8 @@ import {
import { TS } from '-/tagspaces.namespace';
import MapTileServerDialog from '-/components/dialogs/settings/MapTileServerDialog';
import { Pro } from '-/pro';
+import { ProLabel } from '-/components/HelperComponents';
+import InfoIcon from '-/components/InfoIcon';
const styles: any = {
root: {
@@ -106,7 +107,7 @@ const SettingsAdvanced = (props: Props) => {
</ListItem>
<ListItem className={classes.listItem}>
- <ListItemText primary="Enable mobile (small screen) mode" />
+ <ListItemText primary={i18n.t('enableMobileMode')} />
<Switch
data-tid="settingsSetDesktopMode"
disabled={!(typeof window.ExtDisplayMode === 'undefined')}
@@ -115,7 +116,15 @@ const SettingsAdvanced = (props: Props) => {
/>
</ListItem>
<ListItem className={classes.listItem}>
- <ListItemText primary="Enable Location TagGroups" />
+ <ListItemText
+ primary={
+ <>
+ {i18n.t('enableTagsFromLocation')}
+ <InfoIcon tooltip={i18n.t('core:enableTagsFromLocationHelp')} />
+ <ProLabel />
+ </>
+ }
+ />
<Switch
data-tid="saveTagInLocationTID"
disabled={!Pro}
@@ -184,30 +193,6 @@ const SettingsAdvanced = (props: Props) => {
</ListItem>
)}
</List>
- {/* <ListItem className={classes.listItem}>
- <ListItemText primary={i18n.t('core:coloredFileExtensionsEnabled')} />
- <Switch
- data-tid="settingsSetColoredFileExtension"
- onClick={() =>
- this.props.setColoredFileExtension(
- !this.props.settings.coloredFileExtension
- )
- }
- checked={this.props.settings.coloredFileExtension}
- />
- </ListItem> */}
- {/* <ListItem className={classes.listItem}>
- <ListItemText primary={i18n.t('core:loadLocationMetaData')} />
- <Switch
- data-tid="settingsSetLoadsLocationMetaData"
- onClick={() =>
- this.props.setLoadsLocationMetaData(
- !this.props.settings.loadsLocationMetaData
- )
- }
- checked={this.props.settings.loadsLocationMetaData}
- />
- </ListItem> */}
</List>
{tileServerDialog && (
<MapTileServerDialog
diff --git a/app/components/menus/LocationManagerMenu.tsx b/app/components/menus/LocationManagerMenu.tsx
index 23d27c029..c0ae96ecb 100644
--- a/app/components/menus/LocationManagerMenu.tsx
+++ b/app/components/menus/LocationManagerMenu.tsx
@@ -36,7 +36,7 @@ import AppConfig from '-/config';
import i18n from '-/services/i18n';
import { Pro } from '../../pro';
import { actions as AppActions } from '-/reducers/app';
-import OpenParentFolder from '@material-ui/icons/FolderOpen';
+import { ProLabel } from '-/components/HelperComponents';
interface Props {
classes: any;
@@ -88,41 +88,56 @@ const LocationManagerMenu = (props: Props) => {
<ListItemText primary={i18n.t('core:openLink')} />
</MenuItem>
);
- if (Pro) {
- if (!AppConfig.isCordovaAndroid) {
- // https://trello.com/c/z6ESlqxz/697-exports-to-json-or-csv-do-not-work-on-android
- menuItems.push(
- <MenuItem
- key="locationManagerMenuExportLocationsTID"
- data-tid="locationManagerMenuExportLocationsTID"
- onClick={() => {
- setLocationManagerMenuAnchorEl(null);
- props.exportLocations();
- }}
- >
- <ListItemIcon>
- <ExportImportIcon />
- </ListItemIcon>
- <ListItemText primary={i18n.t('core:exportLocationTitle')} />
- </MenuItem>
- );
- }
+
+ if (!AppConfig.isCordovaAndroid) {
+ // https://trello.com/c/z6ESlqxz/697-exports-to-json-or-csv-do-not-work-on-android
menuItems.push(
<MenuItem
- key="locationManagerMenuImportLocations"
- data-tid="locationManagerMenuImportLocationsTID"
+ disabled={!Pro}
+ key="locationManagerMenuExportLocationsTID"
+ data-tid="locationManagerMenuExportLocationsTID"
onClick={() => {
setLocationManagerMenuAnchorEl(null);
- props.importLocations();
+ props.exportLocations();
}}
>
<ListItemIcon>
<ExportImportIcon />
</ListItemIcon>
- <ListItemText primary={i18n.t('core:importLocationTitle')} />
+ <ListItemText
+ primary={
+ <>
+ {i18n.t('core:exportLocationTitle')}
+ <ProLabel />
+ </>
+ }
+ />
</MenuItem>
);
}
+ menuItems.push(
+ <MenuItem
+ disabled={!Pro}
+ key="locationManagerMenuImportLocations"
+ data-tid="locationManagerMenuImportLocationsTID"
+ onClick={() => {
+ setLocationManagerMenuAnchorEl(null);
+ props.importLocations();
+ }}
+ >
+ <ListItemIcon>
+ <ExportImportIcon />
+ </ListItemIcon>
+ <ListItemText
+ primary={
+ <>
+ {i18n.t('core:importLocationTitle')}
+ <ProLabel />
+ </>
+ }
+ />
+ </MenuItem>
+ );
menuItems.push(
<MenuItem
diff --git a/app/components/menus/TagLibraryMenu.tsx b/app/components/menus/TagLibraryMenu.tsx
index 549378885..c8c93e999 100644
--- a/app/components/menus/TagLibraryMenu.tsx
+++ b/app/components/menus/TagLibraryMenu.tsx
@@ -24,10 +24,13 @@ import MenuItem from '@material-ui/core/MenuItem';
import ImportExportIcon from '@material-ui/icons/ImportExport';
import HelpIcon from '@material-ui/icons/Help';
import AddIcon from '@material-ui/icons/Add';
+import ReloadIcon from '@material-ui/icons/Sync';
import ImportExportTagGroupsDialog from '../dialogs/ImportExportTagGroupsDialog';
import i18n from '-/services/i18n';
import AppConfig from '-/config';
import { TS } from '-/tagspaces.namespace';
+import { ProLabel, ProTooltip } from '-/components/HelperComponents';
+import { Pro } from '-/pro';
interface Props {
classes?: any;
@@ -128,8 +131,9 @@ const TagLibraryMenu = (props: Props) => {
</ListItemIcon>
<ListItemText primary={i18n.t('core:createTagGroupTitle')} />
</MenuItem>
- {props.saveTagInLocation && (
+ <ProTooltip tooltip={i18n.t('core:enableTagsFromLocationHelp')}>
<MenuItem
+ disabled={!Pro || !props.saveTagInLocation}
data-tid="refreshTagGroups"
onClick={() => {
props.refreshTagsFromLocation();
@@ -137,11 +141,18 @@ const TagLibraryMenu = (props: Props) => {
}}
>
<ListItemIcon>
- <ImportExportIcon />
+ <ReloadIcon />
</ListItemIcon>
- <ListItemText primary={i18n.t('core:refreshTagGroups')} />
+ <ListItemText
+ primary={
+ <>
+ {i18n.t('core:refreshTagGroups')}
+ <ProLabel />
+ </>
+ }
+ />
</MenuItem>
- )}
+ </ProTooltip>
<MenuItem data-tid="importTagGroup" onClick={handleImportTagGroup}>
<ListItemIcon>
<ImportExportIcon />
diff --git a/app/locales/en/core.json b/app/locales/en/core.json
index e28b1e6d9..d7625933f 100644
--- a/app/locales/en/core.json
+++ b/app/locales/en/core.json
@@ -584,5 +584,11 @@
"pathNotInCurrentLocation": "Ignore pattern path is not in the current location",
"applyTag": "Apply Tag",
"refreshTagGroups": "Reload Location Tags",
+ "enableTagsFromLocation": "Enable Location Tags",
+ "enableTagsFromLocationHelp": "These are tags witch are saved in the location's folder, making them visible for other users of this folder",
+ "enableMobileMode": "Enable mobile (small screen) mode",
+ "folderName": "Folder Name",
+ "editDescription": "Edit Description",
+ "clearFolderColor": "Clears the color of this folder",
"-": "-"
}