Skip to content

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

chore: extracting some other string for i18n

Ilian Sapundshiev85ba58c2248d
diff --git a/src/renderer/components/dialogs/AboutDialog.tsx b/src/renderer/components/dialogs/AboutDialog.tsx
index 71402292c..6009ede9c 100644
--- a/src/renderer/components/dialogs/AboutDialog.tsx
+++ b/src/renderer/components/dialogs/AboutDialog.tsx
@@ -90,7 +90,7 @@ function AboutDialog(props: Props) {
}
}
- let versionInfo = 'Check for updates';
+ let versionInfo = t('core:checkForUpdates');
if (newVersion && newVersion.length > 1) {
if (updateAvailable) {
versionInfo = t('getNewVersion', { newVersion });
@@ -152,17 +152,15 @@ function AboutDialog(props: Props) {
/>
<TsTooltip
placement="top"
- title={
- 'Build on: ' +
- versionMeta.buildTime +
- '\nPlatform: ' +
- navigator.userAgent
- }
+ title={t('core:buildOnPlatformTooltip', {
+ buildTime: versionMeta.buildTime,
+ userAgent: navigator.userAgent,
+ })}
>
<Typography component="span" variant="subtitle1">
- Version:&nbsp;
+ {t('core:versionLabel')}&nbsp;
{tsType}&nbsp;{versionMeta.version}
- &nbsp;Build ID:&nbsp;
+ &nbsp;{t('core:buildIdLabel')}&nbsp;
{buildID}
</Typography>
</TsTooltip>
@@ -173,14 +171,13 @@ function AboutDialog(props: Props) {
{productName}
&nbsp;
</strong>
- is made possible by the TagSpaces project and other open source
- software listed in the:
+ {t('core:madePossibleByTagSpaces')}
<br />
<TsButton
sx={{ marginTop: '5px' }}
onClick={() => openThirdPartyLibsDialog()}
>
- Software Acknowledgements
+ {t('core:softwareAcknowledgements')}
</TsButton>
<br />
{!Pro && (
@@ -205,7 +202,7 @@ function AboutDialog(props: Props) {
openURLExternally(imprintURL, true);
}}
>
- Imprint
+ {t('core:imprint')}
</TsButton>
)}
{privacyURL && (
@@ -216,7 +213,7 @@ function AboutDialog(props: Props) {
openURLExternally(privacyURL, true);
}}
>
- Privacy Policy
+ {t('core:privacyPolicy')}
</TsButton>
)}
<TsButton
@@ -226,7 +223,7 @@ function AboutDialog(props: Props) {
openURLExternally(Links.links.changelogURL, true);
}}
>
- Changelog
+ {t('core:changelog')}
</TsButton>
<TsButton
sx={{ marginRight: AppConfig.defaultSpaceBetweenButtons }}
diff --git a/src/renderer/components/dialogs/components/SettingsAI.tsx b/src/renderer/components/dialogs/components/SettingsAI.tsx
index 6e6ccc9ac..df93e5532 100644
--- a/src/renderer/components/dialogs/components/SettingsAI.tsx
+++ b/src/renderer/components/dialogs/components/SettingsAI.tsx
@@ -201,7 +201,7 @@ function SettingsAI(props: Props) {
</TsButton>
<TsButton
variant="text"
- tooltip="Resets to the default prompt"
+ tooltip={t('peri:resetsToDefaultPrompt')}
data-tid={'reset' + key + 'TID'}
onClick={() => resetTemplate(key)}
>
@@ -236,9 +236,7 @@ function SettingsAI(props: Props) {
<Typography>{t('core:aiSettings')}</Typography>
<br />
<Typography variant="caption">
- TagSpaces does not have its own AI engine or models, but relies
- entirely on external software like Ollama. If you don't have
- Ollama, you can download it for free from
+ {t('peri:ollamaIntroPrefix')}{' '}
<TsButton
sx={{
fontSize: '13px',
@@ -254,8 +252,7 @@ function SettingsAI(props: Props) {
>
ollama.com
</TsButton>{' '}
- and follow the installation instructions to get it set up on your
- computer.
+ {t('peri:ollamaIntroSuffix')}
</Typography>
</Box>
</AccordionSummary>
@@ -357,8 +354,7 @@ function SettingsAI(props: Props) {
<Accordion defaultExpanded>
<AccordionSummary>
<Typography variant="caption">
- All AI-functionality is currently disabled. Please add and
- configure an AI-engine in order to use external AIs in TagSpaces.
+ {t('peri:aiFunctionalityDisabled')}
</Typography>
</AccordionSummary>
</Accordion>
@@ -404,7 +400,7 @@ function SettingsAI(props: Props) {
onClick={(e) => {
e.stopPropagation();
const result = confirm(
- 'Do you want to remove "' + provider.name + '" AI config?',
+ t('peri:confirmRemoveAiConfig', { name: provider.name }),
);
if (result) {
dispatch(SettingsActions.removeAiProvider(provider.id));
diff --git a/src/renderer/components/dialogs/components/SettingsAdvanced.tsx b/src/renderer/components/dialogs/components/SettingsAdvanced.tsx
index d356ee9cb..b85318cc9 100644
--- a/src/renderer/components/dialogs/components/SettingsAdvanced.tsx
+++ b/src/renderer/components/dialogs/components/SettingsAdvanced.tsx
@@ -398,11 +398,7 @@ function SettingsAdvanced(props: Props) {
primary={
<>
{t('enableDevMode')}
- <InfoIcon
- tooltip={
- 'Will enable some experimental features and turn on extra debugging'
- }
- />
+ <InfoIcon tooltip={t('core:devModeTooltip')} />
</>
}
/>
diff --git a/src/renderer/components/dialogs/components/SettingsExtensions.tsx b/src/renderer/components/dialogs/components/SettingsExtensions.tsx
index d432a67d6..778d3506a 100644
--- a/src/renderer/components/dialogs/components/SettingsExtensions.tsx
+++ b/src/renderer/components/dialogs/components/SettingsExtensions.tsx
@@ -144,7 +144,7 @@ function SettingsExtensions() {
<Typography sx={{ fontWeight: 'bold' }}>
{t('core:coreExtensions')}
</Typography>
- <InfoIcon tooltip="These are extensions which are packaged with the current version of the app" />
+ <InfoIcon tooltip={t('core:coreExtensionsTooltip')} />
</AccordionSummary>
<AccordionDetails>
<List>
diff --git a/src/renderer/components/dialogs/components/SettingsKeyBindings.tsx b/src/renderer/components/dialogs/components/SettingsKeyBindings.tsx
index 2d7a5acbb..0aed4edf3 100644
--- a/src/renderer/components/dialogs/components/SettingsKeyBindings.tsx
+++ b/src/renderer/components/dialogs/components/SettingsKeyBindings.tsx
@@ -74,7 +74,7 @@ function SettingsKeyBindings() {
primary={
<>
{t('core:enableGlobalKeyboardShortcuts')}
- <InfoIcon tooltip="Enables global shortcut for creating new files, file navigation, play/pause audio files or opening the search. Global shortcuts are working even if the app window is not currently in focus or visible." />
+ <InfoIcon tooltip={t('core:globalShortcutsTooltip')} />
</>
}
/>
diff --git a/src/renderer/locales/en/core.json b/src/renderer/locales/en/core.json
index 2b05e6b92..358825062 100644
--- a/src/renderer/locales/en/core.json
+++ b/src/renderer/locales/en/core.json
@@ -1030,5 +1030,17 @@
"itemsInColumn": "{{count}} items in this column",
"loadingKanbanBoard": "Loading kanban board…",
"extractingContent": "Extracting content...",
+ "checkForUpdates": "Check for updates",
+ "buildOnPlatformTooltip": "Build on: {{buildTime}}\nPlatform: {{userAgent}}",
+ "versionLabel": "Version:",
+ "buildIdLabel": "Build ID:",
+ "madePossibleByTagSpaces": "is made possible by the TagSpaces project and other open source software listed in the:",
+ "softwareAcknowledgements": "Software Acknowledgements",
+ "imprint": "Imprint",
+ "privacyPolicy": "Privacy Policy",
+ "changelog": "Changelog",
+ "coreExtensionsTooltip": "These are extensions which are packaged with the current version of the app",
+ "globalShortcutsTooltip": "Enables global shortcut for creating new files, file navigation, play/pause audio files or opening the search. Global shortcuts are working even if the app window is not currently in focus or visible.",
+ "devModeTooltip": "Will enable some experimental features and turn on extra debugging",
"-": "-"
}
diff --git a/src/renderer/locales/en/peri.json b/src/renderer/locales/en/peri.json
index e82f4d26a..453daf22f 100644
--- a/src/renderer/locales/en/peri.json
+++ b/src/renderer/locales/en/peri.json
@@ -151,5 +151,10 @@
"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."
+ "trelloImportStep6": "Initiate the import by selecting the exported file with the help of the next button.",
+ "resetsToDefaultPrompt": "Resets to the default prompt",
+ "ollamaIntroPrefix": "TagSpaces does not have its own AI engine or models, but relies entirely on external software like Ollama. If you don't have Ollama, you can download it for free from",
+ "ollamaIntroSuffix": "and follow the installation instructions to get it set up on your computer.",
+ "aiFunctionalityDisabled": "All AI-functionality is currently disabled. Please add and configure an AI-engine in order to use external AIs in TagSpaces.",
+ "confirmRemoveAiConfig": "Do you want to remove \"{{name}}\" AI config?"
}