TagSpaces is an offline, open source, document manager with tagging support
chore: extractung untranslated strings from code
Ilian Sapundshievc81825d65db1
diff --git a/src/renderer/components/EntryContainerTabs.tsx b/src/renderer/components/EntryContainerTabs.tsxindex fb5ba8ec5..c5e484c7e 100644--- a/src/renderer/components/EntryContainerTabs.tsx+++ b/src/renderer/components/EntryContainerTabs.tsx@@ -34,6 +34,7 @@ import {import { Badge, Box, Tab, Tabs, TabsProps } from '@mui/material';import { styled, useTheme } from '@mui/material/styles';import React, { useEffect, useReducer, useRef } from 'react';+import { useTranslation } from 'react-i18next';import { useDispatch, useSelector } from 'react-redux';const TabProperties = React.lazy(@@ -68,6 +69,7 @@ function EntryContainerTabs(props: EntryContainerTabsProps) {isSavingInProgress,savingFile,} = props;+ const { t } = useTranslation();const { initHistory, checkOllamaModels } = useChatContext();const { getTabsArray } = useEntryPropsTabsContext();const theme = useTheme();@@ -186,7 +188,7 @@ function EntryContainerTabs(props: EntryContainerTabsProps) {onChange={handleChange}variant="scrollable"scrollButtons={false}- aria-label="Switching among description, revisions entry properties"+ aria-label={t('core:tabsSwitcherAriaLabel')}>{tabsArray.current.map((tab, index) => (<Tabdiff --git a/src/renderer/components/EntryProperties.tsx b/src/renderer/components/EntryProperties.tsxindex 2e35a139c..8e16d62f9 100644--- a/src/renderer/components/EntryProperties.tsx+++ b/src/renderer/components/EntryProperties.tsx@@ -393,7 +393,7 @@ function EntryProperties({ tileServer }: Props) {(name: string, value: Array<TS.Tag>, action: string) => {if (openedEntry && fileChanged) {showNotification(- `You can't edit tags, because '${openedEntry.path}' is opened for editing`,+ t('core:cantEditTagsFileOpened', { path: openedEntry.path }),'default',true,);diff --git a/src/renderer/components/LinksTab.tsx b/src/renderer/components/LinksTab.tsxindex b8d03c492..2806489b2 100644--- a/src/renderer/components/LinksTab.tsx+++ b/src/renderer/components/LinksTab.tsx@@ -244,7 +244,9 @@ function LinksTab(props: Props) {<>{inboundLinks.current.map((entry) => incomingLinkButton(entry))}</>) : (<>- <Typography variant="caption">No incoming links found</Typography>+ <Typography variant="caption">+ {t('core:noIncomingLinksFound')}+ </Typography><br /></>)}diff --git a/src/renderer/components/LocationView.tsx b/src/renderer/components/LocationView.tsxindex b45f6da34..117373136 100644--- a/src/renderer/components/LocationView.tsx+++ b/src/renderer/components/LocationView.tsx@@ -233,7 +233,7 @@ function LocationView(props: Props) {selectedEntries.length > 0 ? selectedEntries : [entry];openMoveCopyFilesDialog(entries, targetPath, targetLocation.uuid);} else {- showNotification(t('Moving file not possible'), 'error', true);+ showNotification(t('core:movingFileNotPossible'), 'error', true);return;}setSelectedEntries([]);diff --git a/src/renderer/components/TagLibrary.tsx b/src/renderer/components/TagLibrary.tsxindex 2eeb2f66f..dbabed264 100644--- a/src/renderer/components/TagLibrary.tsx+++ b/src/renderer/components/TagLibrary.tsx@@ -286,7 +286,10 @@ function TagLibrary({ reduceHeightBy }: Props) {><SidePanelTitletitle={t('core:tagLibrary')}- tooltip={`Your tag library contains ${allTags.length} tags \ndistributed in ${wSpaceTagGroups.length} tag groups`}+ tooltip={t('core:tagLibraryTooltip', {+ tagCount: allTags.length,+ groupCount: wSpaceTagGroups.length,+ })}menuButton={(wSpaceTagGroups.some((tg) => !tg.readOnly) ||wSpaceTagGroups.length === 0) && (diff --git a/src/renderer/components/TargetFileBox.tsx b/src/renderer/components/TargetFileBox.tsxindex b21b99a16..5ec601432 100644--- a/src/renderer/components/TargetFileBox.tsx+++ b/src/renderer/components/TargetFileBox.tsx@@ -81,7 +81,7 @@ function TargetFileBox(props: Props) {console.log('Dropped files: ' + JSON.stringify(files));if (dirPath === undefined) {showNotification(- 'Importing files failed, because no folder is opened in TagSpaces!',+ t('core:importingFilesFailedNoFolderOpen'),'error',true,);diff --git a/src/renderer/components/chat/AiGenTagsButton.tsx b/src/renderer/components/chat/AiGenTagsButton.tsxindex 62b7ed4ec..6c6941e6f 100644--- a/src/renderer/components/chat/AiGenTagsButton.tsx+++ b/src/renderer/components/chat/AiGenTagsButton.tsx@@ -98,7 +98,7 @@ function AiGenTagsButton(props: Props) {.then((results) => {setIsLoading(false);if (results && results.every((result) => result)) {- showNotification('Tags generated by an AI.');+ showNotification(t('core:tagsGeneratedByAI'));}}).catch((e) => {diff --git a/src/renderer/components/chat/ChatView.tsx b/src/renderer/components/chat/ChatView.tsxindex a343a8da2..060eb3e66 100644--- a/src/renderer/components/chat/ChatView.tsx+++ b/src/renderer/components/chat/ChatView.tsx@@ -490,11 +490,7 @@ function ChatView() {#chatMD .milkdown .ProseMirror a { color: ${theme.palette.primary.main}; }`}</style><MilkdownProvider>- <ChatMdEditor- showCurrent={isLoading.current}- ref={editorRef}- placeholder="Test"- />+ <ChatMdEditor showCurrent={isLoading.current} ref={editorRef} /></MilkdownProvider></Grid>{/* Images and chat input */}@@ -516,7 +512,7 @@ function ChatView() {';base64,' +image.base64}- alt={`Image ${index + 1}`}+ alt={t('core:chatImageAlt', { number: index + 1 })}style={{ maxHeight: 150, width: 'auto' }}/><TsIconButtondiff --git a/src/renderer/components/dialogs/AboutDialog.tsx b/src/renderer/components/dialogs/AboutDialog.tsxindex edbc1763d..71402292c 100644--- a/src/renderer/components/dialogs/AboutDialog.tsx+++ b/src/renderer/components/dialogs/AboutDialog.tsx@@ -249,7 +249,7 @@ function AboutDialog(props: Props) {}}sx={{ marginRight: AppConfig.defaultSpaceBetweenButtons }}>- Upgrade to PRO+ {t('core:upgradeToProButton')}</TsButton>)}<TsButtondiff --git a/src/renderer/components/dialogs/CreateDirectoryDialog.tsx b/src/renderer/components/dialogs/CreateDirectoryDialog.tsxindex bb27f22d3..f45a5f04d 100644--- a/src/renderer/components/dialogs/CreateDirectoryDialog.tsx+++ b/src/renderer/components/dialogs/CreateDirectoryDialog.tsx@@ -117,7 +117,7 @@ function CreateDirectoryDialog(props: Props) {}});} else {- showNotification('Directory ' + dirPath + ' exist!');+ showNotification(t('core:directoryExistsAlert', { path: dirPath }));}});diff --git a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx b/src/renderer/components/dialogs/CreateEditLocationDialog.tsxindex 9750803bf..60fd7021b 100644--- a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx+++ b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx@@ -298,7 +298,7 @@ function CreateEditLocationDialog(props: Props) {if (!location) {setNewUuid(newId);} else {- showNotification('Location with this ID already exists', 'error');+ showNotification(t('core:locationIdAlreadyExists'), 'error');}}/**@@ -1169,7 +1169,7 @@ function CreateEditLocationDialog(props: Props) {requiredname="newuuid"data-tid="newuuid"- placeholder="Unique location identifier"+ placeholder={t('core:uniqueLocationIdentifier')}onChange={(event) => setNewLocationID(event.target.value)}value={newuuid}label={t('core:locationId')}diff --git a/src/renderer/components/dialogs/DownloadUrlDialog.tsx b/src/renderer/components/dialogs/DownloadUrlDialog.tsxindex bb1e03a60..73c7c6107 100644--- a/src/renderer/components/dialogs/DownloadUrlDialog.tsx+++ b/src/renderer/components/dialogs/DownloadUrlDialog.tsx@@ -133,7 +133,11 @@ function DownloadUrlDialog(props: Props) {t('core:errorCORS'),),);- showNotification('downloadFile error' + e.message, 'error', true);+ showNotification(+ t('core:downloadFileError', { message: e.message }),+ 'error',+ true,+ );});} else {saveAs(fileUrl.current, decodeURIComponent(fileName));diff --git a/src/renderer/components/dialogs/components/CreateLink.tsx b/src/renderer/components/dialogs/components/CreateLink.tsxindex 46ffabbc3..2928de6c8 100644--- a/src/renderer/components/dialogs/components/CreateLink.tsx+++ b/src/renderer/components/dialogs/components/CreateLink.tsx@@ -139,7 +139,7 @@ function CreateLink(props: Props) {autoFocuserror={urlError || !!urlInputError}id="fileLinkID"- placeholder="e.g. https://wikipedia.org"+ placeholder={t('core:createLinkPlaceholder')}label={t('core:linkURL')}onChange={handleUrlChange}/>diff --git a/src/renderer/components/dialogs/components/SettingsExtensions.tsx b/src/renderer/components/dialogs/components/SettingsExtensions.tsxindex 304e3e631..d432a67d6 100644--- a/src/renderer/components/dialogs/components/SettingsExtensions.tsx+++ b/src/renderer/components/dialogs/components/SettingsExtensions.tsx@@ -212,7 +212,9 @@ function SettingsExtensions() {</List>{extensions &&extensions.filter((ext) => ext.extensionExternal).length < 1 && (- <Typography variant="subtitle1">No extensions found</Typography>+ <Typography variant="subtitle1">+ {t('core:noExtensionsFound')}+ </Typography>)}{devMode && AppConfig.isElectron && (<Box>diff --git a/src/renderer/components/dialogs/components/SettingsGeneral.tsx b/src/renderer/components/dialogs/components/SettingsGeneral.tsxindex a87c72838..691e58b37 100644--- a/src/renderer/components/dialogs/components/SettingsGeneral.tsx+++ b/src/renderer/components/dialogs/components/SettingsGeneral.tsx@@ -912,11 +912,7 @@ function SettingsGeneral() {primary={<>{t('core:author')}- <InfoIcon- tooltip={- 'The value of this text box can be used for example in the templates as {author} variable. If you do not want this, just leave the text box empty.'- }- />+ <InfoIcon tooltip={t('core:authorVariableTooltip')} /></>}/>diff --git a/src/renderer/components/dialogs/components/SettingsTemplates.tsx b/src/renderer/components/dialogs/components/SettingsTemplates.tsxindex 7e7573f5f..93c2a23c4 100644--- a/src/renderer/components/dialogs/components/SettingsTemplates.tsx+++ b/src/renderer/components/dialogs/components/SettingsTemplates.tsx@@ -335,7 +335,7 @@ function SettingsTemplates(props: Props) {value={currentTemplate(template).type}exclusivesx={{ marginTop: '10px', marginBottom: '10px' }}- title="Template type"+ title={t('core:templateTypeTitle')}><TsToggleButtonvalue={false}@@ -405,7 +405,7 @@ function SettingsTemplates(props: Props) {disabled={!Pro || !!AppConfig.ExtFileTemplates}error={!currentTemplate(template).fileNameTmpl}label={t('fileNameTmpl')}- placeholder="e.g.: note[{timestamp}] or {uuid}"+ placeholder={t('core:templateFileNamePlaceholder')}value={currentTemplate(template).fileNameTmpl}onChange={(e) => {if (fileTemplatesContext) {diff --git a/src/renderer/components/md/DescriptionMdEditor.tsx b/src/renderer/components/md/DescriptionMdEditor.tsxindex 3eb313c0c..8c81c7ccb 100644--- a/src/renderer/components/md/DescriptionMdEditor.tsx+++ b/src/renderer/components/md/DescriptionMdEditor.tsx@@ -227,10 +227,10 @@ const DescriptionMdEditor = forwardRef<CrepeRef, CrepeMdEditorProps>(};const ctxItems = [- { label: 'Cut', shortcut: mod + 'X', cmd: 'cut' },- { label: 'Copy', shortcut: mod + 'C', cmd: 'copy' },- { label: 'Paste', shortcut: mod + 'V', cmd: 'paste' },- { label: 'Select All', shortcut: mod + 'A', cmd: 'selectAll' },+ { label: t('core:cut'), shortcut: mod + 'X', cmd: 'cut' },+ { label: t('core:copy'), shortcut: mod + 'C', cmd: 'copy' },+ { label: t('core:paste'), shortcut: mod + 'V', cmd: 'paste' },+ { label: t('core:selectAll'), shortcut: mod + 'A', cmd: 'selectAll' },];return (diff --git a/src/renderer/components/menus/DirectoryMenu.tsx b/src/renderer/components/menus/DirectoryMenu.tsxindex 082ce0dc4..bf4820d3f 100644--- a/src/renderer/components/menus/DirectoryMenu.tsx+++ b/src/renderer/components/menus/DirectoryMenu.tsx@@ -306,7 +306,7 @@ function DirectoryMenu(props: Props) {entry: newEntry,});showNotification(- 'File ' + newFilePath + ' successfully imported.',+ t('core:fileImportedSuccess', { path: newFilePath }),'default',true,);@@ -316,7 +316,7 @@ function DirectoryMenu(props: Props) {// TODO showAlertDialog("Saving " + filePath + " failed.");console.log('Save to file ' + newFilePath + ' failed ' + error);showNotification(- 'Importing file ' + newFilePath + ' failed.',+ t('core:fileImportFailed', { path: newFilePath }),'error',true,);@@ -377,14 +377,14 @@ function DirectoryMenu(props: Props) {meta: { id: entry.uuid, thumbPath: targetThumbPath },});showNotification(- 'Thumbnail created for: ' + parentDirectoryPath,+ t('core:thumbnailCreatedFor', { path: parentDirectoryPath }),'default',true,);return true;}).catch((error) => {- showNotification('Thumbnail creation failed.', 'default', true);+ showNotification(t('core:thumbnailCreationFailed'), 'default', true);console.log('Error setting Thumb for entry: ' + directoryPath, error);return true;});diff --git a/src/renderer/components/menus/FileMenu.tsx b/src/renderer/components/menus/FileMenu.tsxindex a0b3dd85b..2414e60b2 100644--- a/src/renderer/components/menus/FileMenu.tsx+++ b/src/renderer/components/menus/FileMenu.tsx@@ -229,7 +229,7 @@ function FileMenu(props: Props) {return true;}).catch((error) => {- showNotification('Thumbnail creation failed.');+ showNotification(t('core:thumbnailCreationFailed'));console.log('Error setting Thumb for entry: ' + lastSelectedEntry.path,error,@@ -263,11 +263,13 @@ function FileMenu(props: Props) {.then((dirPath: string) => getAllPropertiesPromise(dirPath)).then((fsEntry: TS.FileSystemEntry) => {setBackgroundImageChange(fsEntry);- showNotification('Background created for: ' + fsEntry.path);+ showNotification(+ t('core:backgroundCreatedFor', { path: fsEntry.path }),+ );return true;}).catch((error) => {- showNotification('Background creation failed.');+ showNotification(t('core:backgroundCreationFailed'));console.log('Error setting Background for entry: ' + lastSelectedEntry.path,error,@@ -285,7 +287,7 @@ function FileMenu(props: Props) {selectedEntries.some((e) => e.path === openedEntry.path)) {showNotification(- `You can't edit tags, because '${openedEntry.path}' is opened for editing`,+ t('core:cantEditTagsFileOpened', { path: openedEntry.path }),'default',true,);diff --git a/src/renderer/content/ProTeaserSlides.tsx b/src/renderer/content/ProTeaserSlides.tsxindex 07a7d5e6c..42f412970 100644--- a/src/renderer/content/ProTeaserSlides.tsx+++ b/src/renderer/content/ProTeaserSlides.tsx@@ -88,25 +88,14 @@ export function getProTeaserSlides(t) {pictureHeight: 350,};slidesEN[slidesNames[3]] = {- title: t('Calendar Perspective β See Your Files in Time'),+ title: t('peri:ptsCalendarTitle'),description: (<><ul style={{ marginTop: 0 }}>- <li>- π <b>Organize files by date</b> using creation date, last modified- date, folder names, or date tags- </li>- <li>- π <b>Quickly find what matters</b> by browsing your files day by- day, month by month, or year by year- </li>- <li>- ποΈ <b>Perfect for notes, projects, and logs</b> where time matters- </li>- <li>- β‘ <b>Works instantly with your existing folders</b> β no setup- required- </li>+ <li>{t('peri:ptsCalendarSection1')}</li>+ <li>{t('peri:ptsCalendarSection2')}</li>+ <li>{t('peri:ptsCalendarSection3')}</li>+ <li>{t('peri:ptsCalendarSection4')}</li></ul></>),diff --git a/src/renderer/hooks/ChatProvider.tsx b/src/renderer/hooks/ChatProvider.tsxindex ea9aeeda3..6e93e27ca 100644--- a/src/renderer/hooks/ChatProvider.tsx+++ b/src/renderer/hooks/ChatProvider.tsx@@ -482,10 +482,12 @@ export const ChatContextProvider = ({ children }: ChatContextProviderProps) => {function removeModel(modelName: string) {const model = findModel(modelName);if (model && defaultAiProvider) {- const result = confirm('Do you want to remove ' + model.name + ' model?');+ const result = confirm(+ t('core:confirmRemoveModel', { name: model.name }),+ );if (result) {//addTimeLineRequest('deleting ' + model.name, 'system');- showNotification('deleting ' + model.name + ' succeeded');+ showNotification(t('core:modelDeletedSuccess', { name: model.name }));deleteOllamaModel(ollamaClient.current, model.name).then((response) => {console.log('deleteOllamaModel response:' + response);if (response) {@@ -928,7 +930,7 @@ export const ChatContextProvider = ({ children }: ChatContextProviderProps) => {isTyping.current = false;forceUpdate();if (apiResponse === undefined && stream === false) {- showNotification('Error check if Ollama service is alive');+ showNotification(t('core:ollamaServiceNotAlive'));return undefined;}if (msg && includeHistory) {@@ -1113,7 +1115,7 @@ export const ChatContextProvider = ({ children }: ChatContextProviderProps) => {);}} else {- showNotification('Model not found, try pulling it first');+ showNotification(t('core:modelNotFoundTryPull'));}return Promise.resolve(undefined);}@@ -1158,9 +1160,7 @@ export const ChatContextProvider = ({ children }: ChatContextProviderProps) => {);}} else {- showNotification(- 'Error: there is a problem with Ollama service conection', //or Description generation not supported for:' + entry.name,- );+ showNotification(t('core:ollamaConnectionError'));return Promise.resolve(undefined);}return Promise.resolve(entry);@@ -1230,7 +1230,9 @@ export const ChatContextProvider = ({ children }: ChatContextProviderProps) => {);}} else {- showNotification('Tags generation not supported for:' + entry.name);+ showNotification(+ t('core:tagsGenerationNotSupportedFor', { name: entry.name }),+ );}return Promise.resolve(false);diff --git a/src/renderer/hooks/IOActionsContextProvider.tsx b/src/renderer/hooks/IOActionsContextProvider.tsxindex d1a6c51a4..94b40b9fd 100644--- a/src/renderer/hooks/IOActionsContextProvider.tsx+++ b/src/renderer/hooks/IOActionsContextProvider.tsx@@ -1761,10 +1761,12 @@ export const IOActionsContextProvider = ({return openDirectory(dirPath);})*/.catch((error) => {- showNotification('Error creating duplicate: ' + error.message);+ showNotification(+ t('core:errorCreatingDuplicate', { message: error.message }),+ );});} else {- showNotification('Unable to duplicate, no file selected');+ showNotification(t('core:unableToDuplicateNoFile'));}}@@ -1863,7 +1865,11 @@ export const IOActionsContextProvider = ({}).catch((err) => {console.log('Error ' + entry.path + ' with ' + err);- showNotification('Error: ' + err.message, 'error', true);+ showNotification(+ t('core:genericError', { message: err.message }),+ 'error',+ true,+ );return undefined;});}diff --git a/src/renderer/hooks/OpenedEntryContextProvider.tsx b/src/renderer/hooks/OpenedEntryContextProvider.tsxindex 60247934a..c783facc9 100644--- a/src/renderer/hooks/OpenedEntryContextProvider.tsx+++ b/src/renderer/hooks/OpenedEntryContextProvider.tsx@@ -928,13 +928,17 @@ ${newHTMLFileContent.split('<body></body>')[1]}`;}saveFilePromise({ path: filePath }, fileContent, false, true).then((fsEntry: TS.FileSystemEntry) => {- showNotification(`File '${fileNameAndExt}' created.`, 'default', true);+ showNotification(+ t('core:fileCreated', { name: fileNameAndExt }),+ 'default',+ true,+ );return true;}).catch((error) => {console.log('Error creating file: ' + error);showNotification(- `Error creating file '${fileNameAndExt}'`,+ t('core:errorCreatingNamedFile', { name: fileNameAndExt }),'error',true,);diff --git a/src/renderer/locales/en/core.json b/src/renderer/locales/en/core.jsonindex a6711250a..593e9216a 100644--- a/src/renderer/locales/en/core.json+++ b/src/renderer/locales/en/core.json@@ -1109,5 +1109,61 @@"filesPerMonth": "Files per month","confirmResetFileTypes": "Are you sure you want to reset all custom file type settings to default?","filterByFileExtension": "Filter by extension...",+ "movingFileNotPossible": "Moving file not possible",+ "importingFilesFailedNoFolderOpen": "Importing files failed, because no folder is opened in TagSpaces!",+ "locationIdAlreadyExists": "Location with this ID already exists",+ "uniqueLocationIdentifier": "Unique location identifier",+ "directoryExistsAlert": "Directory {{path}} exist!",+ "downloadFileError": "Download file error: {{message}}",+ "thumbnailCreationFailed": "Thumbnail creation failed.",+ "thumbnailCreatedFor": "Thumbnail created for: {{path}}",+ "backgroundCreatedFor": "Background created for: {{path}}",+ "backgroundCreationFailed": "Background creation failed.",+ "cantEditTagsFileOpened": "You can't edit tags, because '{{path}}' is opened for editing",+ "fileImportedSuccess": "File {{path}} successfully imported.",+ "fileImportFailed": "Importing file {{path}} failed.",+ "tagsGeneratedByAI": "Tags generated by an AI.",+ "confirmRemoveModel": "Do you want to remove {{name}} model?",+ "modelDeletedSuccess": "Deleting {{name}} succeeded",+ "ollamaServiceNotAlive": "Error checking if Ollama service is alive",+ "modelNotFoundTryPull": "Model not found, try pulling it first",+ "ollamaConnectionError": "There is a problem with the Ollama service connection",+ "tagsGenerationNotSupportedFor": "Tags generation not supported for: {{name}}",+ "fileCreated": "File '{{name}}' created.",+ "errorCreatingNamedFile": "Error creating file '{{name}}'",+ "errorCreatingFileInDir": "Error creating file in '{{dir}}'",+ "errorCreatingDuplicate": "Error creating duplicate: {{message}}",+ "unableToDuplicateNoFile": "Unable to duplicate, no file selected",+ "genericError": "Error: {{message}}",+ "confirmOpenUrl": "Do you really want to open this URL: {{url}} ?",+ "confirmOpenFile": "Do you really want to open \"{{path}}\"? Execution of some files can be potentially dangerous!",+ "onboardingFailedToLoad": "Onboarding failed to load",+ "perspectiveFailedToLoad": "Perspective failed to load",+ "perspectiveLabel": "Perspective:",+ "entriesSelected": "{{count}} entries selected",+ "foldersAndFilesFound": "{{folders}} folder(s) and {{files}} file(s) found",+ "filesFound": "{{files}} file(s) found",+ "chatImageAlt": "Image {{number}}",+ "noExtensionsFound": "No extensions found",+ "templateTypeTitle": "Template type",+ "templateFileNamePlaceholder": "e.g.: note[{timestamp}] or {uuid}",+ "createLinkPlaceholder": "e.g. https://wikipedia.org",+ "authorVariableTooltip": "The value of this text box can be used for example in the templates as {author} variable. If you do not want this, just leave the text box empty.",+ "tagLibraryTooltip": "Your tag library contains {{tagCount}} tags \ndistributed in {{groupCount}} tag groups",+ "upgradeToProButton": "Upgrade to PRO",+ "tabsSwitcherAriaLabel": "Switching among description, revisions and entry properties",+ "noIncomingLinksFound": "No incoming links found",+ "useCurrentLocation": "Use current location",+ "useCurrentLocationTooltip": "Tries to find and use the current location",+ "numberOfSelectedFilesTooltip": "Number of selected files",+ "saveAsDialogDefaults": "Save as dialog defaults",+ "workspaceShortNamePlaceholder": "Workspace's abbreviation or emoji, max. 5 chars",+ "workspaceFullNamePlaceholder": "A descriptive name of the workspace",+ "workspaceShortNameRequired": "Short name is required",+ "workspaceShortNameTooLong": "Short name must be at most 5 characters",+ "workspaceFullNameRequired": "Full name is required",+ "itemsInColumn": "{{count}} items in this column",+ "loadingKanbanBoard": "Loading kanban boardβ¦",+ "extractingContent": "Extracting content...","-": "-"}diff --git a/src/renderer/locales/en/peri.json b/src/renderer/locales/en/peri.jsonindex 38f8e8ff9..e82f4d26a 100644--- a/src/renderer/locales/en/peri.json+++ b/src/renderer/locales/en/peri.json@@ -61,6 +61,11 @@"ptsFolderVizFolderTree": "Folder Tree β View the folder structure behind your search results.","ptsFolderVizCircularFolderTree": "Circular Folder Tree β Quickly spot folders with a high number of files.","ptsFolderVizTreeMap": "Treemap β Easily identify large files that take up space.",+ "ptsCalendarTitle": "Calendar Perspective in TagSpaces Pro",+ "ptsCalendarSection1": "Organize files by date β using creation date, last modified date, folder names, or date tags.",+ "ptsCalendarSection2": "Quickly find what matters β browse your files day by day, month by month, or year by year.",+ "ptsCalendarSection3": "Perfect for notes, projects, and logs β where time matters.",+ "ptsCalendarSection4": "Works instantly with your existing folders β no setup required.","ptsMapiqueTitle": "Mapique Perspective in TagSpaces Pro","ptsMapiqueSection1": "The Mapique Perspective displays geo-tagged files and folders directly on an interactive map. It can automatically extract location data from JPEG metadata, letting you place files where they belong geographically.","ptsMapiqueSection2": "Add your own geo-tags to files and folders for powerful use cases such as trip planning, visualizing photo collections, or keeping private location-based notes.",@@ -140,5 +145,11 @@"proTeaserRevisionsHeadline": "File history at your fingertips","proTeaserRevisionsSubtext": "Auto-save & file revisions","proTeaserFolderColorHeadline": "Color-code your folders",- "proTeaserFolderColorSubtext": "Custom colors & backgrounds"+ "proTeaserFolderColorSubtext": "Custom colors & backgrounds",+ "trelloImportStep1": "Go to a Trello board.",+ "trelloImportStep2": "Open the board's menu by clicking the 3-dot button in the top right of the app.",+ "trelloImportStep3": "Select 'More'.",+ "trelloImportStep4": "Click on 'Print and export'.",+ "trelloImportStep5": "Choose 'Export as JSON'.",+ "trelloImportStep6": "Initiate the import by selecting the exported file with the help of the next button."}diff --git a/src/renderer/perspectives/PerspectiveErrorBoundary.tsx b/src/renderer/perspectives/PerspectiveErrorBoundary.tsxindex f279ea6d6..03865c5ef 100644--- a/src/renderer/perspectives/PerspectiveErrorBoundary.tsx+++ b/src/renderer/perspectives/PerspectiveErrorBoundary.tsx@@ -16,6 +16,7 @@**/+import i18n from '-/services/i18n';import Alert from '@mui/material/Alert';import Box from '@mui/material/Box';import Typography from '@mui/material/Typography';@@ -61,12 +62,12 @@ export class PerspectiveErrorBoundary extends React.Component<Props, State> {<Alert severity="error"><Typography variant="subtitle1" sx={{ fontWeight: 'bold' }}>{this.props.context === 'onboarding'- ? 'Onboarding failed to load'- : 'Perspective failed to load'}+ ? i18n.t('core:onboardingFailedToLoad')+ : i18n.t('core:perspectiveFailedToLoad')}</Typography><Typography variant="body2">{message}</Typography><Typography variant="caption" sx={{ display: 'block', marginTop: 1 }}>- Perspective: {this.props.perspectiveId}+ {i18n.t('core:perspectiveLabel')} {this.props.perspectiveId}</Typography></Alert></Box>diff --git a/src/renderer/perspectives/common/CellView.tsx b/src/renderer/perspectives/common/CellView.tsxindex a45589299..c88b98d66 100644--- a/src/renderer/perspectives/common/CellView.tsx+++ b/src/renderer/perspectives/common/CellView.tsx@@ -233,11 +233,7 @@ function CellView(props: Props) {const handleFileMoveDrop = (item, monitor) => {if (currentLocation?.isReadOnly) {- showNotification(- 'Importing files is disabled because the location is in read-only mode.',- 'error',- true,- );+ showNotification(i18n.t('core:dndDisabledReadOnlyMode'), 'error', true);return;}if (item) {diff --git a/src/renderer/perspectives/grid/components/GridPagination.tsx b/src/renderer/perspectives/grid/components/GridPagination.tsxindex 45ab6d85c..3f7b1b716 100644--- a/src/renderer/perspectives/grid/components/GridPagination.tsx+++ b/src/renderer/perspectives/grid/components/GridPagination.tsx@@ -192,10 +192,12 @@ function GridPagination(props: Props) {const folderSummary = useMemo(() => {if (selectedEntries && selectedEntries.length > 0) {- return `${selectedEntries.length} entries selected`;+ return t('core:entriesSelected', { count: selectedEntries.length });}- return `${dirCount > 0 ? `${dirCount} folder(s) and ` : ''}${fileCount} file(s) found`;- }, [selectedEntries, dirCount, fileCount]);+ return dirCount > 0+ ? t('core:foldersAndFilesFound', { folders: dirCount, files: fileCount })+ : t('core:filesFound', { files: fileCount });+ }, [selectedEntries, dirCount, fileCount, t]);// Called when a selection drag ends. We look for any item elements whose// bounding rectangle intersects the drag rectangle.diff --git a/src/renderer/services/utils-io.ts b/src/renderer/services/utils-io.tsindex 7598bc908..b2cc7ddc5 100644--- a/src/renderer/services/utils-io.ts+++ b/src/renderer/services/utils-io.ts@@ -16,6 +16,7 @@*/import AppConfig from '-/AppConfig';+import i18n from '-/services/i18n';import { Pro } from '-/pro';import defaultSettings from '-/reducers/settings-default';import { TS } from '-/tagspaces.namespace';@@ -733,9 +734,7 @@ export function sanitizeAttribution(html: string | undefined): string {export function openURLExternally(url: string, skipConfirmation = false) {if (skipConfirmation) {openUrl(url);- } else if (- window.confirm('Do you really want to open this url: ' + url + ' ?')- ) {+ } else if (window.confirm(i18n.t('core:confirmOpenUrl', { url }))) {openUrl(url);}}@@ -892,11 +891,7 @@ export function openFileMessage(if (!warningOpeningFilesExternally ||// eslint-disable-next-line no-restricted-globals- confirm(- 'Do you really want to open "' +- filePath +- '"? Execution of some files can be potentially dangerous!',- )+ confirm(i18n.t('core:confirmOpenFile', { path: filePath }))) {if (AppConfig.isElectron) {window.electronIO.ipcRenderer.sendMessage('openFile', filePath);