Skip to content

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

chore: extracting string for translation from the onboarding

Ilian Sapundshiev4ccbaaabcf1c
diff --git a/src/renderer/components/HowToStart.tsx b/src/renderer/components/HowToStart.tsx
index 770a949af..72e4bf28c 100644
--- a/src/renderer/components/HowToStart.tsx
+++ b/src/renderer/components/HowToStart.tsx
@@ -41,27 +41,17 @@ function HowToStart() {
const theme = useTheme();
const steps = [
{
- label: 'Introduction',
- description: (
- <>
- The following guide will demonstrate some of the key areas and
- features of the application. We highly recommend it for first-time
- users.
- </>
- ),
+ label: t('htsIntroTitle'),
+ description: t('htsIntro'),
},
{
- label: 'Location Manager',
+ label: t('locationManager'),
description: (
<>
- In order to use a given folder in TagSpaces you have to connect it as
- location with the Location Manager. The Location Manager allows you to
- create, edit, remove, import, and export your locations. Any
- pre-existing locations already pointing to folders such as the
- Documents or Downloads can be removed if they are not needed.
+ {t('htsLocationManager')}
<br />
<SlideButton
- title="Find out more"
+ title={t('htsFindOutMore')}
link={Links.documentationLinks.locations}
/>
</>
@@ -72,17 +62,13 @@ function HowToStart() {
},
},
{
- label: 'Creating a Location',
+ label: t('htsCreatingLocationTitle'),
description: (
<>
- By selecting the highlighted button, you can open a dialog to choose
- which folder you'd like to use in TagSpaces and create a location
- linked to it. Depending on the type of location, the folder can be
- located on your computer or in an S3-compatible cloud storage such as
- AWS, Cloudflare, Wasabi, or Minio.
+ {t('htsCreatingLocation')}
<br />
<SlideButton
- title="Video about creating locations"
+ title={t('htsFindOutMore')}
link={Links.links.howToStart + '#locationsLocal'}
/>
</>
@@ -94,16 +80,13 @@ function HowToStart() {
},
},
{
- label: 'Tag Library',
+ label: t('tagLibrary'),
description: (
<>
- The Tag Library is the place where you can manage and organize the
- tags with which you can tag your files and folders. Tag Groups help
- you categorize different tags and applying a tag is as simple as
- dragging and dropping it onto a file or folder.
+ {t('htsTagLibrary')}
<br />
<SlideButton
- title="Video introducing the tag library"
+ title={t('htsFindOutMore')}
link={Links.links.howToStart + '#taglibrary'}
/>
</>
@@ -117,7 +100,7 @@ function HowToStart() {
},
},
{
- label: 'Quick access section',
+ label: t('quickAccess'),
description: (
<>
In this section you can find the following functionalities:
@@ -154,12 +137,10 @@ function HowToStart() {
},
},
{
- label: 'Perspectives Switcher',
+ label: t('perspectiveSwitch'),
description: (
<>
- The perspectives offer a specific view on the files in a given folder.
- With the highlighted switcher you can change the perspective of the
- current folder.
+ {t('htsPerspectiveSwitch')}
<ul>
<li>
<b>Grid</b> - displays files in a grid
@@ -198,12 +179,10 @@ function HowToStart() {
},
},
{
- label: 'Creating files',
+ label: t('htsCreatingFilesTitle'),
description: (
<>
- The highlighted button will open a dialog, where you can create a new
- file or <b>digital note</b>. The new files can be in the following
- file formats:
+ {t('htsCreatingFiles')}
<ul>
<li>
<b>Markdown</b> (recommended) - suitable for notes with simple
@@ -234,17 +213,13 @@ function HowToStart() {
},
},
{
- label: 'App Settings',
+ label: t('settings'),
description: (
<>
- The highlighted button will open the settings of the application.
- There you can configure the application's color theme, language,
- default perspective, tagging method, and more. Additionally, keyboard
- shortcuts and preferences for editing supported file types can be also
- changed there.
+ {t('htsSettings')}
<br />
<SlideButton
- title="Find out more"
+ title={t('htsFindOutMore')}
link={Links.documentationLinks.settings}
/>
</>
@@ -255,13 +230,8 @@ function HowToStart() {
},
},
{
- label: 'Start using TagSpaces',
- description: (
- <>
- You can start using the app by creating a new location or open an
- existing one from the location manager.
- </>
- ),
+ label: t('startUsingTagSpaces'),
+ description: t('htsStartUsingTS'),
action: () => {
selectByTID('createNewDropdownButtonTID')?.classList.add(
'highlighterOn',
diff --git a/src/renderer/components/dialogs/ProTeaserDialog.tsx b/src/renderer/components/dialogs/ProTeaserDialog.tsx
index 28b26e1a4..54ec28ffd 100644
--- a/src/renderer/components/dialogs/ProTeaserDialog.tsx
+++ b/src/renderer/components/dialogs/ProTeaserDialog.tsx
@@ -16,24 +16,23 @@
*
*/
+import AppConfig from '-/AppConfig';
import DraggablePaper from '-/components/DraggablePaper';
import TsButton from '-/components/TsButton';
import TsDialogTitle from '-/components/dialogs/components/TsDialogTitle';
-import Dialog from '@mui/material/Dialog';
-import DialogContent from '@mui/material/DialogContent';
-import Paper from '@mui/material/Paper';
-import Typography from '@mui/material/Typography';
-import React from 'react';
-
-import AppConfig from '-/AppConfig';
import { getProTeaserSlides } from '-/content/ProTeaserSlides';
import { openURLExternally } from '-/services/utils-io';
import NavigateBeforeIcon from '@mui/icons-material/NavigateBefore';
import NavigateNextIcon from '@mui/icons-material/NavigateNext';
import { Box } from '@mui/material';
+import Dialog from '@mui/material/Dialog';
+import DialogContent from '@mui/material/DialogContent';
+import Paper from '@mui/material/Paper';
+import Typography from '@mui/material/Typography';
import { useTheme } from '@mui/material/styles';
import useMediaQuery from '@mui/material/useMediaQuery';
import Links from 'assets/links';
+import React from 'react';
import { useTranslation } from 'react-i18next';
import Slider from 'react-slick';
diff --git a/src/renderer/content/ProTeaserSlides.tsx b/src/renderer/content/ProTeaserSlides.tsx
index ef7539b51..e3c52cbc4 100644
--- a/src/renderer/content/ProTeaserSlides.tsx
+++ b/src/renderer/content/ProTeaserSlides.tsx
@@ -46,40 +46,19 @@ export const slidesNames = [
export function getProTeaserSlides(t) {
const slidesEN = [];
slidesEN[slidesNames[0]] = {
- title: 'Why TagSpaces Pro ?',
+ title: t('ptsWhyTitle'),
description: (
<>
- <p>
- The TagSpaces project is fully supported by its subscribers. We do not
- rely on advertising or data sharing for revenue, so purchasing a Pro
- subscription directly supports the ongoing development of our core
- product, TagSpaces Lite, as well as our browser extensions, which
- remain free to use.
- </p>
- <p>
- In addition, a Pro subscription unlocks a wide range of valuable
- features, including advanced search capabilities, unique perspectives
- for organizing your files and folders, and geo-tagging. Some of these
- features will be highlighted in the following slides.
- </p>
+ <p>{t('ptsWhySection1')}</p>
+ <p>{t('ptsWhySection2')}</p>
</>
),
pictureURL: ProTeaserImage,
pictureHeight: 150,
};
slidesEN[slidesNames[1]] = {
- title: 'Kanban Perspectives in TagSpaces Pro',
- description: (
- <>
- This perspective transforms each folder into a Kanban board, where the
- columns represent the subfolders of the current folder. Files within
- these subfolders are displayed as tiles that can be easily moved between
- columns using drag and drop. The columns themselves can also be
- rearranged in the same way. Additionally, a built-in Trello import
- feature allows you to import an exported Trello board directly into the
- current folder.
- </>
- ),
+ title: t('ptsKanbanTitle'),
+ description: t('ptsKanban'),
ctaURL: Links.documentationLinks.kanbanPerspective,
ctaTitle: t('showMeMore'),
pictureURL: KanbanImage,
@@ -189,7 +168,7 @@ export function getProTeaserSlides(t) {
</ul>
<small>
<b>Note: </b>TagSpaces does not have a build-in AI functionality, it
- relays entirely on the external local LLM models.
+ relays entirely on the external LLM models.
</small>
</>
),
diff --git a/src/renderer/locales/en/core.json b/src/renderer/locales/en/core.json
index de4de53d3..aab5db324 100644
--- a/src/renderer/locales/en/core.json
+++ b/src/renderer/locales/en/core.json
@@ -1014,5 +1014,24 @@
"obFinalTitle": "We hope you’ll love TagSpaces as much as we do!",
"obFinalExplanation": "To learn more about how to use the application, please start the introduction from the welcome screen.",
"obExplanationsCTA": "Learn more about TagSpaces Pro",
+ "htsIntroTitle": "Introduction",
+ "htsIntro": "The following guide will demonstrate some of the key areas and features of the application. We highly recommend it for first-time users.",
+ "htsLocationManager": " In order to use a given folder in TagSpaces you have to connect it as location with the Location Manager. The Location Manager allows you to create, edit, remove, import, and export your locations. Any pre-existing locations already pointing to folders such as the Documents or Downloads can be removed if they are not needed.",
+ "htsFindOutMore": "Find out more",
+ "htsCreatingLocationTitle": "Creating a Location",
+ "htsCreatingLocation": " By selecting the highlighted button, you can open a dialog to choose which folder you'd like to use in TagSpaces and create a location linked to it. Depending on the type of location, the folder can be located on your computer or in an S3-compatible cloud storage such as AWS, Cloudflare, Wasabi, or Minio.",
+ "htsTagLibrary": "The Tag Library is the place where you can manage and organize the tags with which you can tag your files and folders. Tag Groups help you categorize different tags and applying a tag is as simple as dragging and dropping it onto a file or folder.",
+ "htsCreatingFilesTitle": "Creating files",
+ "htsCreatingFiles": "The highlighted button will open a menu, where you can select in which format the new files will be created:",
+ "htsPerspectiveSwitch": "The perspectives offer a specific view on the files in a given folder. With the highlighted switcher you can change the perspective of the current folder.",
+ "hts": "",
+ "htsSettings": "The highlighted button will open the settings of the application. There you can configure the application's color theme, language, default perspective, tagging method, and more. Additionally, keyboard shortcuts and preferences for editing supported file types can be also changed there.",
+ "htsStartUsingTS": "You can start using the app by creating a new location or open an existing one from the location manager.",
+ "ptsWhyTitle": "Why TagSpaces Pro ?",
+ "ptsWhySection1": "TagSpaces is powered by its community, not by ads or data mining. When you purchase the Pro version, you’re investing in a privacy-first ecosystem that keeps your data under your control. Your support ensures ongoing development of TagSpaces Lite and our free browser extensions—tools that remain accessible to everyone.",
+ "ptsWhySection2": "Upgrade to Pro and supercharge TagSpaces with advanced search, unique perspectives for effortless organization, and powerful geo-tagging. Discover how these features transform your workflow in the slides ahead.",
+ "ptsKanbanTitle": "Kanban Perspectives in TagSpaces Pro",
+ "ptsKanban": "This perspective turns any folder into a fully functional Kanban board. Subfolders become columns, and the files inside them are displayed as cards that you can easily move between columns with drag and drop. You can even rearrange entire columns the same way. Plus, with the built-in Trello import, you can bring exported Trello boards directly into your workspace.",
+ "pts": "",
"-": "-"
}