Compare commits

..

16 Commits
main ... macros

Author SHA1 Message Date
Travis Abendshien
b141736213 fix: sanitize json tag input as strings 2025-09-28 14:04:43 -07:00
Travis Abendshien
d34361be46 chore: remove git conflict artifacts 2025-09-28 14:04:43 -07:00
Travis Abendshien
7cf769c5ed fix(ui): don't reload preview after applying macros 2025-09-28 14:04:43 -07:00
Travis Abendshien
1110f64ff5 docs: reorganize macro docs, add "tasks" concept 2025-09-28 14:04:40 -07:00
Travis Abendshien
119b964b16 macros: change nested template key syntax, add docs 2025-09-28 13:58:44 -07:00
Travis Abendshien
ff6d13ca30 macros: add key field to replace table name use 2025-09-28 13:58:41 -07:00
Travis Abendshien
164c58d1c9 chore: remove outdated changes 2025-09-28 13:54:17 -07:00
Travis Abendshien
4a60637202 feat: dynamically load macros into menu 2025-09-28 13:54:17 -07:00
Travis Abendshien
4675bed373 fix: remove unused template logic 2025-09-28 13:54:17 -07:00
Travis Abendshien
97136ee442 fix: deepcopy lists from json 2025-09-28 13:54:17 -07:00
Travis Abendshien
25f421bca4 refactor: move macro processing to macro_parser.py 2025-09-28 13:54:17 -07:00
Travis Abendshien
3221aafdfc refactor: rename "reverse_map" to "inverse_map" 2025-09-28 13:54:17 -07:00
Travis Abendshien
5384f308ac fix: replace underscores from macro source tags with spaces
This allows macro source tags that contain underscores and category parentheses to be processed as intended (e.g. booru tags)
2025-09-28 13:54:17 -07:00
Travis Abendshien
9b625b07a3 feat: parse tag display names from macro files 2025-09-28 13:54:17 -07:00
Travis Abendshien
4de7893c19 fix: catch TomlDecodeError 2025-09-28 13:54:17 -07:00
Travis Abendshien
20d641d6f3 feat: implement base macro system 2025-09-28 13:54:09 -07:00
82 changed files with 1834 additions and 2475 deletions

View File

@@ -4,8 +4,7 @@
^^^ Summarize the changes done and why they were done above.
By submitting this pull request, you certify that you have read the
[Contributing](https://docs.tagstud.io/contributing) page on our documentation site,
or in the project's [CONTRIBUTING.md](https://github.com/TagStudioDev/TagStudio/blob/main/docs/contributing.md) file.
[CONTRIBUTING.md](https://github.com/TagStudioDev/TagStudio/blob/main/CONTRIBUTING.md).
IMPORTANT FOR FEATURES: Please verify that a feature request or some other form
of communication with maintainers was already conducted in terms of approving.

View File

@@ -4,24 +4,21 @@ name: pytest
on: [push, pull_request]
jobs:
pytest-linux:
name: Run pytest (Linux)
pytest:
name: Run pytest
runs-on: ubuntu-24.04
steps:
- &checkout
name: Checkout repo
- name: Checkout repo
uses: actions/checkout@v4
- &setup-python
name: Setup Python
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pip
- &install-dependencies
name: Install Python dependencies
- name: Install Python dependencies
run: |
python -m pip install --upgrade uv
uv pip install --system .[pytest]
@@ -43,7 +40,6 @@ jobs:
libxcb-xinerama0 \
libxkbcommon-x11-0 \
libyaml-dev \
ripgrep \
x11-utils
- name: Execute pytest
@@ -56,27 +52,10 @@ jobs:
name: coverage
path: coverage.xml
pytest-windows:
name: Run pytest (Windows)
runs-on: windows-2025
steps:
- *checkout
- *setup-python
- *install-dependencies
- name: Install system dependencies
run: |
choco install ripgrep
- name: Execute pytest
run: |
pytest
coverage:
name: Check coverage
runs-on: ubuntu-latest
needs: pytest-linux
needs: pytest
steps:
- name: Fetch coverage

286
README.md
View File

@@ -1,92 +1,120 @@
# TagStudio: A User-Focused Photo & File Management System
# TagStudio: A User-Focused Document Management System
[![Downloads](https://img.shields.io/github/downloads/TagStudioDev/TagStudio/total.svg?maxAge=2592001)](https://github.com/TagStudioDev/TagStudio/releases)
[![Translations](https://hosted.weblate.org/widget/tagstudio/strings/svg-badge.svg)](https://hosted.weblate.org/projects/tagstudio/strings/)
[![Translation](https://hosted.weblate.org/widget/tagstudio/strings/svg-badge.svg)](https://hosted.weblate.org/projects/tagstudio/strings/)
[![PyTest](https://github.com/TagStudioDev/TagStudio/actions/workflows/pytest.yaml/badge.svg)](https://github.com/TagStudioDev/TagStudio/actions/workflows/pytest.yaml)
[![MyPy](https://github.com/TagStudioDev/TagStudio/actions/workflows/mypy.yaml/badge.svg)](https://github.com/TagStudioDev/TagStudio/actions/workflows/mypy.yaml)
[![Ruff](https://github.com/TagStudioDev/TagStudio/actions/workflows/ruff.yaml/badge.svg)](https://github.com/TagStudioDev/TagStudio/actions/workflows/ruff.yaml)
[![Downloads](https://img.shields.io/github/downloads/TagStudioDev/TagStudio/total.svg?maxAge=2592001)](https://github.com/TagStudioDev/TagStudio/releases)
<p align="center">
<img width="60%" src="docs/assets/ts-9-3_logo_text.png">
<img width="60%" src="docs/assets/github_header.png">
</p>
TagStudio is a photo & file organization application with an underlying tag-based system that focuses on giving freedom and flexibility to the user. No proprietary programs or formats, no sea of sidecar files, and no complete upheaval of your filesystem structure. **Read the documentation and more at [docs.tagstud.io](https://docs.tagstud.io)!**
> [!NOTE]
> Thank you for being patient as we've migrated our database backend from JSON to SQL! The previous warnings about the main branch being experimental and unsupported have now been removed, and any pre-existing library save files created with official TagStudio releases are able to be opened and migrated with the new v9.5+ releases!
> [!IMPORTANT]
> This project is still in an early state. There are many missing optimizations and QoL features, as well as the presence of general quirks and occasional jankiness. Making frequent backups of your library save data is **always** important, regardless of what state the program is in.
>
> With this in mind, TagStudio will _NOT:_
>
> - Touch, move, or mess with your files in any way _(unless explicitly using the "Delete File(s)" feature, which is locked behind a confirmation dialog)_.
> - Ask you to recreate your tags or libraries after new releases. It's our highest priority to ensure that your data safely and smoothly transfers over to newer versions.
> - Cause you to suddenly be able to recall your 10 trillion downloaded images that you probably haven't even seen firsthand before. You're in control here, and even tools out there that use machine learning still needed to be verified by human eyes before being deemed accurate.
<p align="center">
<img width="80%" src="docs/assets/screenshot.png" alt="TagStudio Screenshot">
</p>
<p align="center">
<i>TagStudio Alpha v9.5.5 running on macOS Sequoia.</i>
<i>TagStudio Alpha v9.5.0 running on macOS Sequoia.</i>
</p>
## Contents
- [Feature Highlights](#feature-highlights)
- [Basic Usage](#basic-usage)
- [Goals](#goals)
- [Priorities](#priorities)
- [Current Features](#current-features)
- [Contributing](#contributing)
- [Installation](#installation)
- [Goals & Priorities](#goals--priorities)
- [Usage](#usage)
- [FAQ](#faq)
## Goals
- To achieve a portable, private, extensible, open-format, and feature-rich system of organizing and rediscovering files.
- To provide powerful methods for organization, notably the concept of tag inheritance, or "taggable tags" _(and in the near future, the combination of composition-based tags)._
- To create an implementation of such a system that is resilient against a users actions outside the program (modifying, moving, or renaming files) while also not burdening the user with mandatory sidecar files or requiring them to change their existing file structures and workflows.
- To support a wide range of users spanning across different platforms, multi-user setups, and those with large (several terabyte) libraries.
- To make the dang thing look nice, too. Its 2025, not 1995.
## Priorities
1. **The concept.** Even if TagStudio as an application fails, Id hope that the idea lives on in a superior project. The [goals](#goals) outlined above dont reference TagStudio once - _TagStudio_ is what references the _goals._
2. **The system.** Frontends and implementations can vary, as they should. The core underlying metadata management system is what should be interoperable between different frontends, programs, and operating systems. A standard implementation for this should settle as development continues. This opens up the doors for improved and varied clients, integration with third-party applications, and more.
3. **The application.** If nothing else, TagStudio the application serves as the first (and so far only) implementation for this system of metadata management. This has the responsibility of doing the idea justice and showing just whats possible when it comes to user file management.
4. (The name.) I think its fine for an app or client, but it doesnt really make sense for a system or standard. I suppose this will evolve with time...
## Contributing
If you're interested in contributing to TagStudio, please take a look at the [contribution guidelines](/CONTRIBUTING.md) for how to get started!
Translation hosting generously provided by [Weblate](https://weblate.org/en/). Check out our [project page](https://hosted.weblate.org/projects/tagstudio/) to help translate TagStudio!
## Feature Highlights
## Current Features
### Libraries
A TagStudio library contains all of your tags, fields for a set of files based on one of your system directories. Similar to how Obsidian [vaults](https://help.obsidian.md/vault) function, TagStudio libraries act as a layer on top of your existing folders and file structure, and don't require your to move or duplicate files.
- Create libraries/vaults centered around a system directory. Libraries contain a series of entries: the representations of your files combined with metadata fields. Each entry represents a file in your librarys directory, and is linked to its location.
- Address moved, deleted, or otherwise "unlinked" files by using the "Fix Unlinked Entries" option in the Tools menu.
TagStudio places a `.TagStudio` folder in the folder you open as a library. Files included in your library are referred to as "entries", and are kept track of inside of a SQLite database inside the `.TagStudio` folder along with tags and other library data.
### Tagging + Custom Metadata
### File Entries
- Add custom powerful tags to your library entries
- Add metadata to your library entries, including:
- Name, Author, Artist (Single-Line Text Fields)
- Description, Notes (Multiline Text Fields)
- Create rich tags composed of a name, color, a list of aliases, and a list of "parent tags" - these being tags in which these tags inherit values from.
- Copy and paste tags and fields across file entries
- Automatically organize tags into groups based on parent tags marked as "categories"
- Generate tags from your existing folder structure with the "Folders to Tags" macro (NOTE: these tags do NOT sync with folders after they are created)
All file types are supported in TagStudio libraries, just not all have dedicated preview support. For a full list of filetypes with supported previews, see the "[Supported Previews](https://docs.tagstud.io/preview-support)" page on the documentation site. There's also playback support for videos, audio files, and supported animated image formats.
For a generalized list of what's currently supported:
- **Images**
- Raster Images (JPEG, PNG, etc.)
- Vector (SVG)
- Animated (GIF, WEBP, APNG)
- RAW Formats
- **Videos**
- **Plaintext Files**
- **Documents** _(If supported)_
- **eBooks** _(If supported)_
- **Photoshop PSDs**, **Blender Projects**, **Krita Projects**, and more!
### [Tags](https://docs.tagstud.io/tags) and [Fields](https://docs.tagstud.io/fields)
Tags represent an object or attribute - this could be a person, place, object, concept, and more. Unlike most tagging systems, TagStudio tags are not solely represented by a line of text or a hashtag. Tags in TagStudio consist of several properties and relationships that give extra customization, searching power, and ease of tagging that cannot be achieved by string-based tags alone. TagStudio tags are designed to be as simple or as complex as you'd like, giving options to users of all skill levels and use cases.
Tags currently consist of the following attributes:
- **Name**: The full name for your tag. **_This does NOT have to be unique!_**
- **Shorthand Name**: The shortest alternate name for your tag, used for abbreviations.
- **Aliases**: Alternate names your tag goes by.
- **Color**: The display color of your tag.
- **Parent Tags**: Other tags in which this tag inherits from. In practice, this means that this tag can be substituted in searches for any listed parent tags.
- Parent tags checked with the "disambiguation" checkbox next to them will be used to help disambiguate tag names that may not be unique.
- For example: If you had a tag for "Freddy Fazbear", you might add "Five Nights at Freddy's" as one of the parent tags. If the disambiguation box is checked next to "Five Nights at Freddy's" parent tag, then the tag "Freddy Fazbear" will display as "Freddy Fazbear (Five Nights at Freddy's)". Furthermore, if the "Five Nights at Freddy's" tag has a shorthand like "FNAF", then the "Freddy Fazbear" tag will display as "Freddy Fazbear (FNAF)".
- **Is Category**: A property that when checked, treats this tag as a category in the preview panel.
Fields, like tags, are additional pieces of custom metadata that you can add to your file entries. Fields currently have several hardcoded names (e.g. "Title", "Author", "Series") but custom field names are planned for an upcoming update.
Field types currently include:
- **Text Lines**: Single lines of text.
- **Text Boxes**: Multi-line pieces of text.
- **Datetimes**: Dates and times.
### [Search](https://docs.tagstud.io/search)
### Search
- Search for file entries based on tags, file path (`path:`), file types (`filetype:`), and even media types! (`mediatype:`). Path searches currently use [glob](<https://en.wikipedia.org/wiki/Glob_(programming)>) syntax, so you may need to wrap your filename or filepath in asterisks while searching. This will not be strictly necessary in future versions of the program.
- Use and combine boolean operators (`AND`, `OR`, `NOT`) along with parentheses groups, quotation escaping, and underscore substitution to create detailed search queries
- Use special search conditions (`special:untagged` and `special:empty`) to find file entries without tags or fields, respectively
## Basic Usage
### File Entries
> [!TIP]
> For more usage instructions, see the [documentation site](https://docs.tagstud.io/libraries)!
- Nearly all file types are supported in TagStudio libraries - just not all have dedicated thumbnail support.
- Preview most image file types, animated GIFs, videos, plain text documents, audio files, Blender projects, and more!
- Open files or file locations by right-clicking on thumbnails and previews and selecting the respective context menu options. You can also click on the preview panel image to open the file, and click the file path label to open its location.
- Delete files from both your library and drive by right-clicking the thumbnail(s) and selecting the "Move to Trash"/"Move to Recycle Bin" option.
> [!NOTE]
> For more information on the project itself, please see the [FAQ](#faq) section as well as the [documentation](https://docs.tagstud.io/)!
## Installation
To download executable builds of TagStudio, visit the [Releases](https://github.com/TagStudioDev/TagStudio/releases) page of the GitHub repository and download the latest release for your system under the "Assets" section at the bottom of the release.
TagStudio has builds for **Windows**, **macOS** _(Apple Silicon & Intel)_, and **Linux**. We also offer portable releases for Windows and Linux which are self-contained and easier to move around.
For detailed instructions, installation help, and instructions for developing for TagStudio, please see the "[Installation](https://docs.tagstud.io/install/)" page on our documentation website.
<!-- prettier-ignore -->
> [!CAUTION]
> **We do not currently publish TagStudio to any package managers. Any TagStudio distributions outside of the GitHub [Releases](https://github.com/TagStudioDev/TagStudio/releases) page are _unofficial_ and not maintained by us.**
>
> Installation support will not be given to users installing from unofficial sources. Use these versions at your own risk!
### Third-Party Dependencies
For video thumbnails and playback, you'll also need [FFmpeg](https://ffmpeg.org/download.html) installed on your system. If you encounter any issues with this, please reference our [FFmpeg Help](/docs/help/ffmpeg.md) guide.
## Usage
### Creating/Opening a Library
@@ -94,36 +122,50 @@ With TagStudio opened, start by creating a new library or opening an existing on
### Refreshing the Library
Libraries under 10,000 files automatically scan for new or modified files when opened. In order to refresh the library manually, select "Refresh Directories" under the File menu or by pressing <kbd>Ctrl</kbd></kbd>+<kbd>R</kbd> (macOS: <kbd>⌘ Command</kbd>+<kbd>R</kbd>).
Libraries under 10,000 files automatically scan for new or modified files when opened. In order to refresh the library manually, select "Refresh Directories" under the File menu.
### Adding Tags to File Entries
Access the "Add Tag" search box by either clicking on the "Add Tag" button at the bottom of the right sidebar, accessing the "Add Tags to Selected" option from the File menu, or by pressing <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>T</kbd>.
From here you can search for existing tags or create a new one if the one you're looking for doesn't exist. Click the "+" button next to any tags you want to to the currently selected file entries. To quickly add the top result, press the <kbd>Enter</kbd>/<kbd>Return</kbd> key to add the the topmost tag and reset the tag search. Press <kbd>Enter</kbd>/<kbd>Return</kbd> once more to close the dialog box. By using this method, you can quickly add various tags in quick succession just by using the keyboard!
To remove a tag from a file entry, hover over the tag in the preview panel and click on the "-" icon that appears.
### Adding Metadata to File Entries
To add a metadata field to a file entry, start by clicking the "Add Field" button at the bottom of the preview panel. From the dropdown menu, select the type of metadata field youd like to add to the entry
### Editing Metadata Fields
#### Text Line / Text Box
Hover over the field and click the pencil icon. From there, add or edit text in the dialog box popup.
> [!WARNING]
> Keyboard control and navigation is currently _very_ buggy, but will be improved in future versions.
### Creating Tags
Create a new tag by accessing the "New Tag" option from the Edit menu or by pressing <kbd>Ctrl</kbd>+<kbd>T</kbd> (macOS: <kbd>⌘ Command</kbd>+<kbd>T</kbd>). In the tag creation panel, enter a tag name, optional shorthand name, optional tag aliases, optional parent tags, and an optional color.
Create a new tag by accessing the "New Tag" option from the Edit menu or by pressing <kbd>Ctrl</kbd>+<kbd>T</kbd>. In the tag creation panel, enter a tag name, optional shorthand name, optional tag aliases, optional parent tags, and an optional color.
- The tag **name** is the base name of the tag. **_This does NOT have to be unique!_**
- The tag **shorthand** is a special type of alias that displays in situations where screen space is more valuable, notably with name disambiguation.
- **Aliases** are alternate names for a tag. These let you search for terms other than the exact tag name in order to find the tag again.
- **Parent Tags** are tags in which this this tag can substitute for in searches. In other words, tags under this section are parents of this tag.
- Parent tags with the disambiguation check next to them will be used to help disambiguate tag names that may not be unique.
- For example: If you had a tag for "Freddy Fazbear", you might add "Five Nights at Freddy's" as one of the parent tags. If the disambiguation box is checked next to "Five Nights at Freddy's" parent tag, then the tag "Freddy Fazbear" will display as "Freddy Fazbear (Five Nights at Freddy's)". Furthermore, if the "Five Nights at Freddy's" tag has a shorthand like "FNAF", then the "Freddy Fazbear" tag will display as "Freddy Fazbear (FNAF)".
- The **color** option lets you select an optional color palette to use for your tag.
- The **"Is Category"** property lets you treat this tag as a category under which itself and any child tags inheriting from it will be sorted by inside the preview panel.
#### Tag Manager
You can manage your library of tags from opening the "Tag Manager" panel from Edit -> "Tag Manager" or by pressing <kbd>Ctrl</kbd>+<kbd>M</kbd> (macOS: <kbd>⌘ Command</kbd>+<kbd>M</kbd>). From here you can create, search for, edit, and permanently delete any tags you've created in your library.
You can manage your library of tags from opening the "Tag Manager" panel from Edit -> "Tag Manager". From here you can create, search for, edit, and permanently delete any tags you've created in your library.
### Editing Tags
To edit a tag, click on it inside the preview panel or right-click the tag and select "Edit Tag" from the context menu.
### Adding Tags to File Entries
Access the "Add Tag" search box by either clicking on the "Add Tag" button at the bottom of the right sidebar, accessing the "Add Tags to Selected" option from the File menu, or by pressing <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>T</kbd> (macOS: <kbd>⌘ Command</kbd>+<kbd>Shift</kbd>+<kbd>T</kbd>).
From here you can search for existing tags or create a new one if the one you're looking for doesn't exist. Click the "+" button next to any tags you want to the currently selected file entries. To quickly add the top result, press the <kbd>Enter</kbd>/<kbd>Return</kbd> key to add the top-most tag and reset the tag search. Press <kbd>Enter</kbd>/<kbd>Return</kbd> once more to close the dialog box. By using this method, you can quickly add various tags in quick succession just by using the keyboard!
To remove a tag from a file entry, hover over the tag in the preview panel and click on the "-" icon that appears.
### Adding Fields to File Entries
To add a metadata field to a file entry, start by clicking the "Add Field" button at the bottom of the preview panel. From the dropdown menu, select the type of metadata field youd like to add to the entry
### Editing Fields
Hover over the field and click the pencil icon. From there, add or edit text in the dialog box popup.
### Relinking Moved Files
Inevitably some of the files inside your library will be renamed, moved, or deleted. If a file has been renamed or moved, TagStudio will display the thumbnail as a red broken chain link. To relink moved files or delete these entries, select the "Manage Unlinked Entries" option under the Tools menu. Click the "Refresh" button to scan your library for unlinked entries. Once complete, you can attempt to "Search & Relink" any unlinked file entries to their respective files, or "Delete Unlinked Entries" in the event the original files have been deleted and you no longer wish to keep their entries inside your library.
@@ -134,101 +176,57 @@ Inevitably some of the files inside your library will be renamed, moved, or dele
> [!WARNING]
> If multiple matches for a moved file are found (matches are currently defined as files with a matching filename as the original), TagStudio will currently ignore the match groups. Adding a GUI for manual selection, as well as smarter automated relinking, are high priorities for future versions.
See instructions in the "[Creating Development Environment](/CONTRIBUTING.md/#creating-a-development-environment)" section from the [contributing](https://docs.tagstud.io/contributing) page.
### Saving the Library
## Installation
As of version 9.5, libraries are saved automatically as you go. To save a backup of your library, select File -> Save Library Backup from the menu bar.
To download executable builds of TagStudio, visit the [Releases](https://github.com/TagStudioDev/TagStudio/releases) page of the GitHub repository and download the latest release for your system under the "Assets" section at the bottom of the release.
### Half-Implemented Features
TagStudio has builds for **Windows**, **macOS** _(Apple Silicon & Intel)_, and **Linux**. We also offer portable releases for Windows and Linux which are self-contained and easier to move around.
These features were present in pre-public versions of TagStudio (9.0 and below) and have yet to be fully implemented.
For detailed instructions, installation help, and instructions for developing for TagStudio, please see the "[Installation](https://docs.tagstud.io/install)" page on our documentation website.
#### Fix Duplicate Files
> [!IMPORTANT]
> If you're interested in contributing to TagStudio, please take a look at the [contribution guidelines](https://docs.tagstud.io/contributing) for how to get started!
Load in a .dupeguru file generated by [dupeGuru](https://github.com/arsenetar/dupeguru/) and mirror metadata across entries marked as duplicates. After mirroring, return to dupeGuru to manage deletion of the duplicate files. After deletion, use the "Fix Unlinked Entries" feature in TagStudio to delete the duplicate set of entries for the now-deleted files
### Third-Party Dependencies
For video thumbnails and playback, you'll also need [FFmpeg](https://ffmpeg.org/download.html) installed on your system. If you encounter any issues with this, please reference our [FFmpeg Help](/docs/help/ffmpeg.md) guide. For faster library scanning and refreshing, it's also recommended you install [ripgrep](https://github.com/BurntSushi/ripgrep).
<!-- prettier-ignore -->
> [!CAUTION]
> **We do not currently publish TagStudio to any package managers. Any TagStudio distributions outside of the GitHub [Releases](https://github.com/TagStudioDev/TagStudio/releases) page are _unofficial_ and not maintained by us.**
>
> Installation support will not be given to users installing from unofficial sources. Use these versions at your own risk!
> While this feature is functional, its a pretty roundabout process and can be streamlined in the future.
## Goals & Priorities
#### Macros
TagStudio aims to create an **open** and **robust** format for file tagging that isn't burdened by the limitations of traditional tagging and file metadata systems. **TagStudio** is the first proof-of-concept implementation of this system.
Apply tags and other metadata automatically depending on certain criteria. Set specific macros to run when the files are added to the library. Part of this includes applying tags automatically based on parent folders.
See the [**Roadmap**](docs/roadmap.md) on the documentation site for a complete list of planned features and estimated timeline.
> [!CAUTION]
> Macro options are hardcoded, and theres currently no way for the user to interface with this (still incomplete) system at all.
### Overall Goals
#### Gallery-dl Sidecar Importing
- To achieve a portable, private, extensible, open-format, and feature-rich system of organizing and rediscovering files.
- To provide powerful methods for organization, notably the concept of tag inheritance, or "taggable tags" _(and in the near future, the combination of composition-based tags)._
- To create an implementation of such a system that is resilient against a users actions outside the program (modifying, moving, or renaming files) while also not burdening the user with mandatory sidecar files or requiring them to change their existing file structures and workflows.
- To support a wide range of users spanning across different platforms, multi-user setups, and those with large (several terabyte) libraries.
- To make the dang thing look nice, too. Its 2025, not 1995.
Import JSON sidecar data generated by [gallery-dl](https://github.com/mikf/gallery-dl).
### Project Priorities
> [!CAUTION]
> This feature is not supported or documented in any official capacity whatsoever. It will likely be rolled-in to a larger and more generalized sidecar importing feature in the future.
1. **The concept.** Even if TagStudio as an application fails, Id hope that the idea lives on in a superior project. The goals outlined above dont reference TagStudio once - _TagStudio_ is what references the _goals._
2. **The system.** Frontends and implementations can vary, as they should. The core underlying metadata management system is what should be interoperable between different frontends, programs, and operating systems. A standard implementation for this should settle as development continues. This opens up the doors for improved and varied clients, integration with third-party applications, and more.
3. **The application.** If nothing else, TagStudio the application serves as the first (and so far only) implementation for this system of metadata management. This has the responsibility of doing the idea justice and showing just whats possible when it comes to user file management.
## Launching/Building From Source
See instructions in the "[Creating Development Environment](/CONTRIBUTING.md/#creating-a-development-environment)" section from the [contribution documentation](/CONTRIBUTING.md).
## FAQ
### Will TagStudio move, modify, or mess with my files?
### What State Is the Project Currently In?
**No**, outside of _explicit_ functionality such as "Move File(s) to Trash".
As of writing (Alpha v9.5.0) the project is very usable, however there's some plenty of quirks and missing QoL features. Several additional features and changes are still planned (see: [Feature Roadmap](https://docs.tagstud.io/updates/roadmap/)) that add even more power and flexibility to the tagging and field systems while making it easier to tag in bulk and perform automated operations. Bugfixes and polish are constantly trickling in along with the larger feature releases.
### Will TagStudio require me to recreate my tags or library in future updates?
### What Features Are You Planning on Adding?
**No.** It's our highest priority to ensure that your data safely and smoothly transfers over to newer versions.
See the [Feature Roadmap](https://docs.tagstud.io/updates/roadmap/) page for the core features being planned and implemented for TagStudio. For a more up to date look on what's currently being added for upcoming releases, see our GitHub [milestones](https://github.com/TagStudioDev/TagStudio/milestones) for versioned releases.
### What state is the project currently in?
As of writing (Alpha v9.5.5) the project is very usable, however there's still some quirks and missing QoL features. Several additional features and changes are still planned (see: [roadmap](https://docs.tagstud.io/roadmap)) that add even more power and flexibility to the tagging and field systems while making it easier to tag in bulk and perform automated operations. Bugfixes and polishes are constantly trickling in along with the larger feature releases.
### What features are you planning on adding?
See the [roadmap](https://docs.tagstud.io/roadmap) page for the core features being planned and implemented for TagStudio. For a more up to date look on what's currently being added for upcoming releases, see our GitHub [milestones](https://github.com/TagStudioDev/TagStudio/milestones) for versioned releases.
The most important remaining features before I consider the program to be "feature complete" are:
- Custom names for Fields
- List views for files
- Multiple root directory support for libraries
- Improved file entry relinking
- File entry groups
- Sorting by file date modified and created
- Macros
- Improved search bar with visualized tags and improved autocomplete
- Side panel for easier tagging (pinned tags, recent tags, tag search, tag palette)
- Improved tag management interface
- Improved and finalized Tag Categories
- Fixed and improved mixed entry data displays (see: [#337](https://github.com/TagStudioDev/TagStudio/issues/337))
- Sharable tag data
- Separate core library + API
### What features will NOT be added?
### Features That Will NOT Be Added
- Native Cloud Integration
- There are plenty of services already (native or third-party) that allow you to mount your cloud drives as virtual drives on your system. Hosting a TagStudio library on one of these mounts should function similarly to what native integration would look like.
- Supporting native cloud integrations such as these would be an unnecessary "reinventing the wheel" burden for us that is outside the scope of this project.
- Native ChatGPT/Claude/Gemini/_Non-Local_ LLM Integration
- This could mean different things depending on your intentions. Whether it's trying to use an LLM to replace the native search, or to trying to use a model for image recognition, I'm not interested in hooking people's TagStudio libraries into non-local LLMs such as ChatGPT and/or turn the program into a "chatbot" interface (see: [Overall Goals/Privacy](#overall-goals)).
- With that being said, the future TagStudio API should be well-suited to connect to any sort of service you'd like, including machine learning models if so you choose. I just won't _personally_ add any native integrations with online services.
- Native ChatGPT/Non-Local LLM Integration
- This could mean different things depending on your intentions. Whether it's trying to use an LLM to replace the native search, or to trying to use a model for image recognition, I'm not interested in hooking people's TagStudio libraries into non-local LLMs such as ChatGPT and/or turn the program into a "chatbot" interface (see: [Goals/Privacy](#goals)). I wouldn't, however, mind using **locally** hosted models to provide the _optional_ ability for additional searching and tagging methods (especially when it comes to facial recognition) - but this would likely take the form of plugins external to the core program anyway.
### Is a Rust port coming?
### Why Is this Already Version 9?
Not from us, or at least _not quite_. There are plans to break off the core TagStudio library into its own MIT-licensed module that can be used in other applications and plugins, and ideally this would be written in Rust. While I understand there's a lot of vocal support and volunteers willing to help with this, it's something that's better off coming at my/our own pace in order to ensure it's done correctly to align with the project's intentions and to remain maintainable in the future.
### Windows Defender thinks TagStudio is a virus or a trojan, why?
Unfortunately, executable Python applications "compiled" with something like PyInstaller are notorious for raising false positives in anti-virus software, most commonly Windows Defender (see: [#276](https://github.com/TagStudioDev/TagStudio/issues/276) and related issues). There's really not much we can do about this on our end, as the malware matches frequently change and sample submissions to Microsoft are slow and often ineffective. If you're effected by this, you may need to allow TagStudio to bypass your anti-virus software.
### Why is TagStudio already on version 9.x?
Over the first few years of private development the project went through several major iterations and rewrites. These major version bumps came quickly, and by the time TagStudio was opened-sourced the version number had already reached v9.0. Instead of resetting to "v0.0" or "v1.0" for this public release I decided to keep my v9.x numbering scheme and reserve v10.0 for when all the core features on the [roadmap](https://docs.tagstud.io/roadmap/) are implemented. Ive also labeled this version as an "Alpha" and will drop this once either all of the core features are implemented or the project feels stable and feature-rich enough to be considered "Beta" and beyond.
Over the first few years of private development the project went through several major iterations and rewrites. These major version bumps came quickly, and by the time TagStudio was opened-sourced the version number had already reached v9.0. Instead of resetting to "v0.0" or "v1.0" for this public release I decided to keep my v9.x numbering scheme and reserve v10.0 for when all the core features on the [Feature Roadmap](https://docs.tagstud.io/updates/roadmap/) are implemented. Ive also labeled this version as an "Alpha" and will drop this once either all of the core features are implemented or the project feels stable and feature-rich enough to be considered "Beta" and beyond.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

After

Width:  |  Height:  |  Size: 212 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 105 KiB

View File

@@ -14,10 +14,6 @@ Thank you so much for showing interest in contributing to TagStudio! Here are a
- **Please don't** create pull requests that consist of large refactors, _especially_ without discussing them with us first. These end up doing more harm than good for the project by continuously delaying progress and disrupting everyone else's work.
- If you wish to discuss TagStudio further, feel free to join the [Discord Server](https://discord.com/invite/hRNnVKhF2G)!
<!-- prettier-ignore -->
!!! note
If the fix is small and self-explanatory (i.e. a typo), then it doesn't require an issue to be opened first. Issue tracking is supposed to make our lives easier, not harder. Please use your best judgement to minimize the amount of work for everyone involved.
### Contribution Checklist
- I've read the [Feature Roadmap](roadmap.md) page
@@ -29,11 +25,8 @@ Thank you so much for showing interest in contributing to TagStudio! Here are a
- **_I mean it, I've found or created an issue for my feature/fix!_**
<!-- prettier-ignore -->
!!! failure "Unacceptable Code"
The following types of code will NOT be accepted to the project:
- Code that is not yours or does not have a compatible license with TagStudio's [own one](../LICENSE)
- Code that you do not understand and/or cannot explain
!!! note
If the fix is small and self-explanatory (i.e. a typo), then it doesn't require an issue to be opened first. Issue tracking is supposed to make our lives easier, not harder. Please use your best judgement to minimize the amount of work for everyone involved.
## Creating a Development Environment

View File

@@ -17,7 +17,7 @@ hide:
<figure markdown="span">
![TagStudio screenshot](./assets/screenshot.png){ width=80% }
<figcaption>TagStudio Alpha v9.5.5 running on macOS Sequoia.</figcaption>
<figcaption>TagStudio Alpha v9.5.0 running on macOS Sequoia.</figcaption>
</figure>
<div class="grid" markdown>
@@ -92,7 +92,7 @@ hide:
***
Opposed to filling your drives with [sidecar files](https://en.wikipedia.org/wiki/Sidecar_file), TagStudio uses a project-like [library](libraries.md) system that stores your tags and metadata inside a single save file per-library.
Apposed to filling your drives with [sidecar files](https://en.wikipedia.org/wiki/Sidecar_file), TagStudio uses a project-like [library](libraries.md) system that stores your tags and metadata inside a single save file per-library.
[:material-arrow-right: Learn About the Format](libraries.md)

View File

@@ -123,12 +123,3 @@ Migration from the legacy JSON format is provided via a walkthrough when opening
| [v9.5.4](https://github.com/TagStudioDev/TagStudio/releases/tag/v9.5.4) | SQLite | `<Library Folder>`/.TagStudio/ts_library.sqlite |
- Applies repairs to the `tag_parents` table created in [version 100](#version-100), removing rows that reference tags that have been deleted.
#### Version 103
| Used From | Format | Location |
| ----------------------------------------------------------------------- | ------ | ----------------------------------------------- |
| [#1139](https://github.com/TagStudioDev/TagStudio/pull/1139) | SQLite | `<Library Folder>`/.TagStudio/ts_library.sqlite |
- Adds the `is_hidden` column to the `tags` table (default `0`). Used for excluding entries tagged with hidden tags from library searches.
- Sets the `is_hidden` field on the built-in Archived tag to `1`, to match the Archived tag now being hidden by default.

View File

@@ -2,49 +2,520 @@
icon: material/script-text
---
# :material-script-text: Tools & Macros
# :material-script-text: Macros
Tools and macros are features that serve to create a more fluid [library](libraries.md)-managing process, or provide some extra functionality. Please note that some are still in active development and will be fleshed out in future updates.
TagStudio features a configurable macro system which allows you to set up automatic or manually triggered actions to perform a wide array of operations on your [library](libraries.md). Each macro is stored in an individual script file and is created using [TOML](https://toml.io/en/) with a predefined schema described below. Macro files are stored in your library's "`.TagStudio/macros`" folder.
## Tools
## Schema Version
### Fix Unlinked Entries
The `schema_version` key declares which version of the macro schema is currently being used. Current schema version: 1.
This tool displays the number of unlinked [entries](entries.md), and some options for their resolution.
```toml
schema_version = 1
```
Refresh
: Scans through the library and updates the unlinked entry count.
## Triggers
Search & Relink
: Attempts to automatically find and reassign missing files.
The `triggers` key declares when a macro may be automatically ran. Macros can still be manually triggered even if they have automatic triggers defined.
Delete Unlinked Entries
: Displays a confirmation prompt containing the list of all missing files to be deleted before committing to or cancelling the operation.
- `on_open`: Run when the TagStudio library is opened.
- `on_refresh`: Run when the TagStudio library's directories have been refreshed.
- `on_new_entry`: Run a new [file entry](entries.md) that has been created.
### Fix Duplicate Files
```toml
triggers = ["on_new_entry"]
```
This tool allows for management of duplicate files in the library using a [DupeGuru](https://dupeguru.voltaicideas.net/) file.
## Actions
Load DupeGuru File
: load the "results" file created from a DupeGuru scan
Actions are broad categories of operations that your macro will perform. They are represented by TOML tables and must have a unique name in your macro file, but the name itself has no importance to the macro. A single macro file can contain multiple actions and each action can contain multiple tasks.
Mirror Entries
: Duplicate entries will have their contents mirrored across all instances. This allows for duplicate files to then be deleted with DupeGuru as desired, without losing the [field](fields.md) data that has been assigned to either. (Once deleted, the "Fix Unlinked Entries" tool can be used to clean up the duplicates)
An action table with a name of your choosing (e.g. `[action]`) will contain the general configuration for your action, and nested task tables (e.g. `[action.task]`) will define the specifics of your action's tasks.
### Create Collage
Action tables must have an `action` key with one of the following valid action values:
This tool is a preview of an upcoming feature. When selected, TagStudio will generate a collage of all the contents in a Library, which can be found in the Library folder ("/your-folder/.TagStudio/collages/"). Note that this feature is still in early development, and doesn't yet offer any customization options.
- [`import_data`](#import-data): Import data from a supported external source.
- [`add_data`](#add-data): Add data declared inside the macro file.
## Macros
```toml
[newgrounds]
action = "import_data"
```
### Auto-fill [WIP]
Most of the configuration of actions comes at the [task configuration](#task-configuration) level. This is where you will build out exactly how your action will translate data and instructions into results for your TagStudio library.
Tool is in development and will be documented in a future update.
---
### Sort fields
### Add Data
Tool is in development. Will allow for user-defined sorting of [fields](fields.md).
The `add_data` action lets you add data to a [file entry](entries.md) given one or more conditional statements. Unlike the [`import_data`](#import-data) action, the `add_data` action adds data declared in the macro itself rather than importing it form a source external to the macro.
### Folders to Tags
Compatible Keys:
Creates tags from the existing folder structure in the library, which are previewed in a hierarchy view for the user to confirm. A tag will be created for each folder and applied to all entries, with each subfolder being linked to the parent folder as a [parent tag](tags.md#parent-tags). Tags will initially be named after the folders, but can be fully edited and customized afterwards.
- [`source_filters`](#source_filters)
- [`value`](#value)
---
### Import Data
The `import_data` action allows you to import external data into your TagStudio library in the form of [tags](tags.md) and [fields](fields.md). While some sources need explicit support (e.g. ID3, EXIF) generic sources such as JSON sidecar files can leverage a wide array of data shaping options that allow the underlying data structure to be abstracted from TagStudio's internal data structures. This macro pairs very well with tools that download sidecar files for data such as [gallery-dl](https://github.com/mikf/gallery-dl).
Compatible Keys:
- [`key`](#key)
- [`source_location`](#source_location)
- [`source_format`](#source_format)
- [`is_embedded`](#is_embedded)
If you're importing from an object-like source (e.g. JSON), you'll need to create a nested task table with the format `[action.task]` and provide a [`key`](#key) field filled with the name of the targeted source key. In this case the task name does not matter as long as it doesn't conflict with one of the built-in task names (i.e. "`map`", "`inverse_map`, "`template`").
<!-- prettier-ignore -->
=== "Importable JSON Data"
```json
{
"newgrounds": {
"tags": ["tag1", "tag2"]
}
}
```
=== "TOML Macro"
```toml
[newgrounds]
action="import_data"
[newgrounds.tags]
key="tags"
```
Inside the new table we can now declare additional information about the native data formats and how they should be imported into TagStudio.
---
### Action Configuration
#### `source_format`
<!-- prettier-ignore -->
!!! note ""
Compatible Actions: [`import_data`](#import-data)
The `source_format` key is used to declare what type of source data will be imported from.
```toml
[newgrounds]
action = "import_data"
source_format = "json"
```
- `exif`: Embedded EXIF metadata
- `id3`: Embedded ID3 metadata
- `json`: A JSON formatted file
- `text`: A plaintext file
- `xml`: An XML formatted file
- `xmp`: Embedded XMP metadata or an XMP sidecar file
---
#### `source_location`
<!-- prettier-ignore -->
!!! note ""
Compatible Actions: [`import_data`](#import-data)
The `source_location` key is used to declare where the metadata should be imported from. This can be a relative or absolute path, and can reference the targeted filename with the `{filename}` placeholder.
```toml
[newgrounds]
action = "import_data"
source_format = "json"
source_location = "{filename}.json" # Relative sidecar file
```
<!-- - `absolute`: An absolute file location
- `embedded`: Data that's embedded within the targeted file
- `sidecar`: A sidecar file with a relative file location -->
---
#### `is_embedded`
<!-- prettier-ignore -->
!!! note ""
Compatible Actions: [`import_data`](#import-data)
If targeting embedded data, add the `is_embedded` key and set it to `true`. If no `source_location` is used then the file this macro is targeting will be used as a source.
```toml
[newgrounds]
action = "import_data"
source_format = "id3"
is_embedded = true
```
---
#### `source_filters`
<!-- prettier-ignore -->
!!! note ""
Compatible Actions: [`add_data`](#add-data), [`import_data`](#import-data)
`source_filters` are used to declare a glob list of files that are able to be targeted by this action. An entry filepath only needs to fall under one of the given source filters in order for the macro to continue. If not, then the macro will be skipped for this file entry.
<!-- prettier-ignore -->
=== "import_data"
```toml
[newgrounds]
action = "import_data"
source_format = "json"
source_location = "{filename}.json"
source_filters = ["**/Newgrounds/**"]
```
=== "add_data"
```toml
[animated]
action = "add_data"
source_filters = ["**/*.gif", "**/*.apng"]
```
<!-- ### Source Types
The `source_type` key allows for the explicit declaration of the type and/or format of the source data. When this key is omitted, TagStudio will default to the data type that makes the most sense for the destination [TagStudio type](#tagstudio-types).
- `string`: A character string (text)
- `integer`: An integer
- `float`: A floating point number
- `url`: A string with a special URL formatting pass
- [`ISO8601`](https://en.wikipedia.org/wiki/ISO_8601) A standard datetime format
- `list:string`: List of strings (text)
- `list:integer`: List of integers
- `list:float`: List of floating point numbers -->
---
## Task Configuration
An [action's](#actions) tasks need to be configured using the built-in keys available to each action. These keys may be specific to certain actions, required or optional, or expect other specific formatting. The actions section will list each action's available keys, and the following list of keys will likewise list which actions they are compatible with along with any other rules.
Along with generally defining your own custom tasks, there are a few built-in tasks that have reserved names and offer extra functionality on top of your own tasks. These currently include:
- [`.inverse-map`](#many-to-1-inverse-map) (Inverse Tag Maps)
- [`.map`](#manual-tag-mapping) (Tag Maps)
- [`.template`](#templates) (Templates)
---
### `key`
<!-- prettier-ignore -->
!!! note ""
Compatible Actions: [`import_data`](#import-data)
The `key` key is used to specify the object key to target in your data source. If you're targeting a nested object, separate the names of the keys with a dot.
```toml
[artstation]
action = "import_data"
source_format = "json"
[artstation.tags]
key="tags"
ts_type = "tags"
[artstation.mediums]
key="mediums.name" # Nested key
ts_type = "tags"
```
When importing from the same key multiple times, you have the option to either choose different names for your task tables or use the same name with these tables wrapped in an extra pair of brackets.
<!-- prettier-ignore -->
=== "Single Import"
```toml
[newgrounds]
# Newgrounds table info here
[newgrounds.artist]
key="artist"
ts_type = "tags"
use_context = false
on_missing = "create"
```
=== "Multiple Imports"
```toml
[newgrounds]
# Newgrounds table info here
[newgrounds.artist_tag]
key="artist"
ts_type = "tags"
use_context = false
on_missing = "skip"
[newgrounds.artist_text]
key="artist"
ts_type = "text_line"
name = "Artist"
```
=== "Multiple Imports (Wrapped)"
```toml
[newgrounds]
# Newgrounds table info here
[[newgrounds.artist]]
key="artist"
ts_type = "tags"
use_context = false
on_missing = "skip"
[[newgrounds.artist]]
key="artist"
ts_type = "text_line"
name = "Artist"
```
---
### `ts_type`
<!-- prettier-ignore -->
!!! note ""
Compatible Actions: [`add_data`](#add-data), [`import_data`](#import-data)
The required `ts_type` key defines the destination data format inside TagStudio itself. This can be [tags](tags.md) or any [field](fields.md) type.
- [`tags`](tags.md)
- [`text_line`](fields.md#text-line)
- [`text_box`](fields.md#text-box)
- [`datetime`](fields.md#datetime)
<!-- prettier-ignore -->
=== "Title Field"
```toml
[newgrounds]
# newgrounds table info here
[newgrounds.title]
ts_type = "text_line"
name = "Title"
```
=== "Tags"
```toml
[newgrounds]
# newgrounds table info here
[newgrounds.tags]
ts_type = "tags"
```
#### Field Specific Keys
`name`: The name of the field to import into.
<!-- prettier-ignore -->
=== "text_line"
```toml
[newgrounds.user]
key="user"
ts_type = "text_line"
name = "Author"
```
=== "text_box"
```toml
[newgrounds.content]
key="content"
ts_type = "text_box"
name = "Description"
```
<!-- prettier-ignore -->
!!! note
As of writing (v9.5.3) TagStudio fields still do not allow for custom names. The macro system is designed to be forward-thinking with this feature in mind, however only existing TagStudio field names are currently considered valid. Any invalid field names will default to the "Notes" field.
#### Tag Specific Keys
Since TagStudio tags are more complex than other traditional tag formats, there are several options for fine-tuning how tags should be imported.
`delimiter`: The delimiter between string tags to use.
<!-- prettier-ignore -->
=== "Comma + Space Separation"
```toml
[newgrounds.tags]
ts_type = "tags"
delimiter = ", "
```
=== "Newline Separation"
```toml
[newgrounds.tags]
ts_type = "tags"
delimiter = "\n"
```
`on_missing`: Determines the behavior of how to react to source tags with no match in the library.
- `"prompt"`: Ask the user if they wish to create, skip, or manually choose an existing tag.
- `"create"`: Automatically create a new TagStudio tag based on the source tag.
- `"skip"` (Default): Ignore the unmatched tags.
```toml
[newgrounds.tags]
ts_type = "tags"
strict = false
use_context = true
on_missing = "create"
```
`prefix`: An optional prefix to remove.
<!-- prettier-ignore -->
!!! example
Given a list of tags such as `["#tag1", "#tag2", "#tag3"]`, you may wish to remove the "`#`" prefix.
```toml
[instagram.tags]
ts_type = "tags"
prefix = "#"
```
`strict`: A flag that determines what [names](tags.md#naming-tags) of the TagStudio tags should be used to compare against the source data when matching.
- `true`: Only match against the TagStudio tag [name](tags.md#name) field.
- `false` (Default): Match against any TagStudio tag name field including [shorthands](tags.md#shorthand), [aliases](tags.md#aliases), and the [disambiguation name](tags.md#disambiguation).
`use_context`: A flag that determines if TagStudio should use context clues from other source tags to provide more accurate tag matches.
- `true` (Default): Use context clue matching (slower, less ambiguous).
- `false`: Ignore surrounding source tags (faster, more ambiguous).
\*\*
---
### `value`
<!-- prettier-ignore -->
!!! note ""
Compatible Actions: [`add_data`](#add-data)
The `value` key is use specifically with the [`add_data`](#add-data) action to define what value should be added to the file entry.
<!-- prettier-ignore -->
=== "Title Field"
```toml
[animated]
action = "add_data"
source_filters = ["**/*.gif", "**/*.apng"]
[animated.title]
ts_type = "text_line"
name = "Title"
value = "Animated Image"
```
=== "Tags"
```toml
[animated]
action = "add_data"
source_filters = ["**/*.gif", "**/*.apng"]
[animated.tags]
ts_type = "tags"
value = ["Animated"]
```
---
### Manual Tag Mapping
If the automatic tag matching system isn't enough to import tags the way you'd like, you can manually specify mappings between source and destination tags. Tables with the `.map` or `.inverse_map` task suffixes will be used to map tags in the nearest scope.
<!-- prettier-ignore -->
=== "Global Scope"
```toml
# Applies to all actions in the macro file
[map]
```
=== "Action Scope"
```toml
# Applies to all tasks in the "newgrounds" action
[newgrounds.map]
```
=== "Key Scope"
```toml
# Only applies to the "ratings" task inside the "newgrounds" action
[newgrounds.ratings.map]
```
- `map`: Used for "[1 to 0](#1-to-0-ignore-matches)", "[1 to 1](#1-to-1)", and "[1 to many](#1-to-many)" mappings
- `inverse_map`: Used for "[many to 1](#many-to-1-inverse-map)" mappings
---
#### 1 to 0 (Ignore Matches)
By mapping the key of the source tag name to an empty string, you can ignore that tag when matching with your own tags. This is useful if you're importing from a source that uses tags you don't wish to use or create inside your own libraries.
```toml
[newgrounds.tags.map]
# Source Tag Name = Nothing, Ignore Matches
favorite = ""
```
---
#### 1 to 1
By mapping the key or quoted string of a source tag to one of your TagStudio tags, you can directly specify a destination tag while bypassing the matching algorithm.
<!-- prettier-ignore -->
!!! tip
Consider using tag [aliases](tags.md#aliases) instead of 1 to 1 mapping. This mapping technique is useful if you want to map a specific source tag to a destination tag that you otherwise don't consider to be an alternate name for the destination tag.
```toml
[newgrounds.tags.map]
# Source Tag Name = TagStudio Tag Name
colored_pencil = "Drawing"
"Colored Pencil" = "Drawing"
```
---
#### 1 to Many
By mapping the key or quoted string of a source tag to a **list of your TagStudio tags**, you can cause one source tag to import as more than one of your TagStudio tags.
```toml
[newgrounds.tags.map]
# Source Tag Name = List of TagStudio Tag Names
drawing = ["Drawing (2D)", "Image (Meta Tags)"]
video = ["Animation (2D)", "Animated (Meta Tags)"]
```
---
#### Many to 1 (Inverse Map)
By mapping the key or quoted string of one of your TagStudio tags to a **list of source tags**, you can declare a combination of required source tags that result in a wholly new matched TagStudio tag. This is useful if you use a single tag in your TagStudio library that is represented by multiple separate tags from your source.
```toml
[newgrounds.tags.inverse_map]
# TagStudio Tag Name = List of Source Tag Names
"Animation (2D)" = ["drawing", "video"]
"Animation (3D)" = ["3D", "video"]
```
---
### Templates
Templates are part of the `input_data` action and allow you to take data from one or more keys of a source and combine them into a single value. Template sub-action tables must begin with the action name and end with `.template` (e.g. `[action.template]`). Source object keys can be embedded in a string value if surrounded by curly braces (`{}`). Nested keys are accessed by separating the keys with a dot (e.g. `{key.nested_key}`).
<!-- prettier-ignore-start -->
=== "Composite Template"
```toml
[bluesky.template]
template = "https://www.bsky.app/profile/{author.handle}/post/{post_id}"
ts_type = "text_line"
name = "Source"
```
=== "Multiple Templates per Action"
```toml
[[artstation.template]]
template = "Original Tags: {tags}"
ts_type = "text_box"
name = "Notes"
[[artstation.template]]
template = "Original Mediums: {mediums}"
ts_type = "text_box"
name = "Notes"
```
<!-- prettier-ignore-end -->

View File

@@ -61,7 +61,7 @@ Video thumbnails will default to the closest viable frame from the middle of the
### :material-sine-wave: Audio
Audio thumbnails will default to embedded cover art (if any) and fallback to generated waveform thumbnails. Audio file playback is supported in the Preview Panel if you have [FFmpeg](install.md#third-party-dependencies) installed on your system. Audio waveforms are currently not cached.
Audio thumbnails will default to embedded cover art (if any) andfallback to generated waveform thumbnails. Audio file playback is supported in the Preview Panel if you have [FFmpeg](install.md#third-party-dependencies) installed on your system. Audio waveforms are currently not cached.
| Filetype | Extensions | Dependencies |
| ------------------- | ------------------------ | :----------: |
@@ -69,7 +69,7 @@ Audio thumbnails will default to embedded cover art (if any) and fallback to gen
| AIFF | `.aiff`, `.aif`, `.aifc` | FFmpeg |
| Apple Lossless[^2] | `.alac`, `.aac` | FFmpeg |
| FLAC | `.flac` | FFmpeg |
| MP3 | `.mp3` | FFmpeg |
| MP3 | `.mp3`, | FFmpeg |
| Ogg | `.ogg` | FFmpeg |
| WAVE | `.wav`, `.wave` | FFmpeg |
| Windows Media Audio | `.wma` | FFmpeg |
@@ -78,41 +78,27 @@ Audio thumbnails will default to embedded cover art (if any) and fallback to gen
Preview support for office documents or well-known project file formats varies by the format and whether or not embedded thumbnails are available to be read from. OpenDocument-based files are typically supported.
| Filetype | Extensions | Preview Type |
|--------------------------------------| --------------------- | -------------------------------------------------------------------------- |
| Blender | `.blend`, `.blend<#>` | Embedded thumbnail :material-alert-circle:{ title="If available in file" } |
| Clip Studio Paint | `.clip` | Embedded thumbnail |
| Keynote (Apple iWork) | `.key` | Embedded thumbnail |
| Krita[^3] | `.kra`, `.krz` | Embedded thumbnail :material-alert-circle:{ title="If available in file" } |
| Mdipack (FireAlpaca, Medibang Paint) | `.mdp` | Embedded thumbnail |
| MuseScore | `.mscz` | Embedded thumbnail :material-alert-circle:{ title="If available in file" } |
| Numbers (Apple iWork) | `.numbers` | Embedded thumbnail |
| OpenDocument Presentation | `.odp`, `.fodp` | Embedded thumbnail |
| OpenDocument Spreadsheet | `.ods`, `.fods` | Embedded thumbnail |
| OpenDocument Text | `.odt`, `.fodt` | Embedded thumbnail |
| Pages (Apple iWork) | `.pages` | Embedded thumbnail |
| Paint.NET | `.pdn` | Embedded thumbnail |
| PDF | `.pdf` | First page render |
| Photoshop | `.psd` | Flattened image render |
| PowerPoint (Microsoft Office) | `.pptx`, `.ppt` | Embedded thumbnail :material-alert-circle:{ title="If available in file" } |
### :material-archive: Archives
Archive thumbnails will display the first image from the archive within the Preview Panel.
| Filetype | Extensions |
|----------|----------------|
| 7-Zip | `.7z`, `.s7z` |
| RAR | `.rar` |
| Tar | `.tar`, `.tgz` |
| Zip | `.zip` |
| Filetype | Extensions | Preview Type |
| ----------------------------- | --------------------- | -------------------------------------------------------------------------- |
| Blender | `.blend`, `.blend<#>` | Embedded thumbnail :material-alert-circle:{ title="If available in file" } |
| Keynote (Apple iWork) | `.key` | Embedded thumbnail |
| Krita[^3] | `.kra`, `.krz` | Embedded thumbnail :material-alert-circle:{ title="If available in file" } |
| MuseScore | `.mscz` | Embedded thumbnail :material-alert-circle:{ title="If available in file" } |
| Numbers (Apple iWork) | `.numbers` | Embedded thumbnail |
| OpenDocument Presentation | `.odp`, `.fodp` | Embedded thumbnail |
| OpenDocument Spreadsheet | `.ods`, `.fods` | Embedded thumbnail |
| OpenDocument Text | `.odt`, `.fodt` | Embedded thumbnail |
| Pages (Apple iWork) | `.pages` | Embedded thumbnail |
| PDF | `.pdf` | First page render |
| Photoshop | `.psd` | Flattened image render |
| PowerPoint (Microsoft Office) | `.pptx`, `.ppt` | Embedded thumbnail :material-alert-circle:{ title="If available in file" } |
### :material-book: eBooks
| Filetype | Extensions | Preview Type |
| ------------------ | ----------------------------- | ---------------------------- |
| EPUB | `.epub` | Embedded cover |
| Comic Book Archive | `.cbr`, `.cbt` `.cbz`, `.cb7` | Embedded cover or first page |
| Filetype | Extensions | Preview Type |
| ------------------ | --------------------- | ---------------------------- |
| EPUB | `.epub` | Embedded cover |
| Comic Book Archive | `.cbr`, `.cbt` `.cbz` | Embedded cover or first page |
### :material-cube-outline: 3D Models

34
docs/relinking.md Normal file
View File

@@ -0,0 +1,34 @@
---
title: Entry Relinking
icon: material/link-variant
---
# :material-link-variant: Entry Relinking
### Fix Unlinked Entries
This tool displays the number of unlinked [entries](entries.md), and some options for their resolution.
Refresh
- Scans through the library and updates the unlinked entry count.
Search & Relink
- Attempts to automatically find and reassign missing files.
Delete Unlinked Entries
- Displays a confirmation prompt containing the list of all missing files to be deleted before committing to or cancelling the operation.
### Fix Duplicate Files
This tool allows for management of duplicate files in the library using a [DupeGuru](https://dupeguru.voltaicideas.net/) file.
Load DupeGuru File
- load the "results" file created from a DupeGuru scan
Mirror Entries
- Duplicate entries will have their contents mirrored across all instances. This allows for duplicate files to then be deleted with DupeGuru as desired, without losing the [field](fields.md) data that has been assigned to either. (Once deleted, the "Fix Unlinked Entries" tool can be used to clean up the duplicates)

View File

@@ -243,18 +243,27 @@ Discrete library objects representing [attributes](<https://en.wikipedia.org/wik
- [ ] OCR Search :material-chevron-up:{ .priority-low title="Low Priority" }
- [ ] Fuzzy Search :material-chevron-up:{ .priority-low title="Low Priority" }
### :material-file-cog: [Macros](macros.md)
### :material-script-text: [Macros](macros.md)
- [ ] Standard, Human Readable Format (TOML) :material-chevron-triple-up:{ .priority-high title="High Priority" } **[v9.5.x]**
- [ ] Versioning System :material-chevron-triple-up:{ .priority-high title="High Priority" } **[v9.5.x]**
- [ ] Triggers **[v9.5.x]**
- [ ] # Triggers **[v9.5.x]**
- [x] Standard, Human Readable Format (TOML) :material-chevron-triple-up:{ .priority-high title="High Priority" } **[v9.5.5]**
- [x] Versioning System :material-chevron-triple-up:{ .priority-high title="High Priority" } **[v9.5.5]**
- [ ] Triggers **[v9.5.5]**
- [ ] On File Added :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [ ] On Library Refresh :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [ ] [...]
- [ ] Actions **[v9.5.x]**
- [ ] Add Tag(s) :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [ ] Add Field(s) :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [ ] Set Field Content :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [x] Import from JSON file :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [ ] Import from plaintext file :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [ ] Import from XML file :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [x] Create templated fields from other table keys :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [x] Remove tag prefixes from import sources :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [x] Specify tag delimiters from import sources :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [x] Add data (tags + fields) configured in macro :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [x] Glob filter for entry file :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [x] Map source tags to TagStudio tags :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [ ] [...]
### :material-table-arrow-right: Sharable Data
@@ -274,9 +283,9 @@ Packs are intended as an easy way to import and export specific data between lib
- [ ] UUIDs + Namespaces :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [ ] Standard, Human Readable Format (TOML) :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [ ] Versioning System :material-chevron-double-up:{ .priority-med title="Medium Priority" }
- [ ] Macro Sharing :material-chevron-triple-up:{ .priority-high title="High Priority" } **[v9.5.x]**
- [ ] Importable :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [ ] Exportable :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [x] Macro Sharing :material-chevron-triple-up:{ .priority-high title="High Priority" } **[v9.5.x]**
- [x] Importable :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [x] Exportable :material-chevron-triple-up:{ .priority-high title="High Priority" }
- [ ] Sharable Entry Data :material-chevron-double-up:{ .priority-med title="Medium Priority" } **[v9.9.x]**
- _Specifics of this are yet to be determined_
- [ ] Export Library to Human Readable Format :material-chevron-triple-up:{ .priority-high title="High Priority" } **[v10.0.0]**

12
flake.lock generated
View File

@@ -7,11 +7,11 @@
]
},
"locked": {
"lastModified": 1763759067,
"narHash": "sha256-LlLt2Jo/gMNYAwOgdRQBrsRoOz7BPRkzvNaI/fzXi2Q=",
"lastModified": 1756770412,
"narHash": "sha256-+uWLQZccFHwqpGqr2Yt5VsW/PbeJVTn9Dk6SHWhNRPw=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0",
"rev": "4524271976b625a4a605beefd893f270620fd751",
"type": "github"
},
"original": {
@@ -22,11 +22,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1763835633,
"narHash": "sha256-HzxeGVID5MChuCPESuC0dlQL1/scDKu+MmzoVBJxulM=",
"lastModified": 1757487488,
"narHash": "sha256-zwE/e7CuPJUWKdvvTCB7iunV4E/+G0lKfv4kk/5Izdg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "050e09e091117c3d7328c7b2b7b577492c43c134",
"rev": "ab0f3607a6c7486ea22229b92ed2d355f1482ee0",
"type": "github"
},
"original": {

View File

@@ -43,8 +43,10 @@ nav:
- entries.md
- preview-support.md
- search.md
- ignore.md
- macros.md
- Management:
- relinking.md
- ignore.md
- Fields:
- fields.md
- Tags:

View File

@@ -6,7 +6,7 @@
qt6,
ripgrep,
stdenv,
wrapGAppsHook3,
wrapGAppsHook,
pillow-jxl-plugin,
@@ -30,7 +30,7 @@ python3Packages.buildPythonApplication {
# Should be unnecessary once PR is pulled.
# PR: https://github.com/NixOS/nixpkgs/pull/271037
# Issue: https://github.com/NixOS/nixpkgs/issues/149812
wrapGAppsHook3
wrapGAppsHook
];
buildInputs = [
qt6.qtbase
@@ -70,7 +70,7 @@ python3Packages.buildPythonApplication {
"\${qtWrapperArgs[@]}"
];
pythonRemoveDeps = lib.optional (!withJXLSupport) "pillow_jxl";
pythonRemoveDeps = lib.optional (!withJXLSupport) [ "pillow_jxl" ];
pythonRelaxDeps = [
"numpy"
"pillow"
@@ -80,8 +80,6 @@ python3Packages.buildPythonApplication {
"py7zr"
"pyside6"
"rarfile"
"requests"
"semver"
"structlog"
"typing-extensions"
];
@@ -98,6 +96,7 @@ python3Packages.buildPythonApplication {
numpy
opencv-python
pillow
pillow-avif-plugin
pillow-heif
py7zr
pydantic
@@ -105,8 +104,6 @@ python3Packages.buildPythonApplication {
pyside6
rarfile
rawpy
requests
semver
send2trash
sqlalchemy
srctools

View File

@@ -51,7 +51,7 @@ let
# Should be unnecessary once PR is pulled.
# PR: https://github.com/NixOS/nixpkgs/pull/271037
# Issue: https://github.com/NixOS/nixpkgs/issues/149812
wrapGAppsHook3
wrapGAppsHook
];
buildInputs = with pkgs.qt6; [
qtbase
@@ -87,7 +87,7 @@ pkgs.mkShellNoCC {
env = {
QT_QPA_PLATFORM = "wayland;xcb";
UV_NO_SYNC = 1;
UV_NO_SYNC = "1";
UV_PYTHON_DOWNLOADS = "never";
};
@@ -111,8 +111,7 @@ pkgs.mkShellNoCC {
fi
source "''${venv}"/bin/activate
PYTHONPATH=${pythonPath}''${PYTHONPATH:+:''${PYTHONPATH}}
export PYTHONPATH
PYTHONPATH=${pythonPath}''${PYTHONPATH:+:}''${PYTHONPATH:-}
if [ ! -f "''${venv}"/pyproject.toml ] || ! diff --brief pyproject.toml "''${venv}"/pyproject.toml >/dev/null; then
printf '%s\n' 'Installing dependencies, pyproject.toml changed...' >&2

View File

@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
[project]
name = "TagStudio"
description = "A User-Focused Photo & File Management System."
version = "9.5.6"
version = "9.5.5"
license = "GPL-3.0-only"
readme = "README.md"
requires-python = ">=3.12,<3.13"
@@ -16,7 +16,8 @@ dependencies = [
"mutagen~=1.47",
"numpy~=2.2",
"opencv_python~=4.11",
"Pillow>=10.2,<12",
"Pillow>=10.2,<=11",
"pillow-avif-plugin~=1.5",
"pillow-heif~=0.22",
"pillow-jxl-plugin~=1.3",
"py7zr==1.0.0",
@@ -33,8 +34,6 @@ dependencies = [
"typing_extensions~=4.13",
"ujson~=5.10",
"wcmatch==10.*",
"requests~=2.31.0",
"semver~=3.0.4",
]
[project.optional-dependencies]

View File

@@ -2,7 +2,7 @@
# Licensed under the GPL-3.0 License.
# Created for TagStudio: https://github.com/CyanVoxel/TagStudio
VERSION: str = "9.5.6" # Major.Minor.Patch
VERSION: str = "9.5.5" # Major.Minor.Patch
VERSION_BRANCH: str = "" # Usually "" or "Pre-Release"
# The folder & file names where TagStudio keeps its data relative to a library.
@@ -10,6 +10,7 @@ TS_FOLDER_NAME: str = ".TagStudio"
BACKUP_FOLDER_NAME: str = "backups"
COLLAGE_FOLDER_NAME: str = "collages"
IGNORE_NAME: str = ".ts_ignore"
MACROS_FOLDER_NAME: str = "macros"
THUMB_CACHE_NAME: str = "thumbs"
FONT_SAMPLE_TEXT: str = (

View File

@@ -51,14 +51,6 @@ class OpenStatus(enum.IntEnum):
CORRUPTED = 2
class MacroID(enum.Enum):
AUTOFILL = "autofill"
SIDECAR = "sidecar"
BUILD_URL = "build_url"
MATCH = "match"
CLEAN_URL = "clean_url"
class DefaultEnum(enum.Enum):
"""Allow saving multiple identical values in property called .default."""

View File

@@ -11,7 +11,7 @@ JSON_FILENAME: str = "ts_library.json"
DB_VERSION_LEGACY_KEY: str = "DB_VERSION"
DB_VERSION_CURRENT_KEY: str = "CURRENT"
DB_VERSION_INITIAL_KEY: str = "INITIAL"
DB_VERSION: int = 103
DB_VERSION: int = 102
TAG_CHILDREN_QUERY = text("""
WITH RECURSIVE ChildTags AS (

View File

@@ -57,8 +57,8 @@ def make_tables(engine: Engine) -> None:
conn.execute(
text(
"INSERT INTO tags "
"(id, name, color_namespace, color_slug, is_category, is_hidden) VALUES "
f"({RESERVED_TAG_END}, 'temp', NULL, NULL, false, false)"
"(id, name, color_namespace, color_slug, is_category) VALUES "
f"({RESERVED_TAG_END}, 'temp', NULL, NULL, false)"
)
)
conn.execute(text(f"DELETE FROM tags WHERE id = {RESERVED_TAG_END}"))

View File

@@ -1,6 +1,6 @@
import enum
import random
from dataclasses import dataclass, field, replace
from dataclasses import dataclass, replace
from pathlib import Path
import structlog
@@ -78,13 +78,10 @@ class BrowsingState:
"""Represent a state of the Library grid view."""
page_index: int = 0
page_positions: dict[int, int] = field(default_factory=dict)
sorting_mode: SortingModeEnum = SortingModeEnum.DATE_ADDED
ascending: bool = False
ascending: bool = True
random_seed: float = 0
show_hidden_entries: bool = False
query: str | None = None
# Abstract Syntax Tree Of the current Search Query
@@ -150,9 +147,6 @@ class BrowsingState:
def with_search_query(self, search_query: str) -> "BrowsingState":
return replace(self, query=search_query)
def with_show_hidden_entries(self, show_hidden_entries: bool) -> "BrowsingState":
return replace(self, show_hidden_entries=show_hidden_entries)
class FieldTypeEnum(enum.Enum):
TEXT_LINE = "Text Line"

View File

@@ -151,7 +151,6 @@ def get_default_tags() -> tuple[Tag, ...]:
name="Archived",
aliases={TagAlias(name="Archive")},
parent_tags={meta_tag},
is_hidden=True,
color_slug="red",
color_namespace="tagstudio-standard",
)
@@ -541,8 +540,6 @@ class Library:
self.__apply_db8_schema_changes(session)
if loaded_db_version < 9:
self.__apply_db9_schema_changes(session)
if loaded_db_version < 103:
self.__apply_db103_schema_changes(session)
if loaded_db_version == 6:
self.__apply_repairs_for_db6(session)
@@ -554,8 +551,6 @@ class Library:
self.__apply_db100_parent_repairs(session)
if loaded_db_version < 102:
self.__apply_db102_repairs(session)
if loaded_db_version < 103:
self.__apply_db103_default_data(session)
# Convert file extension list to ts_ignore file, if a .ts_ignore file does not exist
self.migrate_sql_to_ts_ignore(library_dir)
@@ -703,36 +698,6 @@ class Library:
session.commit()
logger.info("[Library][Migration] Verified TagParent table data")
def __apply_db103_schema_changes(self, session: Session):
"""Apply database schema changes introduced in DB_VERSION 103."""
add_is_hidden_column = text(
"ALTER TABLE tags ADD COLUMN is_hidden BOOLEAN NOT NULL DEFAULT 0"
)
try:
session.execute(add_is_hidden_column)
session.commit()
logger.info("[Library][Migration] Added is_hidden column to tags table")
except Exception as e:
logger.error(
"[Library][Migration] Could not create is_hidden column in tags table!",
error=e,
)
session.rollback()
def __apply_db103_default_data(self, session: Session):
"""Apply default data changes introduced in DB_VERSION 103."""
try:
session.query(Tag).filter(Tag.id == TAG_ARCHIVED).update({"is_hidden": True})
session.commit()
logger.info("[Library][Migration] Updated archived tag to be hidden")
session.commit()
except Exception as e:
logger.error(
"[Library][Migration] Could not update archived tag to be hidden!",
error=e,
)
session.rollback()
def migrate_sql_to_ts_ignore(self, library_dir: Path):
# Do not continue if existing '.ts_ignore' file is found
if Path(library_dir / TS_FOLDER_NAME / IGNORE_NAME).exists():
@@ -1038,19 +1003,13 @@ class Library:
else:
statement = select(Entry.id)
ast = search.ast
if not search.show_hidden_entries:
statement = statement.where(~Entry.tags.any(Tag.is_hidden))
if ast:
if search.ast:
start_time = time.time()
statement = statement.where(SQLBoolExpressionBuilder(self).visit(ast))
statement = statement.where(SQLBoolExpressionBuilder(self).visit(search.ast))
end_time = time.time()
logger.info(
f"SQL Expression Builder finished ({format_timespan(end_time - start_time)})"
)
statement = statement.distinct(Entry.id)
sort_on: ColumnExpressionArgument = Entry.id
@@ -1103,19 +1062,21 @@ class Library:
selectinload(Tag.parent_tags),
selectinload(Tag.aliases),
)
if limit > 0:
query = query.limit(limit)
if name:
query = query.where(
or_(
Tag.name.icontains(name),
Tag.shorthand.icontains(name),
TagAlias.name.icontains(name),
Tag.name.istartswith(name),
Tag.shorthand.istartswith(name),
TagAlias.name.istartswith(name),
)
)
direct_tags = set(session.scalars(query))
ancestor_tag_ids: list[Tag] = []
for tag in direct_tags:
ancestor_tag_ids.extend(
@@ -1133,14 +1094,6 @@ class Library:
{at for at in ancestor_tags if at not in direct_tags},
]
logger.info(
"searching tags",
search=name,
limit=limit,
statement=str(query),
results=len(res),
)
session.expunge_all()
return res
@@ -1170,29 +1123,35 @@ class Library:
session.commit()
return True
def remove_tag(self, tag_id: int) -> bool:
def remove_tag(self, tag_id: int):
with Session(self.engine, expire_on_commit=False) as session:
try:
session.execute(delete(TagAlias).where(TagAlias.tag_id == tag_id))
session.execute(delete(TagEntry).where(TagEntry.tag_id == tag_id))
session.execute(
delete(TagParent).where(
or_(TagParent.child_id == tag_id, TagParent.parent_id == tag_id)
)
)
session.execute(
aliases = session.scalars(select(TagAlias).where(TagAlias.tag_id == tag_id))
for alias in aliases:
session.delete(alias)
session.flush()
tag_parents = session.scalars(
select(TagParent).where(TagParent.parent_id == tag_id)
).all()
for tag_parent in tag_parents:
session.delete(tag_parent)
session.flush()
disam_stmt = (
update(Tag)
.where(Tag.disambiguation_id == tag_id)
.values(disambiguation_id=None)
)
session.execute(delete(Tag).where(Tag.id == tag_id))
session.execute(disam_stmt)
session.flush()
session.query(Tag).filter_by(id=tag_id).delete()
session.commit()
except IntegrityError as e:
logger.error(e)
session.rollback()
return False
return True
def update_field_position(
self,
@@ -1291,7 +1250,7 @@ class Library:
with Session(self.engine) as session:
return {x.key: x for x in session.scalars(select(ValueType)).all()}
def get_value_type(self, field_key: str) -> ValueType:
def get_value_type(self, field_key: str | None) -> ValueType | None:
with Session(self.engine) as session:
field = unwrap(session.scalar(select(ValueType).where(ValueType.key == field_key)))
session.expunge(field)
@@ -1304,6 +1263,7 @@ class Library:
field: ValueType | None = None,
field_id: FieldID | str | None = None,
value: str | datetime | None = None,
skip_on_exists: bool = False,
) -> bool:
logger.info(
"[Library][add_field_to_entry]",
@@ -1320,6 +1280,27 @@ class Library:
field_id = field_id.name
field = self.get_value_type(unwrap(field_id))
if not field:
logger.error(
"[Library] Could not add field to entry, invalid field type.", entry_id=entry_id
)
return False
if skip_on_exists:
entry = self.get_entry_full(entry_id, with_tags=False)
if not entry:
logger.exception("[Library] Entry does not exist", entry_id=entry_id)
return False
for field_ in entry.fields:
if field_.value == value and field_.type_key == field_id:
logger.info(
"[Library] Field value already exists for entry",
entry_id=entry_id,
value=value,
type=field_id,
)
return False
field_model: TextField | DatetimeField
if field.type in (FieldTypeEnum.TEXT_LINE, FieldTypeEnum.TEXT_BOX):
field_model = TextField(
@@ -1498,10 +1479,21 @@ class Library:
for tag_id in tag_ids_:
for entry_id in entry_ids_:
try:
logger.info(
"[Library][add_tags_to_entries] Adding tag to entry...",
tag_id=tag_id,
entry_id=entry_id,
)
session.add(TagEntry(tag_id=tag_id, entry_id=entry_id))
total_added += 1
session.commit()
except IntegrityError:
except IntegrityError as e:
logger.warning(
"[Library][add_tags_to_entries] Tag already on entry",
warning=e,
tag_id=tag_id,
entry_id=entry_id,
)
session.rollback()
return total_added
@@ -1598,6 +1590,7 @@ class Library:
return tag
# TODO: Fix and consolidate code with search_tags()
def get_tag_by_name(self, tag_name: str) -> Tag | None:
with Session(self.engine) as session:
statement = (

View File

@@ -97,7 +97,6 @@ class Tag(Base):
color_slug: Mapped[str | None] = mapped_column()
color: Mapped[TagColorGroup | None] = relationship(lazy="joined")
is_category: Mapped[bool]
is_hidden: Mapped[bool]
icon: Mapped[str | None]
aliases: Mapped[set[TagAlias]] = relationship(back_populates="tag")
parent_tags: Mapped[set["Tag"]] = relationship(
@@ -139,7 +138,6 @@ class Tag(Base):
color_slug: str | None = None,
disambiguation_id: int | None = None,
is_category: bool = False,
is_hidden: bool = False,
):
self.name = name
self.aliases = aliases or set()
@@ -150,7 +148,6 @@ class Tag(Base):
self.shorthand = shorthand
self.disambiguation_id = disambiguation_id
self.is_category = is_category
self.is_hidden = is_hidden
self.id = id # pyright: ignore[reportAttributeAccessIssue]
super().__init__()

View File

@@ -4,9 +4,9 @@ from pathlib import Path
import structlog
from tagstudio.core.library.alchemy.enums import BrowsingState
from tagstudio.core.library.alchemy.library import Library
from tagstudio.core.library.alchemy.models import Entry
from tagstudio.core.utils.types import unwrap
logger = structlog.get_logger()
@@ -28,7 +28,7 @@ class DupeFilesRegistry:
A duplicate file is defined as an identical or near-identical file as determined
by a DupeGuru results file.
"""
library_dir = unwrap(self.library.library_dir)
library_dir = self.library.library_dir
if not isinstance(results_filepath, Path):
results_filepath = Path(results_filepath)
@@ -43,7 +43,7 @@ class DupeFilesRegistry:
files: list[Entry] = []
for element in group:
if element.tag == "file":
file_path = Path(unwrap(element.attrib.get("path")))
file_path = Path(element.attrib.get("path"))
try:
path_relative = file_path.relative_to(library_dir)
@@ -51,12 +51,16 @@ class DupeFilesRegistry:
# The file is not in the library directory
continue
entry = self.library.get_entry_full_by_path(path_relative)
if entry is None:
results = self.library.search_library(
BrowsingState.from_path(path_relative), 500
)
entries = self.library.get_entries(results.ids)
if not results:
# file not in library
continue
files.append(entry)
files.append(entries[0])
if not len(files) > 1:
# only one file in the group, nothing to do
@@ -78,5 +82,5 @@ class DupeFilesRegistry:
for i, entries in enumerate(self.groups):
remove_ids = entries[1:]
logger.info("Removing entries group", ids=remove_ids)
self.library.remove_entries([e.id for e in remove_ids])
self.library.remove_entries(remove_ids)
yield i - 1 # The -1 waits for the next step to finish

View File

@@ -146,7 +146,7 @@ class SQLBoolExpressionBuilder(BaseVisitor[ColumnElement[bool]]):
def __separate_tags(
self, terms: list[AST], only_single: bool = True
) -> tuple[list[int], list[ColumnElement[bool]]]:
tag_ids: set[int] = set()
tag_ids: list[int] = []
bool_expressions: list[ColumnElement[bool]] = []
for term in terms:
@@ -154,7 +154,7 @@ class SQLBoolExpressionBuilder(BaseVisitor[ColumnElement[bool]]):
match term.type:
case ConstraintType.TagID:
try:
tag_ids.add(int(term.value))
tag_ids.append(int(term.value))
except ValueError:
logger.error(
"[SQLBoolExpressionBuilder] Could not cast value to an int Tag ID",
@@ -164,15 +164,13 @@ class SQLBoolExpressionBuilder(BaseVisitor[ColumnElement[bool]]):
case ConstraintType.Tag:
ids = self.__get_tag_ids(term.value)
if not only_single:
tag_ids.update(ids)
tag_ids.extend(ids)
continue
elif len(ids) == 1:
tag_ids.add(ids[0])
tag_ids.append(ids[0])
continue
case ConstraintType.FileType:
pass
case ConstraintType.MediaType:
pass
case ConstraintType.Path:
pass
case ConstraintType.Special:
@@ -181,7 +179,7 @@ class SQLBoolExpressionBuilder(BaseVisitor[ColumnElement[bool]]):
raise NotImplementedError(f"Unhandled constraint: '{term.type}'")
bool_expressions.append(self.visit(term))
return list(tag_ids), bool_expressions
return tag_ids, bool_expressions
def __entry_has_all_tags(self, tag_ids: list[int]) -> ColumnElement[bool]:
"""Returns Binary Expression that is true if the Entry has all provided tag ids."""

View File

@@ -17,7 +17,6 @@ from tagstudio.core.library.alchemy.library import Library
from tagstudio.core.library.alchemy.models import Entry
from tagstudio.core.library.ignore import PATH_GLOB_FLAGS, Ignore, ignore_to_glob
from tagstudio.core.utils.silent_subprocess import silent_run # pyright: ignore
from tagstudio.core.utils.types import unwrap
logger = structlog.get_logger(__name__)
@@ -31,27 +30,24 @@ class RefreshTracker:
def files_count(self) -> int:
return len(self.files_not_in_library)
def save_new_files(self) -> Iterator[int]:
def save_new_files(self):
"""Save the list of files that are not in the library."""
batch_size = 200
index = 0
while index < len(self.files_not_in_library):
yield index
end = min(len(self.files_not_in_library), index + batch_size)
if self.files_not_in_library:
entries = [
Entry(
path=entry_path,
folder=unwrap(self.library.folder),
folder=self.library.folder, # pyright: ignore[reportArgumentType]
fields=[],
date_added=dt.now(),
)
for entry_path in self.files_not_in_library[index:end]
for entry_path in self.files_not_in_library
]
self.library.add_entries(entries)
index = end
self.files_not_in_library = []
yield
def refresh_dir(self, library_dir: Path, force_internal_tools: bool = False) -> Iterator[int]:
"""Scan a directory for files, and add those relative filenames to internal variables.
@@ -105,8 +101,8 @@ class RefreshTracker:
),
cwd=library_dir,
capture_output=True,
text=True,
shell=True,
encoding="UTF-8",
)
compiled_ignore_path.unlink()

View File

@@ -0,0 +1,544 @@
# Copyright (C) 2025 Travis Abendshien (CyanVoxel).
# Licensed under the GPL-3.0 License.
# Created for TagStudio: https://github.com/CyanVoxel/TagStudio
import json
from copy import deepcopy
from enum import StrEnum
from pathlib import Path
from typing import TYPE_CHECKING, Any, override
import structlog
import toml
from wcmatch import glob
from tagstudio.core.library.alchemy.fields import FieldID
if TYPE_CHECKING:
from tagstudio.core.library.alchemy.library import Library
from tagstudio.core.library.alchemy.models import Tag
logger = structlog.get_logger(__name__)
SCHEMA_VERSION = "schema_version"
TRIGGERS = "triggers"
ACTION = "action"
SOURCE_LOCATION = "source_location"
SOURCE_FILER = "source_filters"
SOURCE_FORMAT = "source_format"
FILENAME_PLACEHOLDER = "{filename}"
EXT_PLACEHOLDER = "{ext}"
TEMPLATE = "template"
KEY = "key"
SOURCE_TYPE = "source_type"
TS_TYPE = "ts_type"
NAME = "name"
VALUE = "value"
TAGS = "tags"
TEXT_LINE = "text_line"
TEXT_BOX = "text_box"
DATETIME = "datetime"
PREFIX = "prefix"
DELIMITER = "delimiter"
STRICT = "strict"
USE_CONTEXT = "use_context"
ON_MISSING = "on_missing"
JSON = "json"
XMP = "xmp"
EXIF = "exif"
ID3 = "id3"
MAP = "map"
INVERSE_MAP = "inverse_map"
class Actions(StrEnum):
IMPORT_DATA = "import_data"
ADD_DATA = "add_data"
class OnMissing(StrEnum):
PROMPT = "prompt"
CREATE = "create"
SKIP = "skip"
class Instruction:
def __init__(self) -> None:
pass
class AddFieldInstruction(Instruction):
def __init__(self, content, name: FieldID, field_type: str) -> None:
super().__init__()
self.content = content
self.name = name
self.type = field_type
@override
def __str__(self) -> str:
return str(self.content)
class AddTagInstruction(Instruction):
def __init__(
self,
tag_strings: list[str],
use_context: bool = True,
strict: bool = False,
on_missing: str = OnMissing.SKIP,
prefix: str = "",
) -> None:
super().__init__()
self.tag_strings = tag_strings
self.use_context = use_context
self.strict = strict
self.on_missing = on_missing
self.prefix = prefix
@override
def __str__(self) -> str:
return str(self.tag_strings)
def get_macro_name(
macro_path: Path,
) -> str:
"""Return the name of a macro, as read from the file.
Defaults to the filename if no name is declared or able to be read.
Args:
macro_path (Path): The full path of the macro file.
"""
name = macro_path.name
logger.info("[MacroParser] Parsing Macro for Name", macro_path=macro_path)
if not macro_path.exists():
logger.error("[MacroParser] Macro path does not exist", macro_path=macro_path)
return name
if not macro_path.exists():
logger.error("[MacroParser] Filepath does not exist", macro_path=macro_path)
return name
with open(macro_path) as f:
try:
macro = toml.load(f)
name = str(macro.get("name", name))
except toml.TomlDecodeError as e:
logger.error("[MacroParser] Could not parse macro", macro_path=macro_path, error=e)
logger.info("[MacroParser] Macro Name:", name=name, macro_path=macro_path)
return name
def parse_macro_file(
macro_path: Path,
filepath: Path,
) -> list[Instruction]:
"""Parse a macro file and return a list of actions for TagStudio to perform.
Args:
macro_path (Path): The full path of the macro file.
filepath (Path): The filepath associated with Entry being operated upon.
"""
results: list[Instruction] = []
logger.info("[MacroParser] Parsing Macro", macro_path=macro_path, filepath=filepath)
if not macro_path.exists():
logger.error("[MacroParser] Macro path does not exist", macro_path=macro_path)
return results
if not filepath.exists():
logger.error("[MacroParser] Filepath does not exist", filepath=filepath)
return results
with open(macro_path) as f:
try:
macro = toml.load(f)
except toml.TomlDecodeError as e:
logger.error("[MacroParser] Could not parse macro", macro_path=macro_path, error=e)
return results
logger.info(macro)
# Check Schema Version
schema_ver = macro.get(SCHEMA_VERSION, 0)
if not isinstance(schema_ver, int):
logger.error(
f"[MacroParser] Incorrect type for {SCHEMA_VERSION}, expected int",
schema_ver=schema_ver,
)
return results
if schema_ver != 1:
logger.error(f"[MacroParser] Unsupported Schema Version: {schema_ver}")
return results
logger.info(f"[MacroParser] Schema Version: {schema_ver}")
# Load Triggers
triggers = macro.get(TRIGGERS)
if triggers and not isinstance(triggers, list):
logger.error(
f"[MacroParser] Incorrect type for {TRIGGERS}, expected list", triggers=triggers
)
# Parse each action table
for table_key in macro:
if table_key in {SCHEMA_VERSION, TRIGGERS, NAME}:
continue
logger.info("[MacroParser] Parsing Table", table_key=table_key)
table: dict[str, Any] = macro[table_key]
logger.info(table.keys())
# TODO: Replace with table conditionals
source_filters: list[str] = table.get(SOURCE_FILER, [])
conditions_met: bool = False
if not source_filters:
conditions_met = True
else:
for filter_ in source_filters:
if glob.globmatch(filepath, filter_, flags=glob.GLOBSTAR):
logger.info(
f"[MacroParser] [{table_key}] "
f'{SOURCE_FILER}" Met filter requirement: {filter_}'
)
conditions_met = True
if not conditions_met:
logger.warning(
f"[MacroParser] [{table_key}] File didn't meet any path filter requirement",
filters=source_filters,
filepath=filepath,
)
continue
action: str = table.get(ACTION, "")
logger.info(f'[MacroParser] [{table_key}] "{ACTION}": {action}')
if action == Actions.IMPORT_DATA:
results.extend(_import_data(table, table_key, filepath))
elif action == Actions.ADD_DATA:
results.extend(_add_data(table))
logger.info(results)
return results
def _import_data(table: dict[str, Any], table_key: str, filepath: Path) -> list[Instruction]:
"""Process an import_data instruction and return a list of DataResults.
Importing data refers to importing data from a source external to TagStudio or any macro.
"""
results: list[Instruction] = []
source_format: str = str(table.get(SOURCE_FORMAT, ""))
if not source_format:
logger.error('[MacroParser] Parser Error: No "{SOURCE_FORMAT}" provided for table')
logger.info(f'[MacroParser] [{table_key}] "{SOURCE_FORMAT}": {source_format}')
raw_source_location = str(table.get(SOURCE_LOCATION, ""))
if FILENAME_PLACEHOLDER in raw_source_location:
# logger.info(f"[MacroParser] Filename placeholder detected: {raw_source_location}")
raw_source_location = raw_source_location.replace(FILENAME_PLACEHOLDER, str(filepath.stem))
if EXT_PLACEHOLDER in raw_source_location:
# logger.info(f"[MacroParser] File extension placeholder detected: {raw_source_location}")
# TODO: Make work with files that have multiple suffixes, like .tar.gz
raw_source_location = raw_source_location.replace(
EXT_PLACEHOLDER,
str(filepath.suffix)[1:], # Remove leading "."
)
if not raw_source_location.startswith(("/", "~")):
# The source location must be relative to the given filepath
source_location = filepath.parent / Path(raw_source_location)
else:
source_location = Path(raw_source_location)
logger.info(f'[MacroParser] [{table_key}] "{SOURCE_LOCATION}": {source_location}')
if not source_location.exists():
logger.error(
"[MacroParser] Sidecar filepath does not exist", source_location=source_location
)
return results
if source_format.lower() in JSON:
logger.info("[MacroParser] Parsing JSON sidecar file", sidecar_path=source_location)
with open(source_location, encoding="utf8") as f:
json_dump = json.load(f)
if not json_dump:
logger.warning("[MacroParser] Empty JSON sidecar file")
return results
logger.info(json_dump.items())
for table_key, table_value in table.items():
objects: list[dict[str, Any] | str] = []
content_value = ""
if isinstance(table_value, list):
objects = table_value
else:
objects.append(table_value)
for obj in objects:
if not isinstance(obj, dict):
continue
ts_type: str = str(obj.get(TS_TYPE, ""))
if not ts_type:
logger.warning(
f'[MacroParser] [{table_key}] No "{TS_TYPE}" key provided, skipping'
)
continue
json_key: str = str(obj.get(KEY, ""))
if json_key and json_key in json_dump:
json_value = json_dump.get(table_key)
logger.info(
f"[MacroParser] [{table_key}] Parsing JSON sidecar key",
key=table_key,
table_value=obj,
json_value=json_value,
)
content_value = json_value
if not json_value or isinstance(json_value, str) and not json_value.strip():
logger.warning(
f"[MacroParser] [{table_key}] Value for key was empty, skipping"
)
continue
elif table_key == TEMPLATE:
template: str = str(obj.get(TEMPLATE, ""))
logger.info(f"[MacroParser] [{table_key}] Filling template", template=template)
if not template:
logger.warning(f"[MacroParser] [{table_key}] Empty template, skipping")
continue
for k in json_dump:
template = _fill_template(template, json_dump, k)
logger.info(f"[MacroParser] [{table_key}] Template filled!", template=template)
content_value = template
else:
continue
# TODO: Determine if the source_type is even really ever needed
# source_type: str = str(tab_value.get(SOURCE_TYPE, ""))
str_name: str = str(obj.get(NAME, FieldID.NOTES.name))
name: FieldID = FieldID.NOTES
for fid in FieldID:
field_id = str_name.upper().replace(" ", "_")
if field_id == fid.name:
name = fid
continue
if ts_type == TAGS:
use_context: bool = bool(obj.get(USE_CONTEXT, False))
on_missing: str = str(obj.get(ON_MISSING, OnMissing.SKIP))
strict: bool = bool(obj.get(STRICT, False))
delimiter: str = ""
tag_strings: list[str] = []
# Tags are part of a single string
if isinstance(content_value, str):
delimiter = str(obj.get(DELIMITER, ""))
if delimiter:
# Split string based on given delimiter
tag_strings = content_value.split(delimiter)
else:
# If no delimiter is provided, assume the string is a single tag
tag_strings.append(content_value)
elif isinstance(content_value, bool):
tag_strings = [str(content_value)]
elif isinstance(content_value, list):
tag_strings = [str(v) for v in content_value] # pyright: ignore[reportUnknownVariableType]
else:
tag_strings = deepcopy([content_value])
# Remove a prefix (if given) from all tags strings (if any)
prefix = str(obj.get(PREFIX, ""))
if prefix:
tag_strings = [t.lstrip(prefix) for t in tag_strings]
# Swap any mapped tags for their new tag values
tag_map: dict[str, str] = obj.get(MAP, {})
mapped: list[str] = []
if tag_map:
for map_key, map_value in tag_map.items():
if map_key in tag_strings:
logger.info("[MacroParser] Mapping tag", old=map_key, new=map_value)
if isinstance(map_value, list):
mapped.extend(map_value)
else:
mapped.append(map_value)
tag_strings.remove(map_key)
tag_strings.extend(mapped)
tag_strings = [t.strip() for t in tag_strings if t.strip()]
logger.info("[MacroParser] Found tags", tag_strings=tag_strings)
results.append(
AddTagInstruction(
tag_strings=tag_strings,
use_context=use_context,
strict=strict,
on_missing=on_missing,
prefix="",
)
)
elif ts_type in (TEXT_LINE, TEXT_BOX, DATETIME):
results.append(
AddFieldInstruction(content=content_value, name=name, field_type=ts_type)
)
else:
logger.error('[MacroParser] [{table_key}] Unknown "{TS_TYPE}"', type=ts_type)
return results
def _add_data(table: dict[str, Any]) -> list[Instruction]:
"""Process an add_data instruction and return a list of DataResults.
Adding data refers to adding data defined inside a TagStudio macro, not from an external source.
"""
results: list[Instruction] = []
logger.error(table)
for table_value in table.values():
objects: list[dict[str, Any] | str] = []
if isinstance(table_value, list):
objects = table_value
else:
objects.append(table_value)
for obj in objects:
if not isinstance(obj, dict):
continue
ts_type = obj.get(TS_TYPE, "")
if ts_type == TAGS:
tag_strings: list[str] = obj.get(VALUE, [])
logger.error(tag_strings)
results.append(
AddTagInstruction(
tag_strings=tag_strings,
use_context=False,
)
)
elif ts_type in (TEXT_LINE, TEXT_BOX, DATETIME):
str_name: str = str(obj.get(NAME, FieldID.NOTES.name))
name: FieldID = FieldID.NOTES
for fid in FieldID:
field_id = str_name.upper().replace(" ", "_")
if field_id == fid.name:
name = fid
continue
content_value: str = str(obj.get(VALUE, ""))
results.append(
AddFieldInstruction(content=content_value, name=name, field_type=ts_type)
)
return results
def _fill_template(
template: str, table: dict[str, Any], table_key: str, template_key: str = ""
) -> str:
"""Replaces placeholder keys in a string with the value from that table.
Args:
template (str): The string containing placeholder keys.
Key names should be surrounded in curly braces. (e.g. "{key}").
Nested keys are accessed by separating the keys with a dot (e.g. "{key.nested_key}").
table (dict[str, Any]): The table to lookup values from.
table_key (str): The key to search for in the template and access the table with.
template_key (str): Similar to table_key, but is not used for accessing the table and
is instead used for representing the template key syntax for nested keys.
Used in recursive calls.
"""
key = template_key or table_key
value = table.get(table_key, "")
if isinstance(value, dict):
for v in value:
# NOTE: This f-string is the only thing defining how the nested key syntax works.
# If instead you wanted to use key[nested] syntax for example, use: f"{key}[{str(v)}]"
normalized_key: str = f"{key}.{str(v)}"
template = _fill_template(template, value, str(v), normalized_key)
value = str(value)
return template.replace(f"{{{key}}}", f"{value}")
def exec_instructions(library: "Library", entry_id: int, results: list[Instruction]) -> None:
for result in results:
if isinstance(result, AddTagInstruction):
_exec_add_tag(library, entry_id, result)
elif isinstance(result, AddFieldInstruction):
_exec_add_field(library, entry_id, result)
def _exec_add_tag(library: "Library", entry_id: int, result: AddTagInstruction):
tag_ids: set[int] = set()
for string in result.tag_strings:
if not string.strip():
continue
string = string.replace("_", " ")
base_and_parent = string.split("(")
parent = ""
base = base_and_parent[0].strip(" ")
parent_results: list[int] = []
if len(base_and_parent) > 1:
parent = base_and_parent[1].split(")")[0]
r: list[set[Tag]] = library.search_tags(name=parent, limit=-1)
if len(r) > 0:
parent_results = [t.id for t in r[0]]
# NOTE: The following code overlaps with update_tags() in tag_search.py
# Sort and prioritize the results
tag_results: list[set[Tag]] = library.search_tags(name=base, limit=-1)
results_0 = list(tag_results[0])
results_0.sort(key=lambda tag: tag.name.lower())
results_1 = list(tag_results[1])
results_1.sort(key=lambda tag: tag.name.lower())
raw_results = list(results_0 + results_1)
priority_results: set[Tag] = set()
for tag in raw_results:
if tag.name.lower().startswith(base.strip().lower()):
priority_results.add(tag)
all_results = sorted(list(priority_results), key=lambda tag: len(tag.name)) + [
r for r in raw_results if r not in priority_results
]
if parent and parent_results:
filtered_parents: list[Tag] = []
for tag in all_results:
for p_id in tag.parent_ids:
if p_id in parent_results:
filtered_parents.append(tag)
break
all_results = [t for t in all_results if t in filtered_parents]
final_tag: Tag | None = None
if len(all_results) > 0:
final_tag = all_results[0]
if final_tag:
tag_ids.add(final_tag.id)
if not tag_ids:
return
library.add_tags_to_entries(entry_id, tag_ids)
def _exec_add_field(library: "Library", entry_id: int, result: AddFieldInstruction):
library.add_field_to_entry(
entry_id, field_id=result.name, value=result.content, skip_on_exists=True
)

View File

@@ -33,7 +33,6 @@ class MediaType(str, Enum):
AUDIO_MIDI = "audio_midi"
AUDIO = "audio"
BLENDER = "blender"
CLIP_STUDIO_PAINT = "clip_studio_paint"
CODE = "code"
DATABASE = "database"
DISK_IMAGE = "disk_image"
@@ -47,11 +46,9 @@ class MediaType(str, Enum):
INSTALLER = "installer"
IWORK = "iwork"
MATERIAL = "material"
MDIPACK = "mdipack"
MODEL = "model"
OPEN_DOCUMENT = "open_document"
PACKAGE = "package"
PAINT_DOT_NET = "paint_dot_net"
PDF = "pdf"
PLAINTEXT = "plaintext"
PRESENTATION = "presentation"
@@ -178,7 +175,6 @@ class MediaCategories:
".blend31",
".blend32",
}
_CLIP_STUDIO_PAINT_SET: set[str] = {".clip"}
_CODE_SET: set[str] = {
".bat",
".cfg",
@@ -339,7 +335,6 @@ class MediaCategories:
_INSTALLER_SET: set[str] = {".appx", ".msi", ".msix"}
_IWORK_SET: set[str] = {".key", ".pages", ".numbers"}
_MATERIAL_SET: set[str] = {".mtl"}
_MDIPACK_SET: set[str] = {".mdp"}
_MODEL_SET: set[str] = {".3ds", ".fbx", ".obj", ".stl"}
_OPEN_DOCUMENT_SET: set[str] = {
".fodg",
@@ -363,7 +358,6 @@ class MediaCategories:
".pkg",
".xapk",
}
_PAINT_DOT_NET_SET: set[str] = {".pdn"}
_PDF_SET: set[str] = {".pdf"}
_PLAINTEXT_SET: set[str] = {
".csv",
@@ -458,12 +452,6 @@ class MediaCategories:
is_iana=False,
name="blender",
)
CLIP_STUDIO_PAINT_TYPES = MediaCategory(
media_type=MediaType.CLIP_STUDIO_PAINT,
extensions=_CLIP_STUDIO_PAINT_SET,
is_iana=False,
name="clip studio paint",
)
CODE_TYPES = MediaCategory(
media_type=MediaType.CODE,
extensions=_CODE_SET,
@@ -548,12 +536,6 @@ class MediaCategories:
is_iana=False,
name="material",
)
MDIPACK_TYPES = MediaCategory(
media_type=MediaType.MDIPACK,
extensions=_MDIPACK_SET,
is_iana=False,
name="mdipack",
)
MODEL_TYPES = MediaCategory(
media_type=MediaType.MODEL,
extensions=_MODEL_SET,
@@ -572,12 +554,6 @@ class MediaCategories:
is_iana=False,
name="package",
)
PAINT_DOT_NET_TYPES = MediaCategory(
media_type=MediaType.PAINT_DOT_NET,
extensions=_PAINT_DOT_NET_SET,
is_iana=False,
name="paint.net",
)
PDF_TYPES = MediaCategory(
media_type=MediaType.PDF,
extensions=_PDF_SET,
@@ -652,7 +628,6 @@ class MediaCategories:
AUDIO_MIDI_TYPES,
AUDIO_TYPES,
BLENDER_TYPES,
CLIP_STUDIO_PAINT_TYPES,
DATABASE_TYPES,
DISK_IMAGE_TYPES,
DOCUMENT_TYPES,
@@ -665,11 +640,9 @@ class MediaCategories:
INSTALLER_TYPES,
IWORK_TYPES,
MATERIAL_TYPES,
MDIPACK_TYPES,
MODEL_TYPES,
OPEN_DOCUMENT_TYPES,
PACKAGE_TYPES,
PAINT_DOT_NET_TYPES,
PDF_TYPES,
PLAINTEXT_TYPES,
PRESENTATION_TYPES,
@@ -706,7 +679,7 @@ class MediaCategories:
Args:
ext (str): File extension with a leading "." and in all lowercase.
media_cat (MediaCategory): The MediaCategory to check for extension membership.
media_cat (MediaCategory): The MediaCategory to to check for extension membership.
mime_fallback (bool): Flag to guess MIME type if no set matches are made.
"""
return media_cat.contains(ext, mime_fallback)

View File

@@ -1,210 +0,0 @@
# Copyright (C) 2024 Travis Abendshien (CyanVoxel).
# Licensed under the GPL-3.0 License.
# Created for TagStudio: https://github.com/CyanVoxel/TagStudio
"""The core classes and methods of TagStudio."""
import json
import re
from functools import lru_cache
from pathlib import Path
import requests
import structlog
from tagstudio.core.constants import TS_FOLDER_NAME
from tagstudio.core.library.alchemy.fields import FieldID
from tagstudio.core.library.alchemy.library import Library
from tagstudio.core.library.alchemy.models import Entry
from tagstudio.core.utils.types import unwrap
logger = structlog.get_logger(__name__)
MOST_RECENT_RELEASE_VERSION: str | None = None
class TagStudioCore:
def __init__(self):
self.lib: Library = Library()
@classmethod
def get_gdl_sidecar(cls, filepath: Path, source: str = "") -> dict:
"""Attempt to open and dump a Gallery-DL Sidecar file for the filepath.
Return a formatted object with notable values or an empty object if none is found.
"""
raise NotImplementedError("This method is currently broken and needs to be fixed.")
info = {}
_filepath = filepath.parent / (filepath.name + ".json")
# NOTE: This fixes an unknown (recent?) bug in Gallery-DL where Instagram sidecar
# files may be downloaded with indices starting at 1 rather than 0, unlike the posts.
# This may only occur with sidecar files that are downloaded separate from posts.
if source == "instagram" and not _filepath.is_file():
newstem = _filepath.stem[:-16] + "1" + _filepath.stem[-15:]
_filepath = _filepath.parent / (newstem + ".json")
logger.info("get_gdl_sidecar", filepath=filepath, source=source, sidecar=_filepath)
try:
with open(_filepath, encoding="utf8") as f:
json_dump = json.load(f)
if not json_dump:
return {}
if source == "twitter":
info[FieldID.DESCRIPTION] = json_dump["content"].strip()
info[FieldID.DATE_PUBLISHED] = json_dump["date"]
elif source == "instagram":
info[FieldID.DESCRIPTION] = json_dump["description"].strip()
info[FieldID.DATE_PUBLISHED] = json_dump["date"]
elif source == "artstation":
info[FieldID.TITLE] = json_dump["title"].strip()
info[FieldID.ARTIST] = json_dump["user"]["full_name"].strip()
info[FieldID.DESCRIPTION] = json_dump["description"].strip()
info[FieldID.TAGS] = json_dump["tags"]
# info["tags"] = [x for x in json_dump["mediums"]["name"]]
info[FieldID.DATE_PUBLISHED] = json_dump["date"]
elif source == "newgrounds":
# info["title"] = json_dump["title"]
# info["artist"] = json_dump["artist"]
# info["description"] = json_dump["description"]
info[FieldID.TAGS] = json_dump["tags"]
info[FieldID.DATE_PUBLISHED] = json_dump["date"]
info[FieldID.ARTIST] = json_dump["user"].strip()
info[FieldID.DESCRIPTION] = json_dump["description"].strip()
info[FieldID.SOURCE] = json_dump["post_url"].strip()
except Exception:
logger.exception("Error handling sidecar file.", path=_filepath)
return info
# def scrape(self, entry_id):
# entry = self.lib.get_entry(entry_id)
# if entry.fields:
# urls: list[str] = []
# if self.lib.get_field_index_in_entry(entry, 21):
# urls.extend([self.lib.get_field_attr(entry.fields[x], 'content')
# for x in self.lib.get_field_index_in_entry(entry, 21)])
# if self.lib.get_field_index_in_entry(entry, 3):
# urls.extend([self.lib.get_field_attr(entry.fields[x], 'content')
# for x in self.lib.get_field_index_in_entry(entry, 3)])
# # try:
# if urls:
# for url in urls:
# url = "https://" + url if 'https://' not in url else url
# html_doc = requests.get(url).text
# soup = bs(html_doc, "html.parser")
# print(soup)
# input()
# # except:
# # # print("Could not resolve URL.")
# # pass
@classmethod
def match_conditions(cls, lib: Library, entry_id: int) -> bool:
"""Match defined conditions against a file to add Entry data."""
# TODO - what even is this file format?
# TODO: Make this stored somewhere better instead of temporarily in this JSON file.
cond_file = unwrap(lib.library_dir) / TS_FOLDER_NAME / "conditions.json"
if not cond_file.is_file():
return False
entry: Entry = unwrap(lib.get_entry(entry_id))
try:
with open(cond_file, encoding="utf8") as f:
json_dump = json.load(f)
for c in json_dump["conditions"]:
match: bool = False
for path_c in c["path_conditions"]:
if Path(path_c).is_relative_to(entry.path):
match = True
break
if not match:
return False
if not c.get("fields"):
return False
fields = c["fields"]
entry_field_types = {field.type_key: field for field in entry.fields}
for field in fields:
is_new = field["id"] not in entry_field_types
field_key = field["id"]
if is_new:
lib.add_field_to_entry(
entry.id, field_id=field_key, value=field["value"]
)
else:
lib.update_entry_field(entry.id, field_key, field["value"])
except Exception:
logger.exception("Error matching conditions.", entry=entry)
return False
@classmethod
def build_url(cls, entry: Entry, source: str):
"""Try to rebuild a source URL given a specific filename structure."""
source = source.lower().replace("-", " ").replace("_", " ")
if "twitter" in source:
return cls._build_twitter_url(entry)
elif "instagram" in source:
return cls._build_instagram_url(entry)
@classmethod
def _build_twitter_url(cls, entry: Entry):
"""Build a Twitter URL given a specific filename structure.
Method expects filename to be formatted as 'USERNAME_TWEET-ID_INDEX_YEAR-MM-DD'
"""
try:
stubs = str(entry.path.name).rsplit("_", 3)
url = f"www.twitter.com/{stubs[0]}/status/{stubs[-3]}/photo/{stubs[-2]}"
return url
except Exception:
logger.exception("Error building Twitter URL.", entry=entry)
return ""
@classmethod
def _build_instagram_url(cls, entry: Entry):
"""Build an Instagram URL given a specific filename structure.
Method expects filename to be formatted as 'USERNAME_POST-ID_INDEX_YEAR-MM-DD'
"""
try:
stubs = str(entry.path.name).rsplit("_", 2)
# stubs[0] = stubs[0].replace(f"{author}_", '', 1)
# print(stubs)
# NOTE: Both Instagram usernames AND their ID can have underscores in them,
# so unless you have the exact username (which can change) on hand to remove,
# your other best bet is to hope that the ID is only 11 characters long, which
# seems to more or less be the case... for now...
url = f"www.instagram.com/p/{stubs[-3][-11:]}"
return url
except Exception:
logger.exception("Error building Instagram URL.", entry=entry)
return ""
@staticmethod
@lru_cache(maxsize=1)
def get_most_recent_release_version() -> str:
"""Get the version of the most recent Github release."""
resp = requests.get("https://api.github.com/repos/TagStudioDev/TagStudio/releases/latest")
assert resp.status_code == 200, "Could not fetch information on latest release."
data = resp.json()
tag: str = data["tag_name"]
assert tag.startswith("v")
version = tag[1:]
# the assert does not allow for prerelease/build,
# because the latest release should never have them
assert re.match(r"^\d+\.\d+\.\d+$", version) is not None, "Invalid version format."
return version

View File

@@ -2,6 +2,8 @@
# Licensed under the GPL-3.0 License.
# Created for TagStudio: https://github.com/CyanVoxel/TagStudio
# pyright: reportExplicitAny=false
import os
import subprocess
import sys

View File

@@ -2,8 +2,6 @@
# Licensed under the GPL-3.0 License.
# Created for TagStudio: https://github.com/CyanVoxel/TagStudio
import semver
def strip_punctuation(string: str) -> str:
"""Returns a given string stripped of all punctuation characters."""
@@ -34,18 +32,3 @@ def strip_web_protocol(string: str) -> str:
for prefix in prefixes:
string = string.removeprefix(prefix)
return string
def is_version_outdated(current: str, latest: str) -> bool:
vcur = semver.Version.parse(current)
vlat = semver.Version.parse(latest)
assert vlat.prerelease is None and vlat.build is None
if vcur.major != vlat.major:
return vcur.major < vlat.major
elif vcur.minor != vlat.minor:
return vcur.minor < vlat.minor
elif vcur.patch != vlat.patch:
return vcur.patch < vlat.patch
else:
return vcur.prerelease is not None or vcur.build is not None

View File

@@ -32,7 +32,7 @@ class FixIgnoredEntriesModal(FixIgnoredEntriesModalView):
lambda: (
self.update_ignored_count(),
self.driver.update_browsing_state(),
self.update_driver_widgets(),
self.driver.library_info_window.update_cleanup(),
self.refresh_ignored(),
)
)
@@ -52,13 +52,20 @@ class FixIgnoredEntriesModal(FixIgnoredEntriesModalView):
pw.setWindowTitle(Translations["library.scan_library.title"])
pw.update_label(Translations["entries.ignored.scanning"])
def update_driver_widgets():
if (
hasattr(self.driver, "library_info_window")
and self.driver.library_info_window.isVisible()
):
self.driver.library_info_window.update_cleanup()
pw.from_iterable_function(
self.tracker.refresh_ignored_entries,
None,
self.set_ignored_count,
self.update_ignored_count,
self.remove_modal.refresh_list,
self.update_driver_widgets,
update_driver_widgets,
)
def set_ignored_count(self):
@@ -81,13 +88,6 @@ class FixIgnoredEntriesModal(FixIgnoredEntriesModalView):
)
self.ignored_count_label.setText(f"<h3>{count_text}</h3>")
def update_driver_widgets(self):
if (
hasattr(self.driver, "library_info_window")
and self.driver.library_info_window.isVisible()
):
self.driver.library_info_window.update_cleanup()
@override
def showEvent(self, event: QtGui.QShowEvent) -> None: # type: ignore
self.update_ignored_count()

View File

@@ -1,39 +0,0 @@
import structlog
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QMessageBox
from tagstudio.core.constants import VERSION
from tagstudio.core.ts_core import TagStudioCore
from tagstudio.qt.models.palette import ColorType, UiColor, get_ui_color
from tagstudio.qt.translations import Translations
logger = structlog.get_logger(__name__)
class OutOfDateMessageBox(QMessageBox):
"""A warning dialog for if the TagStudio is not running under the latest release version."""
def __init__(self):
super().__init__()
title = Translations.format("version_modal.title")
self.setWindowTitle(title)
self.setIcon(QMessageBox.Icon.Warning)
self.setWindowModality(Qt.WindowModality.ApplicationModal)
self.setStandardButtons(
QMessageBox.StandardButton.Ignore | QMessageBox.StandardButton.Cancel
)
self.setDefaultButton(QMessageBox.StandardButton.Ignore)
# Enables the cancel button but hides it to allow for click X to close dialog
self.button(QMessageBox.StandardButton.Cancel).hide()
red = get_ui_color(ColorType.PRIMARY, UiColor.RED)
green = get_ui_color(ColorType.PRIMARY, UiColor.GREEN)
latest_release_version = TagStudioCore.get_most_recent_release_version()
status = Translations.format(
"version_modal.status",
installed_version=f"<span style='color:{red}'>{VERSION}</span>",
latest_release_version=f"<span style='color:{green}'>{latest_release_version}</span>",
)
self.setText(f"{Translations['version_modal.description']}<br><br>{status}")

View File

@@ -20,7 +20,6 @@ from PySide6.QtWidgets import (
from tagstudio.core.constants import VERSION, VERSION_BRANCH
from tagstudio.core.enums import Theme
from tagstudio.core.ts_core import TagStudioCore
from tagstudio.qt.models.palette import ColorType, UiColor, get_ui_color
from tagstudio.qt.previews.vendored import ffmpeg
from tagstudio.qt.resource_manager import ResourceManager
@@ -104,19 +103,6 @@ class AboutModal(QWidget):
self.system_info_layout = QFormLayout(self.system_info_widget)
self.system_info_layout.setLabelAlignment(Qt.AlignmentFlag.AlignRight)
# Version
version_title = QLabel("Version")
most_recent_release = TagStudioCore.get_most_recent_release_version()
version_content_style = self.form_content_style
if most_recent_release == VERSION:
version_content = QLabel(f"{VERSION}")
else:
version_content = QLabel(f"{VERSION} (Latest Release: {most_recent_release})")
version_content_style += "color: #d9534f;"
version_content.setStyleSheet(version_content_style)
version_content.setMaximumWidth(version_content.sizeHint().width())
self.system_info_layout.addRow(version_title, version_content)
# License
license_title = QLabel(f"{Translations['about.license']}")
license_content = QLabel("GPLv3")

View File

@@ -246,46 +246,6 @@ class BuildTagPanel(PanelWidget):
self.cat_layout.addWidget(self.cat_checkbox)
self.cat_layout.addWidget(self.cat_title)
# Hidden ---------------------------------------------------------------
self.hidden_widget = QWidget()
self.hidden_layout = QHBoxLayout(self.hidden_widget)
self.hidden_layout.setStretch(1, 1)
self.hidden_layout.setContentsMargins(0, 0, 0, 0)
self.hidden_layout.setSpacing(6)
self.hidden_layout.setAlignment(Qt.AlignmentFlag.AlignLeft)
self.hidden_title = QLabel(Translations["tag.is_hidden"])
self.hidden_checkbox = QCheckBox()
self.hidden_checkbox.setFixedSize(22, 22)
self.hidden_checkbox.setStyleSheet(
f"QCheckBox{{"
f"background: rgba{primary_color.toTuple()};"
f"color: rgba{text_color.toTuple()};"
f"border-color: rgba{border_color.toTuple()};"
f"border-radius: 6px;"
f"border-style:solid;"
f"border-width: 2px;"
f"}}"
f"QCheckBox::indicator{{"
f"width: 10px;"
f"height: 10px;"
f"border-radius: 2px;"
f"margin: 4px;"
f"}}"
f"QCheckBox::indicator:checked{{"
f"background: rgba{text_color.toTuple()};"
f"}}"
f"QCheckBox::hover{{"
f"border-color: rgba{highlight_color.toTuple()};"
f"}}"
f"QCheckBox::focus{{"
f"border-color: rgba{highlight_color.toTuple()};"
f"outline:none;"
f"}}"
)
self.hidden_layout.addWidget(self.hidden_checkbox)
self.hidden_layout.addWidget(self.hidden_title)
# Add Widgets to Layout ================================================
self.root_layout.addWidget(self.name_widget)
self.root_layout.addWidget(self.shorthand_widget)
@@ -296,7 +256,6 @@ class BuildTagPanel(PanelWidget):
self.root_layout.addWidget(self.color_widget)
self.root_layout.addWidget(QLabel("<h3>Properties</h3>"))
self.root_layout.addWidget(self.cat_widget)
self.root_layout.addWidget(self.hidden_widget)
self.parent_ids: set[int] = set()
self.alias_ids: list[int] = []
@@ -522,7 +481,7 @@ class BuildTagPanel(PanelWidget):
self.alias_names.clear()
last: QWidget | None = self.panel_save_button
last: QWidget = self.panel_save_button
for alias_id in self.alias_ids:
alias = self.lib.get_alias(self.tag.id, alias_id)
@@ -549,8 +508,7 @@ class BuildTagPanel(PanelWidget):
self.aliases_table.setCellWidget(row, 1, new_item)
self.aliases_table.setCellWidget(row, 0, remove_btn)
if last is not None:
self.setTabOrder(last, self.aliases_table.cellWidget(row, 1))
self.setTabOrder(last, self.aliases_table.cellWidget(row, 1))
self.setTabOrder(
self.aliases_table.cellWidget(row, 1), self.aliases_table.cellWidget(row, 0)
)
@@ -586,7 +544,6 @@ class BuildTagPanel(PanelWidget):
self.color_button.set_tag_color_group(None)
self.cat_checkbox.setChecked(tag.is_category)
self.hidden_checkbox.setChecked(tag.is_hidden)
def on_name_changed(self):
is_empty = not self.name_field.text().strip()
@@ -610,7 +567,6 @@ class BuildTagPanel(PanelWidget):
tag.color_namespace = self.tag_color_namespace
tag.color_slug = self.tag_color_slug
tag.is_category = self.cat_checkbox.isChecked()
tag.is_hidden = self.hidden_checkbox.isChecked()
logger.info("built tag", tag=tag)
return tag
@@ -625,4 +581,3 @@ class BuildTagPanel(PanelWidget):
self.setTabOrder(unwrap(self.panel_save_button), self.aliases_table.cellWidget(0, 1))
self.name_field.selectAll()
self.name_field.setFocus()
self._set_aliases()

View File

@@ -10,7 +10,7 @@ from datetime import datetime as dt
from warnings import catch_warnings
import structlog
from PySide6.QtCore import Qt
from PySide6.QtCore import Qt, Signal
from PySide6.QtGui import QGuiApplication
from PySide6.QtWidgets import (
QFrame,
@@ -22,6 +22,7 @@ from PySide6.QtWidgets import (
QWidget,
)
from tagstudio.core.constants import TAG_ARCHIVED, TAG_FAVORITE
from tagstudio.core.enums import Theme
from tagstudio.core.library.alchemy.enums import FieldTypeEnum
from tagstudio.core.library.alchemy.fields import (
@@ -50,6 +51,9 @@ logger = structlog.get_logger(__name__)
class FieldContainers(QWidget):
"""The Preview Panel Widget."""
favorite_updated = Signal(bool)
archived_updated = Signal(bool)
def __init__(self, library: Library, driver: "QtDriver"):
super().__init__()
@@ -127,7 +131,7 @@ class FieldContainers(QWidget):
container_index += 1
container_len += 1
if update_badges:
self.driver.emit_badge_signals({t.id for t in entry_tags})
self.emit_badge_signals({t.id for t in entry_tags})
# Write field container(s)
for index, field in enumerate(entry_fields, start=container_index):
@@ -238,7 +242,7 @@ class FieldContainers(QWidget):
self.driver.selected,
tag_ids=tags,
)
self.driver.emit_badge_signals(tags, emit_on_absent=False)
self.emit_badge_signals(tags, emit_on_absent=False)
def write_container(self, index: int, field: BaseField, is_mixed: bool = False):
"""Update/Create data for a FieldContainer.
@@ -489,3 +493,16 @@ class FieldContainers(QWidget):
result = remove_mb.exec_()
if result == QMessageBox.ButtonRole.ActionRole.value:
callback()
def emit_badge_signals(self, tag_ids: list[int] | set[int], emit_on_absent: bool = True):
"""Emit any connected signals for updating badge icons."""
logger.info("[emit_badge_signals] Emitting", tag_ids=tag_ids, emit_on_absent=emit_on_absent)
if TAG_ARCHIVED in tag_ids:
self.archived_updated.emit(True) # noqa: FBT003
elif emit_on_absent:
self.archived_updated.emit(False) # noqa: FBT003
if TAG_FAVORITE in tag_ids:
self.favorite_updated.emit(True) # noqa: FBT003
elif emit_on_absent:
self.favorite_updated.emit(False) # noqa: FBT003

View File

@@ -496,11 +496,13 @@ class ItemThumb(FlowWidget):
toggle_value: bool,
tag_id: int,
):
selected = self.driver._selected
if len(selected) == 1 and entry_id in selected:
self.driver.main_window.preview_panel.field_containers_widget.update_toggled_tag(
tag_id, toggle_value
)
if entry_id in self.driver.selected:
if len(self.driver.selected) == 1:
self.driver.main_window.preview_panel.field_containers_widget.update_toggled_tag(
tag_id, toggle_value
)
else:
pass
@override
def mouseMoveEvent(self, event: QMouseEvent) -> None: # type: ignore[misc]

View File

@@ -304,7 +304,6 @@ class TagSearchPanel(PanelWidget):
tag_widget.on_edit.disconnect()
tag_widget.on_remove.disconnect()
tag_widget.bg_button.clicked.disconnect()
tag_widget.search_for_tag_action.triggered.disconnect()
tag_id = tag.id
tag_widget.on_edit.connect(lambda t=tag: self.edit_tag(t))

View File

@@ -34,7 +34,9 @@ class TextWidget(FieldWidget):
# Regex from https://stackoverflow.com/a/6041965
def linkify(text: str):
url_pattern = r"(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#\-*]*[\w@?^=%&\/~+#\-*])" # noqa: E501
url_pattern = (
r"(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-*]*[\w@?^=%&\/~+#-*])"
)
return re.sub(
url_pattern,
lambda url: f'<a href="{url.group(0)}">{url.group(0)}</a>',

View File

@@ -1,13 +1,10 @@
# Licensed under the GPL-3.0 License.
# Created for TagStudio: https://github.com/CyanVoxel/TagStudio
import re
import structlog
from PySide6.QtGui import QAction
from PySide6.QtWidgets import QMenu
logger = structlog.get_logger(__name__)
def remove_mnemonic_marker(label: str) -> str:
"""Remove existing accelerator markers (&) from a label."""
@@ -28,31 +25,6 @@ def remove_mnemonic_marker(label: str) -> str:
return result
def get_wanted_mnemonics(text: str) -> list[str]:
matches = re.findall("(?:^|[^&])&([^&])", text)
return matches
def sanitise_mnemonics(actions: list[QAction]) -> None:
previous = []
for action in actions:
text = action.text()
m = get_wanted_mnemonics(text)
if len(m) == 0:
continue
elif len(m) > 1:
logger.warning("Found multiple wanted mnemonics, removing all", text=text)
action.setText(remove_mnemonic_marker(text))
continue
elif m[0] in previous:
logger.warning("Removing conflicting mnemonic", text=text)
action.setText(remove_mnemonic_marker(text))
continue
previous.append(m[0])
# Additional weight for first character in string
FIRST_CHARACTER_EXTRA_WEIGHT = 50
# Additional weight for the beginning of a word
@@ -125,9 +97,6 @@ def assign_mnemonics(menu: QMenu):
# Collect actions
actions = [a for a in menu.actions() if not a.isSeparator()]
# sanitise mnemonics to prevent deadlocks
sanitise_mnemonics(actions)
# Sequence map: mnemonic key -> QAction
sequence_to_action: dict[str, QAction] = {}

View File

@@ -3,17 +3,13 @@
# Created for TagStudio: https://github.com/CyanVoxel/TagStudio
import base64
import contextlib
import hashlib
import math
import os
import sqlite3
import struct
import tarfile
import xml.etree.ElementTree as ET
import zipfile
import zlib
from copy import deepcopy
from io import BytesIO
from pathlib import Path
@@ -23,6 +19,7 @@ from xml.etree.ElementTree import Element
import cv2
import numpy as np
import pillow_avif # noqa: F401 # pyright: ignore[reportUnusedImport]
import py7zr
import py7zr.io
import rarfile
@@ -113,28 +110,22 @@ class _SevenZipFile(py7zr.SevenZipFile):
return factory.get(name).read()
class _TarFile:
class _TarFile(tarfile.TarFile):
"""Wrapper around tarfile.TarFile to mimic zipfile.ZipFile's API."""
def __init__(self, filepath: Path, mode: Literal["r"]) -> None:
self.tar: tarfile.TarFile
self.filepath = filepath
self.mode = mode
super().__init__(filepath, mode)
def namelist(self) -> list[str]:
return self.tar.getnames()
return self.getnames()
def read(self, name: str) -> bytes:
return unwrap(self.tar.extractfile(name)).read()
def __enter__(self) -> "_TarFile":
self.tar = tarfile.open(self.filepath, self.mode).__enter__()
return self
def __exit__(self, *args) -> None:
self.tar.__exit__(*args)
return unwrap(self.extractfile(name)).read()
type _Archive_T = (
type[zipfile.ZipFile] | type[rarfile.RarFile] | type[_SevenZipFile] | type[_TarFile]
)
type _Archive = zipfile.ZipFile | rarfile.RarFile | _SevenZipFile | _TarFile
@@ -790,17 +781,25 @@ class ThumbRenderer(QObject):
)
im: Image.Image | None = None
try:
if (blend_image := blend_thumb(str(filepath))) is not None:
bg = Image.new("RGB", blend_image.size, color=bg_color)
bg.paste(blend_image, mask=blend_image.getchannel(3))
im = bg
else:
blend_image = blend_thumb(str(filepath))
bg = Image.new("RGB", blend_image.size, color=bg_color)
bg.paste(blend_image, mask=blend_image.getchannel(3))
im = bg
except (
AttributeError,
UnidentifiedImageError,
TypeError,
) as e:
if str(e) == "expected string or buffer":
logger.info(
f"[ThumbRenderer][BLENDER][INFO] {filepath.name} "
"Doesn't have an embedded thumbnail."
f"Doesn't have an embedded thumbnail. ({type(e).__name__})"
)
except Exception as e:
logger.error("Couldn't render thumbnail", filepath=filepath, error=type(e).__name__)
else:
logger.error("Couldn't render thumbnail", filepath=filepath, error=type(e).__name__)
return im
@staticmethod
@@ -908,7 +907,15 @@ class ThumbRenderer(QObject):
"""
im: Image.Image | None = None
try:
with ThumbRenderer.__open_archive(filepath, ext) as archive:
archiver: _Archive_T = zipfile.ZipFile
if ext == ".cb7":
archiver = _SevenZipFile
elif ext == ".cbr":
archiver = rarfile.RarFile
elif ext == ".cbt":
archiver = _TarFile
with archiver(filepath, "r") as archive:
if "ComicInfo.xml" in archive.namelist():
comic_info = ET.fromstring(archive.read("ComicInfo.xml"))
im = ThumbRenderer.__cover_from_comic_info(archive, comic_info, "FrontCover")
@@ -918,7 +925,13 @@ class ThumbRenderer(QObject):
)
if not im:
im = ThumbRenderer.__first_image(archive)
for file_name in archive.namelist():
if file_name.lower().endswith(
(".png", ".jpg", ".jpeg", ".gif", ".bmp", ".svg")
):
image_data = archive.read(file_name)
im = Image.open(BytesIO(image_data))
break
except Exception as e:
logger.error("Couldn't render thumbnail", filepath=filepath, error=type(e).__name__)
@@ -950,63 +963,6 @@ class ThumbRenderer(QObject):
return im
@staticmethod
def _archive_thumb(filepath: Path, ext: str) -> Image.Image | None:
"""Extract the first image found in the archive.
Args:
filepath (Path): The path to the archive.
ext (str): The file extension.
Returns:
Image: The first image found in the archive.
"""
im: Image.Image | None = None
try:
with ThumbRenderer.__open_archive(filepath, ext) as archive:
im = ThumbRenderer.__first_image(archive)
except Exception as e:
logger.error("Couldn't render thumbnail", filepath=filepath, error=type(e).__name__)
return im
@staticmethod
def __open_archive(filepath: Path, ext: str) -> _Archive:
"""Open an archive with its corresponding archiver.
Args:
filepath (Path): The path to the archive.
ext (str): The file extension.
Returns:
_Archive: The opened archive.
"""
archiver: type[_Archive] = zipfile.ZipFile
if ext in {".7z", ".cb7", ".s7z"}:
archiver = _SevenZipFile
elif ext in {".cbr", ".rar"}:
archiver = rarfile.RarFile
elif ext in {".cbt", ".tar", ".tgz"}:
archiver = _TarFile
return archiver(filepath, "r")
@staticmethod
def __first_image(archive: _Archive) -> Image.Image | None:
"""Find and extract the first renderable image in the archive.
Args:
archive (_Archive): The current archive.
Returns:
Image: The first renderable image in the archive.
"""
for file_name in archive.namelist():
if file_name.lower().endswith((".png", ".jpg", ".jpeg", ".gif", ".bmp", ".svg")):
image_data = archive.read(file_name)
return Image.open(BytesIO(image_data))
return None
def _font_short_thumb(self, filepath: Path, size: int) -> Image.Image | None:
"""Render a small font preview ("Aa") thumbnail from a font file.
@@ -1422,113 +1378,6 @@ class ThumbRenderer(QObject):
logger.error("Couldn't render thumbnail", filepath=filepath, error=type(e).__name__)
return im
@staticmethod
def _mdp_thumb(filepath: Path) -> Image.Image | None:
"""Extract the thumbnail from a .mdp file.
Args:
filepath (Path): The path of the .mdp file.
Returns:
Image: The embedded thumbnail.
"""
im: Image.Image | None = None
try:
with open(filepath, "rb") as f:
magic = struct.unpack("<7sx", f.read(8))[0]
if magic != b"mdipack":
return im
bin_header = struct.unpack("<LLL", f.read(12))
xml_header = ET.fromstring(f.read(bin_header[1]))
mdibin_count = len(xml_header.findall("./*Layer")) + 1
for _ in range(mdibin_count):
pac_header = struct.unpack("<3sxLLLL48s64s", f.read(132))
if not pac_header[6].startswith(b"thumb"):
f.seek(pac_header[3], os.SEEK_CUR)
continue
thumb_element = unwrap(xml_header.find("Thumb"))
dimensions = (
int(unwrap(thumb_element.get("width"))),
int(unwrap(thumb_element.get("height"))),
)
thumb_blob = f.read(pac_header[3])
if pac_header[2] == 1:
thumb_blob = zlib.decompress(thumb_blob, bufsize=pac_header[4])
im = Image.frombytes("RGBA", dimensions, thumb_blob, "raw", "BGRA")
break
except Exception as e:
logger.error("Couldn't render thumbnail", filepath=filepath, error=type(e).__name__)
return im
@staticmethod
def _pdn_thumb(filepath: Path) -> Image.Image | None:
"""Extract the base64-encoded thumbnail from a .pdn file header.
Args:
filepath (Path): The path of the .pdn file.
Returns:
Image: the decoded PNG thumbnail or None by default.
"""
im: Image.Image | None = None
with open(filepath, "rb") as f:
try:
# First 4 bytes are the magic number
if f.read(4) != b"PDN3":
return im
# Header length is a little-endian 24-bit int
header_size = struct.unpack("<i", f.read(3) + b"\x00")[0]
thumb_element = ET.fromstring(f.read(header_size)).find("./*thumb")
if thumb_element is None:
return im
encoded_png = thumb_element.get("png")
if encoded_png:
decoded_png = base64.b64decode(encoded_png)
im = Image.open(BytesIO(decoded_png))
if im.mode == "RGBA":
new_bg = Image.new("RGB", im.size, color="#1e1e1e")
new_bg.paste(im, mask=im.getchannel(3))
im = new_bg
except Exception as e:
logger.error("Couldn't render thumbnail", filepath=filepath, error=type(e).__name__)
return im
@staticmethod
def _clip_thumb(filepath: Path) -> Image.Image | None:
"""Extract the thumbnail from the SQLite database embedded in a .clip file.
Args:
filepath (Path): The path of the .clip file.
Returns:
Image: The embedded thumbnail, if extractable.
"""
im: Image.Image | None = None
try:
with open(filepath, "rb") as f:
blob = f.read()
sqlite_index = blob.find(b"SQLite format 3")
if sqlite_index == -1:
return im
with sqlite3.connect(":memory:") as conn:
conn.deserialize(blob[sqlite_index:])
thumbnail = conn.execute("SELECT ImageData FROM CanvasPreview").fetchone()
if thumbnail:
im = Image.open(BytesIO(thumbnail[0]))
conn.close()
except Exception as e:
logger.error("Couldn't render thumbnail", filepath=filepath, error=type(e).__name__)
return im
def render(
self,
timestamp: float,
@@ -1542,7 +1391,7 @@ class ThumbRenderer(QObject):
"""Render a thumbnail or preview image.
Args:
timestamp (float): The timestamp for which this job was dispatched.
timestamp (float): The timestamp for which this this job was dispatched.
filepath (str | Path): The path of the file to render a thumbnail for.
base_size (tuple[int,int]): The unmodified base size of the thumbnail.
pixel_ratio (float): The screen pixel ratio.
@@ -1655,7 +1504,7 @@ class ThumbRenderer(QObject):
save_to_file=file_name,
)
# If the normal renderer failed, fallback the defaults
# If the normal renderer failed, fallback the the defaults
# (with native non-cached sizing!)
if not image:
image = (
@@ -1752,7 +1601,7 @@ class ThumbRenderer(QObject):
"""Render a thumbnail or preview image.
Args:
timestamp (float): The timestamp for which this job was dispatched.
timestamp (float): The timestamp for which this this job was dispatched.
filepath (str | Path): The path of the file to render a thumbnail for.
base_size (tuple[int,int]): The unmodified base size of the thumbnail.
pixel_ratio (float): The screen pixel ratio.
@@ -1779,11 +1628,6 @@ class ThumbRenderer(QObject):
ext, MediaCategories.KRITA_TYPES, mime_fallback=True
):
image = self._krita_thumb(_filepath)
# Clip Studio Paint ============================================
elif MediaCategories.is_ext_in_category(
ext, MediaCategories.CLIP_STUDIO_PAINT_TYPES
):
image = self._clip_thumb(_filepath)
# VTF ==========================================================
elif MediaCategories.is_ext_in_category(
ext, MediaCategories.SOURCE_ENGINE_TYPES, mime_fallback=True
@@ -1860,15 +1704,6 @@ class ThumbRenderer(QObject):
ext, MediaCategories.PDF_TYPES, mime_fallback=True
):
image = self._pdf_thumb(_filepath, adj_size)
# Archives =====================================================
elif MediaCategories.is_ext_in_category(ext, MediaCategories.ARCHIVE_TYPES):
image = self._archive_thumb(_filepath, ext)
# MDIPACK ======================================================
elif MediaCategories.is_ext_in_category(ext, MediaCategories.MDIPACK_TYPES):
image = self._mdp_thumb(_filepath)
# Paint.NET ====================================================
elif MediaCategories.is_ext_in_category(ext, MediaCategories.PAINT_DOT_NET_TYPES):
image = self._pdn_thumb(_filepath)
# No Rendered Thumbnail ========================================
if not image:
raise NoRendererError

View File

@@ -32,7 +32,7 @@ from io import BufferedReader
from PIL import Image, ImageOps
def blend_extract_thumb(path) -> tuple[bytes | None, int, int]:
def blend_extract_thumb(path):
rend = b"REND"
test = b"TEST"
@@ -97,10 +97,8 @@ def blend_extract_thumb(path) -> tuple[bytes | None, int, int]:
return image_buffer, x, y
def blend_thumb(file_in) -> Image.Image | None:
def blend_thumb(file_in):
buf, width, height = blend_extract_thumb(file_in)
if buf is None:
return None
image = Image.frombuffer(
"RGBA",
(width, height),

View File

@@ -1,10 +1,9 @@
import math
import time
from collections.abc import Iterable
from pathlib import Path
from typing import TYPE_CHECKING, Any, override
from PySide6.QtCore import QPoint, QRect, QSize, Signal
from PySide6.QtCore import QPoint, QRect, QSize
from PySide6.QtGui import QPixmap
from PySide6.QtWidgets import QLayout, QLayoutItem, QScrollArea
@@ -20,9 +19,6 @@ if TYPE_CHECKING:
class ThumbGridLayout(QLayout):
# Id of first visible entry
visible_changed = Signal(int)
def __init__(self, driver: "QtDriver", scroll_area: QScrollArea) -> None:
super().__init__(None)
self.driver: QtDriver = driver
@@ -30,6 +26,10 @@ class ThumbGridLayout(QLayout):
self._item_thumbs: list[ItemThumb] = []
self._items: list[QLayoutItem] = []
# Entry.id -> _entry_ids[index]
self._selected: dict[int, int] = {}
# _entry_ids[index]
self._last_selected: int | None = None
self._entry_ids: list[int] = []
self._entries: dict[int, Entry] = {}
@@ -47,14 +47,12 @@ class ThumbGridLayout(QLayout):
# _entry_ids[StartIndex:EndIndex]
self._last_page_update: tuple[int, int] | None = None
self._scroll_to: int | None = None
def scroll_to(self, entry_id: int):
self._scroll_to = entry_id
def set_entries(self, entry_ids: list[int]):
self.scroll_area.verticalScrollBar().setValue(0)
self._selected.clear()
self._last_selected = None
self._entry_ids = entry_ids
self._entries.clear()
self._tag_entries.clear()
@@ -85,20 +83,90 @@ class ThumbGridLayout(QLayout):
self._last_page_update = None
def update_selected(self):
for item_thumb in self._item_thumbs:
value = item_thumb.item_id in self.driver._selected
item_thumb.thumb_button.set_selected(value)
def select_all(self):
self._selected.clear()
for index, id in enumerate(self._entry_ids):
self._selected[id] = index
self._last_selected = index
def add_tags(self, entry_ids: Iterable[int], tag_ids: Iterable[int]):
for entry_id in self._entry_items:
self._set_selected(entry_id)
def select_inverse(self):
selected = {}
for index, id in enumerate(self._entry_ids):
if id not in self._selected:
selected[id] = index
self._last_selected = index
for id in self._selected:
if id not in selected:
self._set_selected(id, value=False)
for id in selected:
self._set_selected(id)
self._selected = selected
def select_entry(self, entry_id: int):
if entry_id in self._selected:
index = self._selected.pop(entry_id)
if index == self._last_selected:
self._last_selected = None
self._set_selected(entry_id, value=False)
else:
try:
index = self._entry_ids.index(entry_id)
except ValueError:
index = -1
self._selected[entry_id] = index
self._last_selected = index
self._set_selected(entry_id)
def select_to_entry(self, entry_id: int):
index = self._entry_ids.index(entry_id)
if len(self._selected) == 0:
self.select_entry(entry_id)
return
if self._last_selected is None:
self._last_selected = min(self._selected.values(), key=lambda i: abs(index - i))
start = self._last_selected
self._last_selected = index
if start > index:
index, start = start, index
else:
index += 1
for i in range(start, index):
entry_id = self._entry_ids[i]
self._selected[entry_id] = i
self._set_selected(entry_id)
def clear_selected(self):
for entry_id in self._entry_items:
self._set_selected(entry_id, value=False)
self._selected.clear()
self._last_selected = None
def _set_selected(self, entry_id: int, value: bool = True):
if entry_id not in self._entry_items:
return
index = self._entry_items[entry_id]
if index < len(self._item_thumbs):
self._item_thumbs[index].thumb_button.set_selected(value)
def add_tags(self, entry_ids: list[int], tag_ids: list[int]):
for tag_id in tag_ids:
self._tag_entries.setdefault(tag_id, set()).update(entry_ids)
def remove_tags(self, entry_ids: Iterable[int], tag_ids: Iterable[int]):
def remove_tags(self, entry_ids: list[int], tag_ids: list[int]):
for tag_id in tag_ids:
self._tag_entries.setdefault(tag_id, set()).difference_update(entry_ids)
def _fetch_entries(self, ids: Iterable[int]):
def _fetch_entries(self, ids: list[int]):
ids = [id for id in ids if id not in self._entries]
entries = self.driver.lib.get_entries(ids)
for entry in entries:
@@ -195,24 +263,12 @@ class ThumbGridLayout(QLayout):
per_row, width_offset, height_offset = self._size(rect.right())
view_height = self.parentWidget().parentWidget().height()
offset = self.scroll_area.verticalScrollBar().value()
if self._scroll_to is not None:
try:
index = self._entry_ids.index(self._scroll_to)
value = (index // per_row) * height_offset
self.scroll_area.verticalScrollBar().setMaximum(value)
self.scroll_area.verticalScrollBar().setSliderPosition(value)
offset = value
except ValueError:
pass
self._scroll_to = None
visible_rows = math.ceil((view_height + (offset % height_offset)) / height_offset)
offset = int(offset / height_offset)
start = offset * per_row
end = start + (visible_rows * per_row)
self.visible_changed.emit(self._entry_ids[start])
# Load closest off screen rows
start -= per_row * 3
end += per_row * 3
@@ -307,7 +363,7 @@ class ThumbGridLayout(QLayout):
entry_id = self._entry_ids[i]
item_index = self._entry_items[entry_id]
item_thumb = self._item_thumbs[item_index]
item_thumb.thumb_button.set_selected(entry_id in self.driver._selected)
item_thumb.thumb_button.set_selected(entry_id in self._selected)
item_thumb.assign_badge(BadgeType.ARCHIVED, entry_id in self._tag_entries[TAG_ARCHIVED])
item_thumb.assign_badge(BadgeType.FAVORITE, entry_id in self._tag_entries[TAG_FAVORITE])
@@ -327,7 +383,7 @@ class ThumbGridLayout(QLayout):
@override
def itemAt(self, index: int) -> QLayoutItem:
if index >= len(self._items):
return None # pyright: ignore[reportReturnType]
return None
return self._items[index]
@override

View File

@@ -23,7 +23,7 @@ LANGUAGES = {
"French": "fr",
"German": "de",
"Hungarian": "hu",
"Italian": "it",
# "Italian": "it", # Minimal
"Japanese": "ja",
"Norwegian Bokmål": "nb_NO",
"Polish": "pl",

View File

@@ -17,17 +17,18 @@ import re
import sys
import time
from argparse import Namespace
from collections import OrderedDict
from pathlib import Path
from queue import Queue
from shutil import which
from typing import Generic, TypeVar
from unittest.mock import Mock
from warnings import catch_warnings
import structlog
from humanfriendly import format_size, format_timespan
from PySide6.QtCore import QObject, QSettings, Qt, QThread, QThreadPool, QTimer, Signal
from PySide6.QtGui import (
QAction,
QColor,
QDragEnterEvent,
QDragMoveEvent,
@@ -46,33 +47,40 @@ from PySide6.QtWidgets import (
QScrollArea,
)
import tagstudio.qt.resources_rc # noqa: F401
from tagstudio.core.constants import TAG_ARCHIVED, TAG_FAVORITE, VERSION, VERSION_BRANCH
# This import has side-effect of import PySide resources
import tagstudio.qt.resources_rc # noqa: F401 # pyright: ignore [reportUnusedImport]
from tagstudio.core.constants import (
MACROS_FOLDER_NAME,
TAG_ARCHIVED,
TAG_FAVORITE,
TS_FOLDER_NAME,
VERSION,
VERSION_BRANCH,
)
from tagstudio.core.driver import DriverMixin
from tagstudio.core.enums import MacroID, SettingItems, ShowFilepathOption
from tagstudio.core.enums import SettingItems, ShowFilepathOption
from tagstudio.core.library.alchemy.enums import (
BrowsingState,
FieldTypeEnum,
SortingModeEnum,
)
from tagstudio.core.library.alchemy.fields import FieldID
from tagstudio.core.library.alchemy.library import Library, LibraryStatus
from tagstudio.core.library.alchemy.models import Entry
from tagstudio.core.library.ignore import Ignore
from tagstudio.core.library.refresh import RefreshTracker
from tagstudio.core.macro_parser import (
Instruction,
exec_instructions,
get_macro_name,
parse_macro_file,
)
from tagstudio.core.media_types import MediaCategories
from tagstudio.core.query_lang.util import ParsingError
from tagstudio.core.ts_core import TagStudioCore
from tagstudio.core.utils.str_formatting import is_version_outdated, strip_web_protocol
from tagstudio.core.utils.types import unwrap
from tagstudio.qt.cache_manager import CacheManager
from tagstudio.qt.controllers.ffmpeg_missing_message_box import FfmpegMissingMessageBox
# this import has side-effect of import PySide resources
from tagstudio.qt.controllers.fix_ignored_modal_controller import FixIgnoredEntriesModal
from tagstudio.qt.controllers.ignore_modal_controller import IgnoreModal
from tagstudio.qt.controllers.library_info_window_controller import LibraryInfoWindow
from tagstudio.qt.controllers.out_of_date_message_box import OutOfDateMessageBox
from tagstudio.qt.global_settings import (
DEFAULT_GLOBAL_SETTINGS_PATH,
GlobalSettings,
@@ -98,6 +106,7 @@ from tagstudio.qt.resource_manager import ResourceManager
from tagstudio.qt.translations import Translations
from tagstudio.qt.utils.custom_runnable import CustomRunnable
from tagstudio.qt.utils.file_deleter import delete_file
from tagstudio.qt.utils.file_opener import open_file
from tagstudio.qt.utils.function_iterator import FunctionIterator
from tagstudio.qt.views.main_window import MainWindow
from tagstudio.qt.views.panel_modal import PanelModal
@@ -179,9 +188,6 @@ class QtDriver(DriverMixin, QObject):
SIGTERM = Signal()
favorite_updated = Signal(bool)
archived_updated = Signal(bool)
tag_manager_panel: PanelModal | None = None
color_manager_panel: TagColorManager | None = None
ignore_modal: PanelModal | None = None
@@ -207,8 +213,7 @@ class QtDriver(DriverMixin, QObject):
self.lib = Library()
self.rm: ResourceManager = ResourceManager()
self.args = args
self.frame_content: list[int] = [] # List of Entry IDs for the current query
self._selected: OrderedDict[int, None] = OrderedDict()
self.frame_content: list[int] = [] # List of Entry IDs on the current page
self.pages_count = 0
self.scrollbar_pos = 0
@@ -260,13 +265,7 @@ class QtDriver(DriverMixin, QObject):
@property
def selected(self) -> list[int]:
return list(self._selected.keys())
@property
def last_selected(self) -> int | None:
if len(self._selected) == 0:
return None
return reversed(self._selected).__next__()
return list(self.main_window.thumb_layout._selected.keys())
def __reset_navigation(self) -> None:
self.browsing_history = History(BrowsingState.show_all())
@@ -320,10 +319,20 @@ class QtDriver(DriverMixin, QObject):
pal: QPalette = self.app.palette()
pal.setColor(QPalette.ColorGroup.Normal, QPalette.ColorRole.Window, QColor("#1e1e1e"))
pal.setColor(QPalette.ColorGroup.Normal, QPalette.ColorRole.Button, QColor("#1e1e1e"))
pal.setColor(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Window, QColor("#232323"))
pal.setColor(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Button, QColor("#232323"))
pal.setColor(
QPalette.ColorGroup.Inactive, QPalette.ColorRole.ButtonText, QColor("#666666")
QPalette.ColorGroup.Inactive,
QPalette.ColorRole.Window,
QColor("#232323"),
)
pal.setColor(
QPalette.ColorGroup.Inactive,
QPalette.ColorRole.Button,
QColor("#232323"),
)
pal.setColor(
QPalette.ColorGroup.Inactive,
QPalette.ColorRole.ButtonText,
QColor("#666666"),
)
self.app.setPalette(pal)
@@ -369,9 +378,8 @@ class QtDriver(DriverMixin, QObject):
self.tag_manager_panel = PanelModal(
widget=TagDatabasePanel(self, self.lib),
title=Translations["tag_manager.title"],
done_callback=lambda checked=False: (
self.main_window.preview_panel.set_selection(self.selected, update_preview=False)
),
done_callback=lambda checked=False,
s=self.selected: self.main_window.preview_panel.set_selection(s, update_preview=False),
has_save=False,
)
@@ -382,9 +390,9 @@ class QtDriver(DriverMixin, QObject):
self.add_tag_modal = TagSearchModal(self.lib, is_tag_chooser=True)
self.add_tag_modal.tsp.set_driver(self)
self.add_tag_modal.tsp.tag_chosen.connect(
lambda chosen_tag: (
self.add_tags_to_selected_callback([chosen_tag]),
self.main_window.preview_panel.set_selection(self.selected),
lambda t, s=self.selected: (
self.add_tags_to_selected_callback(t),
self.main_window.preview_panel.set_selection(s),
)
)
@@ -547,6 +555,8 @@ class QtDriver(DriverMixin, QObject):
# endregion
# region Macros Menu ==========================================================
self.main_window.menu_bar.macros_menu.aboutToShow.connect(self.update_macros_menu)
def create_folders_tags_modal():
if not hasattr(self, "folders_modal"):
self.folders_modal = FoldersToTagsModal(self.lib, self)
@@ -568,26 +578,14 @@ class QtDriver(DriverMixin, QObject):
# endregion
# endregion
self.main_window.search_field.textChanged.connect(self.update_completions_list)
def on_visible_changed(entry_id: int | None):
current = self.browsing_history.current
page_index = current.page_index
if entry_id is None:
current.page_positions.pop(page_index)
else:
current.page_positions[page_index] = entry_id
self.main_window.thumb_layout.visible_changed.connect(on_visible_changed)
self.archived_updated.connect(
self.main_window.preview_panel.field_containers_widget.archived_updated.connect(
lambda hidden: self.update_badges(
{BadgeType.ARCHIVED: hidden}, origin_id=0, add_tags=False
)
)
self.favorite_updated.connect(
self.main_window.preview_panel.field_containers_widget.favorite_updated.connect(
lambda hidden: self.update_badges(
{BadgeType.FAVORITE: hidden}, origin_id=0, add_tags=False
)
@@ -598,7 +596,7 @@ class QtDriver(DriverMixin, QObject):
)
self.init_library_window()
self.migration_modal: JsonMigrationModal | None = None
self.migration_modal: JsonMigrationModal = None
path_result = self.evaluate_path(str(self.args.open).lstrip().rstrip())
if path_result.success and path_result.library_path:
@@ -613,9 +611,6 @@ class QtDriver(DriverMixin, QObject):
if not which(FFMPEG_CMD) or not which(FFPROBE_CMD):
FfmpegMissingMessageBox().show()
if is_version_outdated(VERSION, TagStudioCore.get_most_recent_release_version()):
OutOfDateMessageBox().exec()
self.app.exec()
self.shutdown()
@@ -649,7 +644,6 @@ class QtDriver(DriverMixin, QObject):
BrowsingState.from_search_query(self.main_window.search_field.text())
.with_sorting_mode(self.main_window.sorting_mode)
.with_sorting_direction(self.main_window.sorting_direction)
.with_show_hidden_entries(self.main_window.show_hidden_entries)
)
except ParsingError as e:
self.main_window.status_bar.showMessage(
@@ -682,12 +676,6 @@ class QtDriver(DriverMixin, QObject):
lambda: self.thumb_size_callback(self.main_window.thumb_size_combobox.currentIndex())
)
# Exclude hidden entries checkbox
self.main_window.show_hidden_entries_checkbox.setChecked(False) # Default: No
self.main_window.show_hidden_entries_checkbox.stateChanged.connect(
self.show_hidden_entries_callback
)
self.main_window.back_button.clicked.connect(lambda: self.navigation_callback(-1))
self.main_window.forward_button.clicked.connect(lambda: self.navigation_callback(1))
@@ -776,12 +764,12 @@ class QtDriver(DriverMixin, QObject):
self.main_window.setWindowTitle(self.base_title)
self.frame_content.clear()
self._selected.clear()
if self.color_manager_panel:
self.color_manager_panel.reset()
self.set_clipboard_menu_viability()
self.set_select_actions_visibility()
self.update_macros_menu(clear=True)
if hasattr(self, "library_info_window"):
self.library_info_window.close()
@@ -816,7 +804,8 @@ class QtDriver(DriverMixin, QObject):
end_time = time.time()
self.main_window.status_bar.showMessage(
Translations.format(
"status.library_closed", time_span=format_timespan(end_time - start_time)
"status.library_closed",
time_span=format_timespan(end_time - start_time),
)
)
@@ -834,19 +823,6 @@ class QtDriver(DriverMixin, QObject):
)
)
def emit_badge_signals(self, tag_ids: list[int] | set[int], emit_on_absent: bool = True):
"""Emit any connected signals for updating badge icons."""
logger.info("[emit_badge_signals] Emitting", tag_ids=tag_ids, emit_on_absent=emit_on_absent)
if TAG_ARCHIVED in tag_ids:
self.archived_updated.emit(True) # noqa: FBT003
elif emit_on_absent:
self.archived_updated.emit(False) # noqa: FBT003
if TAG_FAVORITE in tag_ids:
self.favorite_updated.emit(True) # noqa: FBT003
elif emit_on_absent:
self.favorite_updated.emit(False) # noqa: FBT003
def add_tag_action_callback(self):
panel = BuildTagPanel(self.lib)
self.modal = PanelModal(
@@ -871,7 +847,7 @@ class QtDriver(DriverMixin, QObject):
def select_all_action_callback(self):
"""Set the selection to all visible items."""
self.select_all()
self.main_window.thumb_layout.select_all()
self.set_clipboard_menu_viability()
self.set_select_actions_visibility()
@@ -880,7 +856,7 @@ class QtDriver(DriverMixin, QObject):
def select_inverse_action_callback(self):
"""Invert the selection of all visible items."""
self.select_inverse()
self.main_window.thumb_layout.select_inverse()
self.set_clipboard_menu_viability()
self.set_select_actions_visibility()
@@ -888,17 +864,16 @@ class QtDriver(DriverMixin, QObject):
self.main_window.preview_panel.set_selection(self.selected, update_preview=False)
def clear_select_action_callback(self):
self.clear_selected()
self.main_window.thumb_layout.clear_selected()
self.set_select_actions_visibility()
self.set_clipboard_menu_viability()
self.main_window.preview_panel.set_selection(self.selected)
def add_tags_to_selected_callback(self, tag_ids: list[int]):
selected: list[int] = self.selected
selected = self.selected
self.main_window.thumb_layout.add_tags(selected, tag_ids)
self.lib.add_tags_to_entries(selected, tag_ids)
self.emit_badge_signals(tag_ids)
def delete_files_callback(self, origin_path: str | Path, origin_id: int | None = None):
"""Callback to send on or more files to the system trash.
@@ -918,7 +893,6 @@ class QtDriver(DriverMixin, QObject):
deleted_count: int = 0
selected = self.selected
library_dir = unwrap(self.lib.library_dir)
if len(selected) <= 1 and origin_path:
origin_id_ = origin_id
@@ -927,7 +901,7 @@ class QtDriver(DriverMixin, QObject):
origin_id_ = selected[0]
pending.append((origin_id_, Path(origin_path)))
else:
elif (len(selected) > 1) or (len(selected) <= 1):
for item in selected:
entry = self.lib.get_entry(item)
filepath: Path = entry.path
@@ -944,30 +918,39 @@ class QtDriver(DriverMixin, QObject):
e_id, f = tup
if (origin_path == f) or (not origin_path):
self.main_window.preview_panel.preview_thumb.media_player.stop()
if delete_file(self.lib.library_dir / f):
self.main_window.status_bar.showMessage(
Translations.format(
"status.deleting_file", i=i, count=len(pending), path=f
)
)
self.main_window.status_bar.repaint()
self.lib.remove_entries([e_id])
msg = Translations.format(
"status.deleting_file", i=i, count=len(pending), path=f
)
self.main_window.status_bar.showMessage(msg)
self.main_window.status_bar.repaint()
self.lib.remove_entries([e_id])
if delete_file(library_dir / f):
deleted_count += 1
selected.clear()
self.clear_select_action_callback()
self.clear_select_action_callback()
self.update_browsing_state()
if deleted_count > 0:
self.update_browsing_state()
self.main_window.preview_panel.set_selection(selected)
if deleted_count > 0 and deleted_count != len(pending):
msg = Translations.format("status.deleted_partial_warning", count=deleted_count)
else:
index = min(deleted_count, 2)
msg = (
Translations["status.deleted_none"],
Translations["status.deleted_file_singular"],
Translations.format("status.deleted_file_plural", count=deleted_count),
)[index]
self.main_window.status_bar.showMessage(msg)
if len(selected) <= 1 and deleted_count == 0:
self.main_window.status_bar.showMessage(Translations["status.deleted_none"])
elif len(selected) <= 1 and deleted_count == 1:
self.main_window.status_bar.showMessage(
Translations.format("status.deleted_file_plural", count=deleted_count)
)
elif len(selected) > 1 and deleted_count == 0:
self.main_window.status_bar.showMessage(Translations["status.deleted_none"])
elif len(selected) > 1 and deleted_count < len(selected):
self.main_window.status_bar.showMessage(
Translations.format("status.deleted_partial_warning", count=deleted_count)
)
elif len(selected) > 1 and deleted_count == len(selected):
self.main_window.status_bar.showMessage(
Translations.format("status.deleted_file_plural", count=deleted_count)
)
self.main_window.status_bar.repaint()
def delete_file_confirmation(self, count: int, filename: Path | None = None) -> int:
@@ -1088,7 +1071,7 @@ class QtDriver(DriverMixin, QObject):
pw.show()
iterator.value.connect(
lambda _count: (
lambda: (
pw.update_label(
Translations.format(
"entries.running.dialog.new_entries", total=f"{files_count:n}"
@@ -1115,56 +1098,42 @@ class QtDriver(DriverMixin, QObject):
# # self.run_macro('autofill', id)
yield 0
def run_macros(self, name: MacroID, entry_ids: list[int]):
"""Run a specific Macro on a group of given entry_ids."""
def run_macros(self, macro_name: str, entry_ids: list[int]):
"""Run a Macro on a list of entires."""
for entry_id in entry_ids:
self.run_macro(name, entry_id)
self.run_macro(macro_name, entry_id)
self.main_window.preview_panel.refresh_selection(update_preview=False)
def run_macro(self, name: MacroID, entry_id: int):
"""Run a specific Macro on an Entry given a Macro name."""
entry: Entry = unwrap(self.lib.get_entry(entry_id))
full_path = unwrap(self.lib.library_dir) / entry.path
source = "" if entry.path.parent == Path(".") else entry.path.parts[0].lower()
def run_macro(self, macro_name: str, entry_id: int):
"""Run a Macro on a single entry."""
if not self.lib.library_dir:
logger.error("[QtDriver] Can't run macro when no library is open!")
return
entry: Entry | None = self.lib.get_entry(entry_id)
if not entry:
logger.error(f"[QtDriver] No Entry given ID {entry_id}!")
return
full_path = self.lib.library_dir / entry.path
# macro_path = Path(
# self.lib.library_dir / TS_FOLDER_NAME / MACROS_FOLDER_NAME / f"{macro_name}.toml"
# )
macro_path = Path(self.lib.library_dir / TS_FOLDER_NAME / MACROS_FOLDER_NAME / macro_name)
logger.info(
"running macro",
source=source,
macro=name,
"[QtDriver] Running Macro",
macro_path=macro_name,
entry_id=entry.id,
grid_idx=entry_id,
)
if name == MacroID.AUTOFILL:
for macro_id in MacroID:
if macro_id == MacroID.AUTOFILL:
continue
self.run_macro(macro_id, entry_id)
results: list[Instruction] = parse_macro_file(macro_path, full_path)
exec_instructions(self.lib, entry_id, results)
elif name == MacroID.SIDECAR:
parsed_items = TagStudioCore.get_gdl_sidecar(full_path, source)
for field_id, value in parsed_items.items():
if isinstance(value, list) and len(value) > 0 and isinstance(value[0], str):
value = self.lib.tag_from_strings(value)
self.lib.add_field_to_entry(
entry.id,
field_id=field_id,
value=value,
)
elif name == MacroID.BUILD_URL:
url = TagStudioCore.build_url(entry, source)
if url is not None:
self.lib.add_field_to_entry(entry.id, field_id=FieldID.SOURCE, value=url)
elif name == MacroID.MATCH:
TagStudioCore.match_conditions(self.lib, entry.id)
elif name == MacroID.CLEAN_URL:
for field in entry.text_fields:
if field.type.type == FieldTypeEnum.TEXT_LINE and field.value:
self.lib.update_entry_field(
entry_ids=entry.id,
field=field,
content=strip_web_protocol(field.value),
)
@property
def sorting_direction(self) -> bool:
"""Whether to Sort the results in ascending order."""
return self.main_window.sorting_direction_combobox.currentData()
def sorting_direction_callback(self):
logger.info("Sorting Direction Changed", ascending=self.main_window.sorting_direction)
@@ -1196,14 +1165,6 @@ class QtDriver(DriverMixin, QObject):
min(self.main_window.thumb_size // spacing_divisor, min_spacing)
)
def show_hidden_entries_callback(self):
logger.info("Show Hidden Entries Changed", exclude=self.main_window.show_hidden_entries)
self.update_browsing_state(
self.browsing_history.current.with_show_hidden_entries(
self.main_window.show_hidden_entries
)
)
def mouse_navigation(self, event: QMouseEvent):
# print(event.button())
if event.button() == Qt.MouseButton.ForwardButton:
@@ -1214,16 +1175,16 @@ class QtDriver(DriverMixin, QObject):
def page_move(self, value: int, absolute=False) -> None:
logger.info("page_move", value=value, absolute=absolute)
current = self.browsing_history.current
if not absolute:
current.page_index += value
else:
current.page_index = value
current.page_index = clamp(current.page_index, 0, self.pages_count - 1)
value += self.browsing_history.current.page_index
self.browsing_history.push(
self.browsing_history.current.with_page_index(clamp(value, 0, self.pages_count - 1))
)
# TODO: Re-allow selecting entries across multiple pages at once.
# This works fine with additive selection but becomes a nightmare with bridging.
# TODO: The back mouse button will no longer move to the previous page and
# instead goto the previous query passing a new state to update_browsing_state
# will get this behaviour back but would mess with persisting page scroll positions
self.update_browsing_state()
def navigation_callback(self, delta: int) -> None:
@@ -1284,18 +1245,24 @@ class QtDriver(DriverMixin, QObject):
"""
logger.info("[QtDriver] Selecting Items:", item_id=item_id, append=append, bridge=bridge)
if append:
self.select_entry(item_id)
self.main_window.thumb_layout.select_entry(item_id)
elif bridge:
self.select_to_entry(item_id)
self.main_window.thumb_layout.select_to_entry(item_id)
else:
self.clear_selected()
self.select_entry(item_id)
self.main_window.thumb_layout.clear_selected()
self.main_window.thumb_layout.select_entry(item_id)
self.set_clipboard_menu_viability()
self.set_select_actions_visibility()
self.main_window.preview_panel.set_selection(self.selected)
# TODO: Remove?
def set_macro_menu_viability(self):
# for action in self.macros_menu.actions():
# action.setDisabled(not self.selected)
pass
def set_clipboard_menu_viability(self):
if len(self.selected) == 1:
self.main_window.menu_bar.copy_fields_action.setEnabled(True)
@@ -1328,7 +1295,8 @@ class QtDriver(DriverMixin, QObject):
def update_completions_list(self, text: str) -> None:
matches = re.search(
r"((?:.* )?)(mediatype|filetype|path|tag|tag_id):(\"?[A-Za-z0-9\ \t]+\"?)?", text
r"((?:.* )?)(mediatype|filetype|path|tag|tag_id):(\"?[A-Za-z0-9\ \t]+\"?)?",
text,
)
completion_list: list[str] = []
@@ -1404,14 +1372,7 @@ class QtDriver(DriverMixin, QObject):
self.thumb_job_queue.all_tasks_done.notify_all()
self.thumb_job_queue.not_full.notify_all()
page_size = (
len(self.frame_content) if self.settings.infinite_scroll else self.settings.page_size
)
page = self.browsing_history.current.page_index
start = page * page_size
end = min(start + page_size, len(self.frame_content))
self.main_window.thumb_layout.set_entries(self.frame_content[start:end])
self.main_window.thumb_layout.set_entries(self.frame_content)
self.main_window.thumb_layout.update()
self.main_window.update()
@@ -1426,11 +1387,8 @@ class QtDriver(DriverMixin, QObject):
add_tags(bool): Flag determining if tags associated with the badges need to be added to
the items. Defaults to True.
"""
entry_ids = (
set(self._selected.keys())
if (origin_id == 0 or origin_id in self._selected)
else {origin_id}
)
item_ids = self.selected if (not origin_id or origin_id in self.selected) else [origin_id]
pending_entries: dict[BadgeType, list[int]] = {}
logger.info(
"[QtDriver][update_badges] Updating ItemThumb badges",
@@ -1439,9 +1397,12 @@ class QtDriver(DriverMixin, QObject):
add_tags=add_tags,
)
for it in self.main_window.thumb_layout._item_thumbs:
if it.item_id in entry_ids:
if it.item_id in item_ids:
for badge_type, value in badge_values.items():
if add_tags:
if not pending_entries.get(badge_type):
pending_entries[badge_type] = []
pending_entries[badge_type].append(it.item_id)
it.toggle_item_tag(it.item_id, value, BADGE_TAGS[badge_type])
it.assign_badge(badge_type, value)
@@ -1450,9 +1411,10 @@ class QtDriver(DriverMixin, QObject):
logger.info(
"[QtDriver][update_badges] Adding tags to updated entries",
pending_entries=entry_ids,
pending_entries=pending_entries,
)
for badge_type, value in badge_values.items():
entry_ids = pending_entries.get(badge_type, [])
tag_ids = [BADGE_TAGS[badge_type]]
if value:
@@ -1480,7 +1442,8 @@ class QtDriver(DriverMixin, QObject):
# search the library
start_time = time.time()
Ignore.get_patterns(self.lib.library_dir, include_global=True)
results = self.lib.search_library(self.browsing_history.current, page_size=0)
page_size = 0 if self.settings.infinite_scroll else self.settings.page_size
results = self.lib.search_library(self.browsing_history.current, page_size)
logger.info("items to render", count=len(results))
end_time = time.time()
@@ -1495,17 +1458,9 @@ class QtDriver(DriverMixin, QObject):
# update page content
self.frame_content = results.ids
page_index = self.browsing_history.current.page_index
if state is None:
entry_id = self.browsing_history.current.page_positions.get(page_index)
else:
entry_id = self.last_selected
if entry_id is not None:
self.main_window.thumb_layout.scroll_to(entry_id)
self.update_thumbs()
# update pagination
page_size = 0 if self.settings.infinite_scroll else self.settings.page_size
if page_size > 0:
self.pages_count = math.ceil(results.total_count / page_size)
else:
@@ -1580,6 +1535,53 @@ class QtDriver(DriverMixin, QObject):
self.cached_values.sync()
self.update_recent_lib_menu()
def update_macros_menu(self, clear: bool = False):
if not self.main_window.menu_bar.macros_menu or isinstance(
self.main_window.menu_bar.macros_menu, Mock
): # NOTE: Needed for tests?
return
# Create actions for each macro
actions: list[QAction] = []
if self.lib.library_dir and not clear:
macros_path = self.lib.library_dir / TS_FOLDER_NAME / MACROS_FOLDER_NAME
for f in macros_path.glob("*"):
logger.info(f)
if f.suffix != ".toml" or f.is_dir() or f.name.startswith("._"):
continue
action = QAction(
get_macro_name(f), self.main_window.menu_bar.macros_menu.parentWidget()
)
action.triggered.connect(
lambda checked=False, name=f.name: (self.run_macros(name, self.selected)),
)
actions.append(action)
open_folder = QAction("Open Macros Folder...", self.main_window.menu_bar.macros_menu)
open_folder.triggered.connect(self.open_macros_folder)
actions.append(open_folder)
if clear:
open_folder.setEnabled(False)
# Clear previous actions
for action in self.main_window.menu_bar.macros_menu.actions():
self.main_window.menu_bar.macros_menu.removeAction(action)
# Add new actions
for action in actions:
self.main_window.menu_bar.macros_menu.addAction(action)
self.main_window.menu_bar.macros_menu.addSeparator()
self.main_window.menu_bar.macros_menu.addAction(open_folder)
def open_macros_folder(self):
if not self.lib.library_dir:
return
path = self.lib.library_dir / TS_FOLDER_NAME / MACROS_FOLDER_NAME
path.mkdir(exist_ok=True)
open_file(path, file_manager=True, is_dir=True)
def open_settings_modal(self):
SettingsPanel.build_modal(self).show()
@@ -1612,7 +1614,10 @@ class QtDriver(DriverMixin, QObject):
except Exception as e:
logger.error(e)
open_status = LibraryStatus(
success=False, library_path=path, message=type(e).__name__, msg_description=str(e)
success=False,
library_path=path,
message=type(e).__name__,
msg_description=str(e),
)
self.cache_manager = CacheManager(
path,
@@ -1659,6 +1664,7 @@ class QtDriver(DriverMixin, QObject):
library_dir_display = self.lib.library_dir.name
self.update_libs_list(path)
self.update_macros_menu()
self.main_window.setWindowTitle(
Translations.format(
"app.title",
@@ -1685,7 +1691,7 @@ class QtDriver(DriverMixin, QObject):
self.main_window.menu_bar.folders_to_tags_action.setEnabled(True)
self.main_window.menu_bar.library_info_action.setEnabled(True)
self.main_window.preview_panel.set_selection(self.selected)
self.main_window.preview_panel.set_selection()
# page (re)rendering, extract eventually
initial_state = BrowsingState(
@@ -1721,45 +1727,3 @@ class QtDriver(DriverMixin, QObject):
event.accept()
else:
event.ignore()
def select_all(self):
self._selected = OrderedDict.fromkeys(self.frame_content)
self.main_window.thumb_layout.update_selected()
def select_inverse(self):
selected = OrderedDict()
for id in self.frame_content:
if id not in self._selected:
selected[id] = None
self._selected = selected
self.main_window.thumb_layout.update_selected()
def select_entry(self, entry_id: int):
if entry_id in self._selected:
self._selected.pop(entry_id)
else:
self._selected[entry_id] = None
self.main_window.thumb_layout.update_selected()
def select_to_entry(self, entry_id: int):
if len(self._selected) == 0:
self.select_entry(entry_id)
return
last_selected = reversed(self._selected).__next__()
start = self.frame_content.index(last_selected)
end = self.frame_content.index(entry_id)
if start > end:
end, start = start, end
else:
end += 1
for i in range(start, end):
entry_id = self.frame_content[i]
self._selected[entry_id] = None
self.main_window.thumb_layout.update_selected()
def clear_selected(self):
self._selected.clear()
self.main_window.thumb_layout.update_selected()

View File

@@ -20,13 +20,19 @@ from tagstudio.core.utils.types import unwrap
logger = structlog.get_logger(__name__)
def open_file(path: str | Path, file_manager: bool = False, windows_start_command: bool = False):
def open_file(
path: str | Path,
file_manager: bool = False,
is_dir: bool = False,
windows_start_command: bool = False,
):
"""Open a file in the default application or file explorer.
Args:
path (str): The path to the file to open.
file_manager (bool, optional): Whether to open the file in the file manager
(e.g. Finder on macOS). Defaults to False.
is_dir (bool): True if the path points towards a directory, false if a file.
windows_start_command (bool): Flag to determine if the older 'start' command should be used
on Windows for opening files. This fixes issues on some systems in niche cases.
"""
@@ -77,7 +83,7 @@ def open_file(path: str | Path, file_manager: bool = False, windows_start_comman
if sys.platform == "darwin":
command_name = "open"
command_args = [str(path)]
if file_manager:
if file_manager and not is_dir:
# will reveal in Finder
command_args.append("-R")
else:

View File

@@ -11,15 +11,13 @@ import structlog
from PIL import Image, ImageQt
from PySide6 import QtCore
from PySide6.QtCore import QMetaObject, QSize, QStringListModel, Qt
from PySide6.QtGui import QAction, QColor, QPixmap
from PySide6.QtGui import QAction, QPixmap
from PySide6.QtWidgets import (
QCheckBox,
QComboBox,
QCompleter,
QFrame,
QGridLayout,
QHBoxLayout,
QLabel,
QLayout,
QLineEdit,
QMainWindow,
@@ -36,14 +34,12 @@ from PySide6.QtWidgets import (
)
from tagstudio.core.enums import ShowFilepathOption
from tagstudio.core.library.alchemy.enums import SortingModeEnum, TagColorEnum
from tagstudio.core.library.alchemy.enums import SortingModeEnum
from tagstudio.qt.controllers.preview_panel_controller import PreviewPanel
from tagstudio.qt.helpers.color_overlay import theme_fg_overlay
from tagstudio.qt.mixed.landing import LandingWidget
from tagstudio.qt.mixed.pagination import Pagination
from tagstudio.qt.mixed.tag_widget import get_border_color, get_highlight_color, get_text_color
from tagstudio.qt.mnemonics import assign_mnemonics
from tagstudio.qt.models.palette import ColorType, get_tag_color
from tagstudio.qt.platform_strings import trash_term
from tagstudio.qt.resource_manager import ResourceManager
from tagstudio.qt.thumb_grid_layout import ThumbGridLayout
@@ -582,57 +578,7 @@ class MainWindow(QMainWindow):
self.extra_input_layout = QHBoxLayout()
self.extra_input_layout.setObjectName("extra_input_layout")
primary_color = QColor(get_tag_color(ColorType.PRIMARY, TagColorEnum.DEFAULT))
border_color = get_border_color(primary_color)
highlight_color = get_highlight_color(primary_color)
text_color: QColor = get_text_color(primary_color, highlight_color)
## Show hidden entries checkbox
self.show_hidden_entries_widget = QWidget()
self.show_hidden_entries_layout = QHBoxLayout(self.show_hidden_entries_widget)
self.show_hidden_entries_layout.setStretch(1, 1)
self.show_hidden_entries_layout.setContentsMargins(0, 0, 0, 0)
self.show_hidden_entries_layout.setSpacing(6)
self.show_hidden_entries_layout.setAlignment(Qt.AlignmentFlag.AlignLeft)
self.show_hidden_entries_title = QLabel(Translations["home.show_hidden_entries"])
self.show_hidden_entries_checkbox = QCheckBox()
self.show_hidden_entries_checkbox.setFixedSize(22, 22)
self.show_hidden_entries_checkbox.setStyleSheet(
f"QCheckBox{{"
f"background: rgba{primary_color.toTuple()};"
f"color: rgba{text_color.toTuple()};"
f"border-color: rgba{border_color.toTuple()};"
f"border-radius: 6px;"
f"border-style:solid;"
f"border-width: 2px;"
f"}}"
f"QCheckBox::indicator{{"
f"width: 10px;"
f"height: 10px;"
f"border-radius: 2px;"
f"margin: 4px;"
f"}}"
f"QCheckBox::indicator:checked{{"
f"background: rgba{text_color.toTuple()};"
f"}}"
f"QCheckBox::hover{{"
f"border-color: rgba{highlight_color.toTuple()};"
f"}}"
f"QCheckBox::focus{{"
f"border-color: rgba{highlight_color.toTuple()};"
f"outline:none;"
f"}}"
)
self.show_hidden_entries_checkbox.setChecked(False) # Default: No
self.show_hidden_entries_layout.addWidget(self.show_hidden_entries_checkbox)
self.show_hidden_entries_layout.addWidget(self.show_hidden_entries_title)
self.extra_input_layout.addWidget(self.show_hidden_entries_widget)
## Spacer
## left side spacer
self.extra_input_layout.addItem(
QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
)
@@ -766,8 +712,3 @@ class MainWindow(QMainWindow):
@property
def thumb_size(self) -> int:
return self.thumb_size_combobox.currentData()
@property
def show_hidden_entries(self) -> bool:
"""Whether to show entries tagged with hidden tags."""
return self.show_hidden_entries_checkbox.isChecked()

View File

@@ -64,6 +64,7 @@ class PreviewPanelView(QWidget):
super().__init__()
self.lib = library
self._selected = []
self.__thumb = PreviewThumb(self.lib, driver)
self.__file_attrs = FileAttributes(self.lib, driver)
self._fields = FieldContainers(
@@ -132,7 +133,11 @@ class PreviewPanelView(QWidget):
def _set_selection_callback(self):
raise NotImplementedError()
def set_selection(self, selected: list[int], update_preview: bool = True):
def refresh_selection(self, update_preview: bool = True):
"""Refresh the panel's widgets to use current library data."""
self.set_selection(self._selected, update_preview)
def set_selection(self, selected: list[int] | None = None, update_preview: bool = True):
"""Render the panel widgets with the newest data from the Library.
Args:
@@ -140,10 +145,10 @@ class PreviewPanelView(QWidget):
update_preview (bool): Should the file preview be updated?
(Only works with one or more items selected)
"""
self._selected = selected
self._selected = selected or []
try:
# No Items Selected
if len(selected) == 0:
if len(self._selected) == 0:
self.__thumb.hide_preview()
self.__file_attrs.update_stats()
self.__file_attrs.update_date_label()
@@ -152,8 +157,8 @@ class PreviewPanelView(QWidget):
self.add_buttons_enabled = False
# One Item Selected
elif len(selected) == 1:
entry_id = selected[0]
elif len(self._selected) == 1:
entry_id = self._selected[0]
entry: Entry = unwrap(self.lib.get_entry(entry_id))
filepath: Path = unwrap(self.lib.library_dir) / entry.path
@@ -169,10 +174,10 @@ class PreviewPanelView(QWidget):
self.add_buttons_enabled = True
# Multiple Selected Items
elif len(selected) > 1:
elif len(self._selected) > 1:
# items: list[Entry] = [self.lib.get_entry_full(x) for x in self.driver.selected]
self.__thumb.hide_preview() # TODO: Render mixed selection
self.__file_attrs.update_multi_selection(len(selected))
self.__file_attrs.update_multi_selection(len(self._selected))
self.__file_attrs.update_date_label()
self._fields.hide_containers() # TODO: Allow for mixed editing

View File

@@ -1,111 +0,0 @@
{
"about.documentation": "Dokumentasyon",
"about.license": "Lisensiya",
"about.module.found": "Makit-i",
"about.title": "Mahitungod sa TagStudio",
"color.color_border": "Gamita ang Ikaduha nga Kolor alang sa Utlanan",
"color.import_pack": "Pag-angkat og Putos sa Kolor",
"color.name": "Ngalan",
"color.namespace.delete.title": "Panas-i ang Bansag sa Kolor",
"color.new": "Bag-o nga Kolor",
"color.placeholder": "Kolor",
"color.primary": "Nag-una nga Kolor",
"color.primary_required": "Nag-una nga Kolor (Kinahanglan)",
"color.secondary": "Ikaduha nga Kolor",
"color.title.no_color": "Walay Kolor",
"color_manager.title": "Pag-atiman ang Mga Kolor sa Timailhan",
"edit.color_manager": "Pag-atiman sa Mga Kolor sa Timailhan",
"entries.generic.refresh_alt": "Pag&lab-as",
"entries.tags": "Mga Timailhan",
"field.edit": "Usba ang Uma",
"file.dimensions": "Sukod",
"file.duration": "Gilay-on",
"generic.add": "Pagdugang",
"generic.apply": "Ibutang",
"generic.apply_alt": "I&butang",
"generic.cancel": "Paphai",
"generic.cancel_alt": "&Paphai",
"generic.close": "Tak-opi",
"generic.continue": "Padayon",
"generic.copy": "Hulari",
"generic.cut": "Hagbasi",
"generic.delete": "Panas-i",
"generic.delete_alt": "Pa&nas-i",
"generic.done": "Human na",
"generic.done_alt": "&Human na",
"generic.edit": "Usba",
"generic.edit_alt": "&Usba",
"generic.filename": "Ngalan sa limbas",
"generic.missing": "Nawala",
"generic.navigation.back": "Pagbalik",
"generic.navigation.next": "Pagpadayon",
"generic.no": "Dili",
"generic.none": "Wala",
"generic.overwrite": "Puliha",
"generic.overwrite_alt": "Pu&liha",
"generic.paste": "Pagbun-ag",
"generic.remove": "Tangtangi",
"generic.remove_alt": "&Tangtangi",
"generic.rename": "Ilisdi ang ngalan",
"generic.rename_alt": "Ilisdi ang &ngalan",
"generic.reset": "Pag-usab",
"generic.save": "Pagtipig",
"generic.skip": "Lab-aki",
"generic.skip_alt": "Lab-a&ki",
"generic.yes": "Oo",
"home.search": "Pagpangita",
"json_migration.heading.aliases": "Mga dagmay:",
"json_migration.heading.colors": "Mga kolor:",
"json_migration.heading.differ": "Sumpaki",
"json_migration.heading.match": "Mibagay",
"json_migration.heading.names": "Mga ngalan:",
"json_migration.heading.paths": "Mga dalan:",
"json_migration.heading.shorthands": "Mga laktod",
"library.name": "Librarya",
"library_info.cleanup": "Paghinlo",
"library_info.stats": "Estatistika",
"library_info.stats.colors": "Mga Kolor sa Timailhan",
"library_info.stats.entries": "Mga sulod:",
"library_info.stats.fields": "Mga uma:",
"library_info.stats.macros": "Mga makro:",
"library_info.stats.namespaces": "Mga bansag:",
"library_info.stats.tags": "Mga timailhan:",
"library_object.name": "Ngalan",
"media_player.autoplay": "Gawing modula",
"media_player.loop": "Paglakong",
"menu.edit": "Usba",
"menu.edit.new_tag": "Bag-o nga &Timailhan",
"menu.file": "Li&mbas",
"menu.help": "&Tabang",
"menu.help.about": "Mahitungod sa",
"menu.macros": "&Mga makro:",
"menu.select": "Pilia",
"menu.settings": "Mga Himutangan...",
"menu.tools": "Mga &himan",
"menu.view": "Paglanta&w",
"menu.window": "Tamboanan",
"namespace.create.title": "Paghimo og Bansag",
"namespace.new.button": "Bag-o nga Bansag",
"namespace.new.prompt": "Paghimo og Bag-o nga Bansag aron Makasugod og Dugang og",
"preview.ignored": "Linguglingogon",
"settings.dateformat.english": "Inggles",
"settings.dateformat.international": "Internasyonal",
"settings.dateformat.system": "Sistema",
"settings.language": "Pinulongan",
"settings.splash.option.random": "Sinalagma",
"settings.tag_click_action.open_edit": "Usba ang Timailhan",
"settings.theme.dark": "Dulom",
"settings.theme.label": "Hilisgotan:",
"settings.theme.light": "Hayag",
"settings.theme.system": "Sistema",
"settings.title": "Mga Himutangan",
"sorting.direction.ascending": "Nagasaka",
"sorting.direction.descending": "Naganaog",
"sorting.mode.random": "Sinalagma",
"status.library_version_expected": "Dinahom:",
"status.library_version_found": "Makit-i",
"status.results": "Mga agi",
"tag.choose_color": "Pamili og Kolor sa Timailhan",
"tag.color": "Kolor",
"tag.edit": "Usba ang Timailhan"
}

View File

@@ -140,7 +140,6 @@
"home.search_entries": "Nach Einträgen suchen",
"home.search_library": "Bibliothek durchsuchen",
"home.search_tags": "Tags suchen",
"home.show_hidden_entries": "Zeige versteckte Einträge an",
"home.thumbnail_size": "Größe des Vorschaubildes",
"home.thumbnail_size.extra_large": "Extra Große Vorschau",
"home.thumbnail_size.large": "Große Vorschau",
@@ -181,27 +180,27 @@
"library.name": "Bibliothek",
"library.refresh.scanning.plural": "Durchsuche Verzeichnisse nach neuen Dateien...\n{searched_count} Dateien durchsucht, {found_count} neue Dateien gefunden",
"library.refresh.scanning.singular": "Durchsuche Verzeichnisse nach neuen Dateien...\n{searched_count} Datei durchsucht, {found_count} neue Datei gefunden",
"library.refresh.scanning_preparing": "Überprüfe Verzeichnisse auf neue Dateien...\nBereite vor...",
"library.refresh.title": "Verzeichnisse werden aktualisiert",
"library.scan_library.title": "Bibliothek wird scannen",
"library_info.cleanup": "Aufräumen",
"library_info.cleanup.backups": "Bibliotheks-Backups:",
"library_info.cleanup.dupe_files": "Doppelte Dateien:",
"library_info.cleanup.ignored": "Ausgeblendete Einträge:",
"library_info.cleanup.legacy_json": "Übriggebliebene Legacybibliotheken:",
"library_info.cleanup.unlinked": "Nicht verlinkte Einträge:",
"library_info.stats": "Statistiken",
"library_info.cleanup": "Aufräumen",
"library_info.stats.colors": "Tagfarben:",
"library_info.stats.entries": "Einträge:",
"library_info.stats.fields": "Felder:",
"library_info.stats.macros": "Macros:",
"library_info.stats.namespaces": "Namespaces:",
"library_info.stats.tags": "Tags:",
"library_info.stats": "Statistiken",
"library_info.title": "Bibliothek '{library_dir}'",
"library_info.version": "Formatsversion der Bibliothek: {version}",
"library_object.name": "Name",
"library_object.name_required": "Name (erforderlich)",
"library_object.name": "Name",
"library_object.slug": "ID Schlüssel",
"library.refresh.scanning_preparing": "Überprüfe Verzeichnisse auf neue Dateien...\nBereite vor...",
"library.refresh.title": "Verzeichnisse werden aktualisiert",
"library.scan_library.title": "Bibliothek wird scannen",
"library_object.slug_required": "ID Schlüssel (erforderlich)",
"macros.running.dialog.new_entries": "Führe konfigurierte Makros für {count}/{total} neue Dateieinträge aus...",
"macros.running.dialog.title": "Ausführen von Makros bei neuen Einträgen",
@@ -267,7 +266,6 @@
"settings.generate_thumbs": "Generiere Thumbnails",
"settings.global": "Globale Einstellungen",
"settings.hourformat.label": "24-Stunden Format",
"settings.infinite_scroll": "Unendliches Scrollen",
"settings.language": "Sprache",
"settings.library": "Bibliothekseinstellungen",
"settings.open_library_on_start": "Bibliothek zum Start öffnen",
@@ -275,13 +273,7 @@
"settings.restart_required": "Bitte TagStudio neustarten, um Änderungen anzuwenden.",
"settings.show_filenames_in_grid": "Dateinamen in Raster darstellen",
"settings.show_recent_libraries": "Zuletzt verwendete Bibliotheken anzeigen",
"settings.splash.label": "Start Bildschrim",
"settings.splash.option.classic": "Klassisch (9.0)",
"settings.splash.option.default": "Standard",
"settings.splash.option.goo_gears": "Open Source (9.4)",
"settings.splash.option.ninety_five": "'95 (9.5)",
"settings.splash.option.random": "Zufall",
"settings.tag_click_action.add_to_search": "Tag zur Suche hinzufügen",
"settings.tag_click_action.add_to_search": "Tag zu Suche hinzufügen",
"settings.tag_click_action.label": "Tag Klick Aktion",
"settings.tag_click_action.open_edit": "Tag bearbeiten",
"settings.tag_click_action.set_search": "Nach Tag suchen",
@@ -289,7 +281,6 @@
"settings.theme.label": "Design:",
"settings.theme.light": "Hell",
"settings.theme.system": "System",
"settings.thumb_cache_size.label": "Thumbnail Cache Größe",
"settings.title": "Einstellungen",
"settings.zeropadding.label": "Platzsparendes Datum",
"sorting.direction.ascending": "Aufsteigend",
@@ -326,7 +317,6 @@
"tag.disambiguation.tooltip": "Diesen Tag zur Unterscheidung verwenden",
"tag.edit": "Tag bearbeiten",
"tag.is_category": "Ist Kategorie",
"tag.is_hidden": "Ist versteckt",
"tag.name": "Name",
"tag.new": "Neuer Tag",
"tag.parent_tags": "Übergeordnete Tags",

View File

@@ -1,164 +0,0 @@
{
"about.config_path": "Διαδρομή Config",
"about.description": "ο TagStudio είναι μια εφαρμογή οργάνωσης φωτογραφιών και αρχείων με ένα υποκείμενο σύστημα βασισμένο σε ετικέτες που εστιάζει στην παροχή ελευθερίας και ευελιξίας στον χρήστη. Χωρίς ιδιόκτητα προγράμματα ή μορφές, χωρίς πληθώρα αρχείων και χωρίς πλήρη ανατροπή της δομής του συστήματος αρχείων σας.",
"about.documentation": "Τεκμηρίωση",
"about.license": "Άδεια χρήσης",
"about.module.found": "Βρέθηκε",
"about.title": "Πληροφορίες για το TagStudio",
"about.website": "Ιστοσελίδα",
"app.git": "Git Commit",
"app.pre_release": "Pre-Release",
"app.title": "{base_title} Βιβλιοθήκη \"{library_dir} «««",
"color.color_border": "Χρησιμοποιήστε το δευτερεύον χρώμα για τα σύνορα",
"color.confirm_delete": "Είστε βέβαιοι ότι θέλετε να διαγράψετε το χρώμα \"{color_name}\";",
"color.delete": "Διαγράψτε Tag",
"color.import_pack": "Εισαγωγή Πακέτου Χρωμάτων",
"color.name": "Όνομα",
"color.namespace.delete.prompt": "Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτόν τον χώρο ονόματος χρωμάτων; Αυτό θα διαγράψει όλα τα χρώματα στο χώρο του ονόματος μαζί του!",
"color.namespace.delete.title": "Διαγράψτε Color Namespace",
"color.new": "Νέο χρώμα",
"color.placeholder": "Χρώμα",
"color.primary": "Βασικό Χρώμα",
"color.primary_required": "Βασικό Χρώμα (Υποχρεωτικό)",
"color.secondary": "Δευτερεύον Χρώμα",
"color.title.no_color": "Χωρίς Χρώμα",
"color_manager.title": "Διαχείριση χρωμάτων Tag",
"dependency.missing.title": "{dependency} Δεν υπάρχει",
"drop_import.description": "Τα παρακάτω αρχεία ταιριάζουν μονοπάτια αρχείων που υπάρχουν ήδη στη βιβλιοθήκη",
"drop_import.duplicates_choice.plural": "Τα παρακάτω αρχεία {count} ταιριάζουν μονοπάτια αρχείων που υπάρχουν ήδη στη βιβλιοθήκη.",
"drop_import.duplicates_choice.singular": "Το παρακάτω αρχείο ταιριάζει με ένα μονοπάτι αρχείου που υπάρχει ήδη στη βιβλιοθήκη.",
"drop_import.progress.label.initial": "Εισαγωγή νέων αρχείων...",
"drop_import.progress.label.plural": "Εισαγωγή νέων αρχείων...\n{count} Αρχεία Εισήχθησαν.{suffix}",
"drop_import.progress.label.singular": "Εισαγωγή νέων αρχείων...\n1 Αρχείο εισήχθη.{suffix}",
"drop_import.progress.window_title": "Εισαγωγή αρχείων",
"drop_import.title": "Αντικρουόμενα αρχεία(s)",
"edit.color_manager": "Διαχείριση χρωμάτων Tag",
"edit.copy_fields": "Αντιγραφή πεδίων",
"edit.paste_fields": "Επικόλληση πεδίων",
"edit.tag_manager": "Διαχείριση Tags",
"entries.duplicate.merge": "Συγχώνευση διπλότυπων εγγραφών",
"entries.duplicate.merge.label": "Συγχώνευση διπλότυπων εγγραφών...",
"entries.duplicate.refresh": "Ανανέωση διπλότυπων εγγραφών",
"entries.duplicates.description": "Ως διπλότυπες εγγραφές ορίζονται οι πολλαπλές εγγραφές που υποδεικνύουν το ίδιο αρχείο στον δίσκο. Η συγχώνευση αυτών θα συνδυάσει τις ετικέτες και τα μεταδεδομένα από όλα τα διπλότυπα σε μια ενιαία, ενοποιημένη εγγραφή. Αυτές δεν πρέπει να συγχέονται με τα \"διπλότυπα αρχεία\", τα οποία είναι αντίγραφα των ίδιων των αρχείων σας εκτός του TagStudio.",
"entries.generic.refresh_alt": "&Ανανέωση",
"entries.generic.remove.removing": "Αφαίρεση εγγραφών",
"entries.generic.remove.removing_count": "Αφαίρεση {count} εγγραφών...",
"entries.ignored.description": "Οι εγγραφές αρχείων θεωρούνται \"αγνοημένες\" εάν προστέθηκαν στη βιβλιοθήκη πριν ενημερωθούν οι κανόνες εξαίρεσης του χρήστη (μέσω του αρχείου '.ts_ignore') για να τα αποκλείσουν. Τα αγνοημένα αρχεία διατηρούνται στη βιβλιοθήκη από προεπιλογή, προκειμένου να αποφευχθεί η τυχαία απώλεια δεδομένων κατά την ενημέρωση των κανόνων εξαίρεσης.",
"entries.ignored.ignored_count": "Αγνοημένες εγγραφές: {count}",
"entries.ignored.remove": "Αφαίρεση αγνοημένων εγγραφών",
"entries.ignored.remove_alt": "Α&φαίρεση αγνοημένων εγγραφών",
"entries.ignored.scanning": "Σάρωση βιβλιοθήκης για αγνοημένες εγγραφές...",
"entries.ignored.title": "Διόρθωση αγνοημένων εγγραφών",
"entries.mirror": "&Αντικατοπτρισμός",
"entries.mirror.confirmation": "Είστε βέβαιοι ότι θέλετε να αντικατοπτρίσετε τις ακόλουθες {count} εγγραφές;",
"entries.mirror.label": "Αντικατοπτρισμός {idx}/{total} εγγραφών...",
"entries.mirror.title": "Αντικατοπτρισμός εγγραφών",
"entries.mirror.window_title": "Αντικατοπτρισμός εγγραφών",
"entries.remove.plural.confirm": "Είστε βέβαιοι ότι θέλετε να αφαιρέσετε αυτές τις <b>{count}</b> εγγραφές από τη βιβλιοθήκη σας; Δεν θα διαγραφεί κανένα αρχείο από τον δίσκο.",
"entries.remove.singular.confirm": "Είστε βέβαιοι ότι θέλετε να αφαιρέσετε αυτή την εγγραφή από τη βιβλιοθήκη σας; Δεν θα διαγραφεί κανένα αρχείο από τον δίσκο.",
"entries.running.dialog.new_entries": "Προσθήκη {total} νέων εγγραφών αρχείων...",
"entries.running.dialog.title": "Προσθήκη νέων εγγραφών αρχείων",
"entries.tags": "Tags",
"entries.unlinked.description": "Κάθε εγγραφή της βιβλιοθήκης είναι συνδεδεμένη με ένα αρχείο σε έναν από τους καταλόγους σας. Εάν ένα αρχείο που είναι συνδεδεμένο με μια εγγραφή μετακινηθεί ή διαγραφεί εκτός του TagStudio, τότε θεωρείται αποσυνδεδεμένο.<br><br>Οι αποσυνδεδεμένες εγγραφές μπορούν να επανασυνδεθούν αυτόματα μέσω αναζήτησης στους καταλόγους σας ή να διαγραφούν, εάν το επιθυμείτε.",
"entries.unlinked.relink.attempting": "Προσπάθεια επανασύνδεσης {index}/{unlinked_count} εγγραφών, {fixed_count} επανασυνδέθηκαν επιτυχώς",
"entries.unlinked.relink.manual": "&Χειροκίνητη επανασύνδεση",
"entries.unlinked.relink.title": "Επανασύνδεση εγγραφών",
"entries.unlinked.remove": "Αφαίρεση αποσυνδεδεμένων εγγραφών",
"entries.unlinked.remove_alt": "Α&φαίρεση αποσυνδεδεμένων εγγραφών",
"entries.unlinked.scanning": "Σάρωση βιβλιοθήκης για αποσυνδεδεμένες εγγραφές...",
"entries.unlinked.search_and_relink": "&Αναζήτηση && Επανασύνδεση",
"entries.unlinked.title": "Διόρθωση αποσυνδεδεμένων εγγραφών",
"entries.unlinked.unlinked_count": "Αποσυνδεδεμένες εγγραφές: {count}",
"ffmpeg.missing.description": "Δεν βρέθηκαν τα FFmpeg ή/και FFprobe. Το FFmpeg είναι απαραίτητο για την αναπαραγωγή πολυμέσων και τη δημιουργία μικρογραφιών.",
"ffmpeg.missing.status": "{ffmpeg}: {ffmpeg_status}<br>{ffprobe}: {ffprobe_status}",
"field.copy": "Αντιγραφή πεδίου",
"field.edit": "Επεξεργασία πεδίου",
"field.paste": "Επικόλληση πεδίου",
"file.date_added": "Ημερομηνία προσθήκης",
"file.date_created": "Ημερομηνία δημιουργίας",
"file.date_modified": "Ημερομηνία τροποποίησης",
"file.dimensions": "Διαστάσεις",
"file.duplicates.description": "Το TagStudio υποστηρίζει την εισαγωγή αποτελεσμάτων από το DupeGuru για τη διαχείριση διπλότυπων αρχείων.",
"file.duplicates.dupeguru.advice": "Μετά τον κατοπτρισμό, μπορείτε ελεύθερα να χρησιμοποιήσετε το DupeGuru για να διαγράψετε τα ανεπιθύμητα αρχεία. Στη συνέχεια, χρησιμοποιήστε τη λειτουργία «Διόρθωση αποσυνδεδεμένων εγγραφών» στο μενού «Εργαλεία» του TagStudio, προκειμένου να διαγράψετε τις αποσυνδεδεμένες εγγραφές.",
"file.duplicates.dupeguru.file_extension": "Αρχεία DupeGuru (*.dupeguru)",
"file.duplicates.dupeguru.load_file": "&Φόρτωση αρχείου DupeGuru",
"file.duplicates.dupeguru.no_file": "Δεν επιλέχθηκε αρχείο DupeGuru",
"file.duplicates.dupeguru.open_file": "Άνοιγμα αρχείου αποτελεσμάτων DupeGuru",
"file.duplicates.fix": "Διόρθωση διπλότυπων αρχείων",
"file.duplicates.matches": "Αντιστοιχίες διπλότυπων αρχείων: {count}",
"file.duplicates.matches_uninitialized": "Αντιστοιχίες διπλότυπων αρχείων: Μ/Δ",
"file.duplicates.mirror.description": "Κατοπτρισμός των δεδομένων της εγγραφής σε κάθε σύνολο αντιστοιχισμένων διπλοτύπων, συνδυάζοντας όλα τα δεδομένα χωρίς την αφαίρεση ή την επανάληψη πεδίων. Αυτή η λειτουργία δεν θα διαγράψει αρχεία ή δεδομένα.",
"file.duplicates.mirror_entries": "&Κατοπτρισμός εγγραφών",
"file.duration": "Διάρκεια",
"file.not_found": "Το αρχείο δεν βρέθηκε",
"file.open_file": "Άνοιγμα αρχείου",
"file.open_file_with": "Άνοιγμα αρχείου με",
"file.open_location.generic": "Εμφάνιση αρχείου στην Εξερεύνηση αρχείων",
"file.open_location.mac": "Εμφάνιση στο Finder",
"file.open_location.windows": "Εμφάνιση στην Εξερεύνηση αρχείων",
"file.path": "Διαδρομή αρχείου",
"folders_to_tags.close_all": "Κλείσιμο όλων",
"folders_to_tags.converting": "Μετατροπή φακέλων σε Tags",
"folders_to_tags.description": "Δημιουργεί ετικέτες με βάση τη δομή των φακέλων σας και τις εφαρμόζει στις εγγραφές σας. \nΗ παρακάτω δομή εμφανίζει όλες τις ετικέτες που πρόκειται να δημιουργηθούν, καθώς και σε ποιες εγγραφές θα εφαρμοστούν.",
"folders_to_tags.open_all": "Άνοιγμα όλων",
"folders_to_tags.title": "Δημιουργία ετικετών από φακέλους",
"generic.add": "Προσθήκη",
"generic.apply": "Εφαρμογή",
"generic.apply_alt": "&Εφαρμογή",
"generic.cancel": "Ακύρωση",
"generic.cancel_alt": "&Ακύρωση",
"generic.close": "Κλείσιμο",
"generic.continue": "Συνέχεια",
"generic.copy": "Αντιγραφή",
"generic.cut": "Αποκοπή",
"generic.delete": "Διαγραφή",
"generic.delete_alt": "&Διαγραφή",
"generic.done": "Τέλος",
"generic.done_alt": "&Τέλος",
"generic.edit": "Επεξεργασία",
"generic.edit_alt": "&Επεξεργασία",
"generic.filename": "Όνομα αρχείου",
"generic.missing": "Λείπει",
"generic.navigation.back": "Πίσω",
"generic.navigation.next": "Επόμενο",
"generic.no": "Όχι",
"generic.none": "Κανένα",
"generic.overwrite": "Αντικατάσταση",
"generic.overwrite_alt": "&Αντικατάσταση",
"generic.paste": "Επικόλληση",
"generic.recent_libraries": "Πρόσφατες βιβλιοθήκες",
"generic.remove": "Αφαίρεση",
"generic.remove_alt": "&Αφαίρεση",
"generic.rename": "Μετονομασία",
"generic.rename_alt": "&Μετονομασία",
"generic.reset": "Επαναφορά",
"generic.save": "Αποθήκευση",
"generic.skip": "Παράλειψη",
"generic.skip_alt": "&Παράλειψη",
"generic.yes": "Ναι",
"home.search": "Αναζήτηση",
"home.search_entries": "Αναζήτηση καταχωρίσεων",
"home.search_library": "Αναζήτηση στη βιβλιοθήκη",
"home.search_tags": "Αναζήτηση ετικετών",
"home.show_hidden_entries": "Εμφάνιση κρυφών καταχωρίσεων",
"home.thumbnail_size": "Μέγεθος μικρογραφιών",
"home.thumbnail_size.extra_large": "Πολύ μεγάλες μικρογραφίες",
"home.thumbnail_size.large": "Μεγάλες μικρογραφίες",
"home.thumbnail_size.medium": "Μεσαίες μικρογραφίες",
"home.thumbnail_size.mini": "Μίνι μικρογραφίες",
"home.thumbnail_size.small": "Μικρές μικρογραφίες",
"ignore.open_file": "Εμφάνιση του αρχείου \"{ts_ignore}\" στον δίσκο",
"json_migration.checking_for_parity": "Έλεγχος ισοτιμίας...",
"json_migration.creating_database_tables": "Δημιουργία πινάκων βάσης δεδομένων SQL...",
"json_migration.description": "<br>Εκκινήστε και προεπισκοπήστε τα αποτελέσματα της διαδικασίας μεταφοράς της βιβλιοθήκης. Η μετατραπείσα βιβλιοθήκη <i>δεν</i> θα χρησιμοποιηθεί εκτός αν κάνετε κλικ στο \"Ολοκλήρωση μεταφοράς\". <br><br>Τα δεδομένα της βιβλιοθήκης θα πρέπει είτε να έχουν τιμές που συμπίπτουν είτε να φέρουν την ετικέτα \"Αντιστοιχίστηκε\". Οι τιμές που δεν συμπίπτουν θα εμφανίζονται με κόκκινο χρώμα και θα φέρουν το σύμβολο \"<b>(!)</b>\" δίπλα τους.<br><center><i>Αυτή η διαδικασία μπορεί να διαρκέσει αρκετά λεπτά για μεγάλες βιβλιοθήκες.</i></center>",
"json_migration.discrepancies_found": "Βρέθηκαν ασυμφωνίες στη βιβλιοθήκη",
"json_migration.discrepancies_found.description": "Βρέθηκαν ασυμφωνίες μεταξύ της αρχικής και της μετατραπείσας μορφής της βιβλιοθήκης. Παρακαλούμε ελέγξτε και επιλέξτε αν θα συνεχίσετε με τη μεταφορά ή αν θα την ακυρώσετε.",
"json_migration.finish_migration": "Ολοκλήρωση μεταφοράς",
"json_migration.heading.aliases": "Ψευδώνυμα:",
"json_migration.heading.colors": "Χρώματα:",
"json_migration.heading.differ": "Ασυμφωνία",
"json_migration.heading.extension_list_type": "Τύπος λίστας επεκτάσεων:",
"json_migration.heading.file_extension_list": "Λίστα επεκτάσεων αρχείων:",
"json_migration.heading.match": "Αντιστοιχίστηκε",
"json_migration.heading.names": "Όνομα:"
}

View File

@@ -146,7 +146,6 @@
"home.thumbnail_size.mini": "Mini Thumbnails",
"home.thumbnail_size.small": "Small Thumbnails",
"home.thumbnail_size": "Thumbnail Size",
"home.show_hidden_entries": "Show Hidden Entries",
"ignore.open_file": "Show \"{ts_ignore}\" File on Disk",
"json_migration.checking_for_parity": "Checking for Parity...",
"json_migration.creating_database_tables": "Creating SQL Database Tables...",
@@ -327,7 +326,6 @@
"tag.disambiguation.tooltip": "Use this tag for disambiguation",
"tag.edit": "Edit Tag",
"tag.is_category": "Is Category",
"tag.is_hidden": "Is Hidden",
"tag.name": "Name",
"tag.new": "New Tag",
"tag.parent_tags.add": "Add Parent Tag(s)",
@@ -350,9 +348,6 @@
"trash.dialog.title.singular": "Delete File",
"trash.name.generic": "Trash",
"trash.name.windows": "Recycle Bin",
"version_modal.title": "TagStudio Update Available",
"version_modal.description": "A new version of TagStudio is available! You can download the latest release from <a href=\"https://github.com/TagStudioDev/TagStudio/releases/latest\">Github</a>.",
"version_modal.status": "Installed Version: {installed_version}<br>Latest Release Version: {latest_release_version}",
"view.size.0": "Mini",
"view.size.1": "Small",
"view.size.2": "Medium",

View File

@@ -1,5 +1,5 @@
{
"about.config_path": "Ruta de Configuración",
"about.config_path": "Ruta de configuración",
"about.description": "TagStudio es una aplicación para organizar fotografías y archivos que utiliza un sistema de etiquetas subyacentes centrado en dar libertad y flexibilidad al usuario. Sin programas ni formatos propios, ni un mar de archivos y sin trastornar completamente la estructura de tu sistema de archivos.",
"about.documentation": "Documentación",
"about.license": "Licencia",
@@ -54,7 +54,7 @@
"entries.mirror.label": "Reflejando {idx}/{total} Entradas...",
"entries.mirror.title": "Reflejando entradas",
"entries.mirror.window_title": "Reflejar entradas",
"entries.remove.plural.confirm": "¿Está seguro de que desea eliminar estas <b>{count}</b> entradas de su librería? No se eliminará ningún archivo del disco.",
"entries.remove.plural.confirm": "¿Está seguro de que desea eliminar las siguientes {count} entradas?",
"entries.remove.singular.confirm": "¿Está seguro que quiere eliminar ésta entrada de su librería? Ningún archivo en el disco será eliminado.",
"entries.running.dialog.new_entries": "Añadiendo {total} nuevas entradas de archivos...",
"entries.running.dialog.title": "Añadiendo las nuevas entradas de archivos",
@@ -140,7 +140,6 @@
"home.search_entries": "Buscar entradas",
"home.search_library": "Buscar el biblioteca",
"home.search_tags": "Buscar etiquetas",
"home.show_hidden_entries": "Mostrar entradas ocultas",
"home.thumbnail_size": "Tamaño de la vista previa",
"home.thumbnail_size.extra_large": "Imágenes extra grandes",
"home.thumbnail_size.large": "Imágenes grandes",
@@ -207,8 +206,8 @@
"macros.running.dialog.title": "Ejecución de macros en entradas nuevas",
"media_player.autoplay": "Reproducción automática",
"media_player.loop": "Bucle",
"menu.delete_selected_files_ambiguous": "Mover Archivo(s) a la {trash_term}",
"menu.delete_selected_files_plural": "Mover Archivos a la {trash_term}",
"menu.delete_selected_files_ambiguous": "Mover archivo(s) a la {trash_term}",
"menu.delete_selected_files_plural": "Mover archivos a la {trash_term}",
"menu.delete_selected_files_singular": "Mover archivo a la {trash_term}",
"menu.edit": "Editar",
"menu.edit.ignore_files": "Ignorar archivos y carpetas",
@@ -218,13 +217,13 @@
"menu.file.clear_recent_libraries": "Borrar recientes",
"menu.file.close_library": "&Cerrar biblioteca",
"menu.file.missing_library.message": "La ubicación de la biblioteca \"{library}\" no se ha podido encontrar.",
"menu.file.missing_library.title": "Librería No Encontrada",
"menu.file.missing_library.title": "Biblioteca desaparecida",
"menu.file.new_library": "Nueva biblioteca",
"menu.file.open_backups_folder": "Abrir Carpeta de Respaldos",
"menu.file.open_create_library": "&Abrir/Crear biblioteca",
"menu.file.open_library": "Abrir biblioteca",
"menu.file.open_recent_library": "Abrir reciente",
"menu.file.refresh_directories": "Actualizar directorios",
"menu.file.refresh_directories": "&Actualizar directorios",
"menu.file.save_backup": "&Guardar copia de seguridad de la biblioteca",
"menu.file.save_library": "Guardar biblioteca",
"menu.help": "&Ayuda",
@@ -267,7 +266,6 @@
"settings.generate_thumbs": "Generación de Miniaturas",
"settings.global": "Ajustes globales",
"settings.hourformat.label": "Formato 24-horas",
"settings.infinite_scroll": "Desplazamiento infinito",
"settings.language": "Idioma",
"settings.library": "Ajustes de la biblioteca",
"settings.open_library_on_start": "Abrir biblioteca al iniciar",
@@ -289,7 +287,7 @@
"settings.theme.label": "Tema:",
"settings.theme.light": "Claro",
"settings.theme.system": "Sistema",
"settings.thumb_cache_size.label": "Tamaño de la caché de miniaturas",
"settings.thumb_cache_size.label": "Tamaño cache de miniaturas",
"settings.title": "Ajustes",
"settings.zeropadding.label": "Rellenar ceros en fechas",
"sorting.direction.ascending": "Ascendiente",
@@ -326,7 +324,6 @@
"tag.disambiguation.tooltip": "Utiliza esta etiqueta para desambiguar",
"tag.edit": "Editar etiqueta",
"tag.is_category": "Es categoría",
"tag.is_hidden": "Está oculto",
"tag.name": "Nombre",
"tag.new": "Nueva etiqueta",
"tag.parent_tags": "Etiquetas principales",
@@ -350,9 +347,6 @@
"trash.dialog.title.singular": "Eliminar archivo",
"trash.name.generic": "Basura",
"trash.name.windows": "Papelera de reciclaje",
"version_modal.description": "¡Ya está disponible una nueva versión de TagStudio! Puedes descargar la última versión desde <a href=\"https://github.com/TagStudioDev/TagStudio/releases/latest\">Github</a>.",
"version_modal.status": "Versión Instalada: {installed_version}<br>Última Versión Publicada: {latest_release_version}",
"version_modal.title": "Actualización de TagStudio disponible",
"view.size.0": "Mini",
"view.size.1": "Pequeño",
"view.size.2": "Medio",

View File

@@ -140,7 +140,6 @@
"home.search_entries": "Recherche",
"home.search_library": "Rechercher dans la Bibliothèque",
"home.search_tags": "Recherche de Tags",
"home.show_hidden_entries": "Afficher les entrées cachées",
"home.thumbnail_size": "Taille de la miniature",
"home.thumbnail_size.extra_large": "Très Grandes Miniatures",
"home.thumbnail_size.large": "Grandes Miniatures",
@@ -326,7 +325,6 @@
"tag.disambiguation.tooltip": "Utilisez ce Tag pour définir une ambiguïté",
"tag.edit": "Modifier un Tag",
"tag.is_category": "Est une Catégorie",
"tag.is_hidden": "Est cachée",
"tag.name": "Nom",
"tag.new": "Nouveau Tag",
"tag.parent_tags": "Tags Parent",
@@ -350,9 +348,6 @@
"trash.dialog.title.singular": "Supprimer le Fichier",
"trash.name.generic": "Poubelle",
"trash.name.windows": "Corbeille",
"version_modal.description": "Une nouvelle version de TagStudio est disponible! Vous pouvez télécharger la version la plus récente sur <a href=\"https://github.com/TagStudioDev/TagStudio/releases/latest\">Github</a>.",
"version_modal.status": "Version installer : {installed_version}<br>Dernière version disponible : {latest_release_version}",
"version_modal.title": "Mise à jour de TagStudio disponible",
"view.size.0": "Mini",
"view.size.1": "Petit",
"view.size.2": "Moyen",

View File

@@ -33,7 +33,7 @@
"drop_import.progress.window_title": "Fájlok importálása",
"drop_import.title": "Fájlütközés",
"edit.color_manager": "&Színek kezelése",
"edit.copy_fields": "Mezők másolása",
"edit.copy_fields": "Mezők &másolása",
"edit.paste_fields": "Mezők &beillesztése",
"edit.tag_manager": "Címkék kezelése",
"entries.duplicate.merge": "Egyező elemek &egyesítése",
@@ -140,7 +140,6 @@
"home.search_entries": "Tételek keresése",
"home.search_library": "Keresés a könyvtárban",
"home.search_tags": "Címkék keresése",
"home.show_hidden_entries": "Rejtett elemel megjelenítése",
"home.thumbnail_size": "Miniatűrök mérete",
"home.thumbnail_size.extra_large": "Extra nagy miniatűrök",
"home.thumbnail_size.large": "Nagy miniatűrök",
@@ -212,7 +211,7 @@
"menu.delete_selected_files_singular": "Fájl {trash_term} &helyezése",
"menu.edit": "S&zerkesztés",
"menu.edit.ignore_files": "Fájlok és mappák figyelmen kívül hagyása",
"menu.edit.manage_tags": "Címkék kezelése",
"menu.edit.manage_tags": "&Címkék ke&zelése",
"menu.edit.new_tag": "Ú&j címke",
"menu.file": "&Fájl",
"menu.file.clear_recent_libraries": "&Legutóbbi könyvtárak listájának törlése",
@@ -326,7 +325,6 @@
"tag.disambiguation.tooltip": "Címke használata egyértelműsítéshez",
"tag.edit": "Címke szerkesztése",
"tag.is_category": "Kategória",
"tag.is_hidden": "Rejtett",
"tag.name": "Név",
"tag.new": "Új címke",
"tag.parent_tags": "Szülőcímkék",
@@ -350,9 +348,6 @@
"trash.dialog.title.singular": "Fájl törlése",
"trash.name.generic": "kukába",
"trash.name.windows": "lomtárba",
"version_modal.description": "Elérhetővé vált egy TagStudio-frissítés. A legújabb verziót a <a href=\"https://github.com/TagStudioDev/TagStudio/releases/latest\">Githubról</a> töltheti le.",
"version_modal.status": "Telepített verzió: {installed_version}<br>Legújabb stabil verzió: {latest_release_version}",
"version_modal.title": "TagStudio-frissítés",
"view.size.0": "Apró",
"view.size.1": "Kicsi",
"view.size.2": "Közepes",

View File

@@ -1,42 +0,0 @@
{
"about.config_path": "Stillingarslóð",
"about.description": "TagStudio er forrit sem skipuleggur og heldur utan um myndir og skrár í gegnum merkja kerfi, sem einblínir á frelsi og sveigjanleika fyrir notandann. Enginn séreigna-hugbúnaður eða skráarsnið, engar aukaskrár, og engin enduruppröðun á skráarkerfinu þínu í heild.",
"about.documentation": "Skjölun",
"about.license": "Leyfi",
"about.module.found": "Fannst",
"about.title": "Um TagStudio",
"about.website": "Vefsíða",
"app.git": "Git Commit",
"app.pre_release": "Forútgáfa",
"app.title": "{base_title} - Safn '{library_dir}'",
"color.color_border": "Nota aukalit fyrir jaðar",
"color.confirm_delete": "Ertu viss um að þú viljir eyða litnum \"{color_name}\"?",
"color.delete": "Eyða Merki",
"color.import_pack": "Flytja inn Litapakka",
"color.name": "Nafn",
"color.namespace.delete.prompt": "Ertu viss um að þú viljir eyða þessu litanafnrými? Þetta mun eyða ÖLLUM litum sem deila því nafnrými!",
"color.namespace.delete.title": "Eyða Litanafnrými",
"color.new": "Nýr Litur",
"color.placeholder": "Litur",
"color.primary": "Aðal Litur",
"color.primary_required": "Aðal Litur (Nauðsynlegt)",
"color.secondary": "Aukalitur",
"color.title.no_color": "Enginn Litur",
"color_manager.title": "Stjórna litum Merkja",
"dependency.missing.title": "{dependency} Fannst Ekki",
"drop_import.description": "Eftirfarandi skrár passa við skráarslóðir sem eru nú þegar í safninu",
"drop_import.duplicates_choice.plural": "Eftirfarandi {count} skrár passa við skráarslóðir sem eru þegar til í safninu.",
"drop_import.duplicates_choice.singular": "Eftirfarandi skrá passar við skráarslóð sem er þegar til í safninu.",
"drop_import.progress.label.initial": "Flyt inn nýjar skrár...",
"drop_import.progress.label.plural": "Flyt inn nýjar skrár...\n{count} Skrár fluttar inn.{suffix}",
"drop_import.progress.label.singular": "Flyt inn nýjar skrár...\n1 Skrá flutt inn.{suffix}",
"drop_import.progress.window_title": "Flytja inn Skrár",
"drop_import.title": "Áreksur Skráa(r)",
"edit.color_manager": "Stjórna litum Merkja",
"edit.copy_fields": "Afrita Reiti",
"edit.paste_fields": "Líma Reiti",
"edit.tag_manager": "Stjórna Merkjum",
"entries.duplicate.merge": "Sameina tvífaldar skráningar",
"entries.duplicate.merge.label": "Sameina tvífaldar skráningar...",
"entries.duplicate.refresh": "Endurhlaða tvíföldum skráningum"
}

View File

@@ -1,364 +1,13 @@
{
"about.config_path": "Percorso di Configurazione",
"about.description": "TagStudio è un'applicazione di organizzazione dei file e delle foto che utlizza un sistema di etichette focalizzato sul dare libertà e flessibilità all'utente. Niente programmi o formati proprietari, niente mare di file sidecar, e nessun stravolgimento della struttura del tuo sistema di file.",
"about.documentation": "Documentazione",
"about.license": "Licenza",
"about.module.found": "Trovato",
"about.title": "Informazioni su TagStudio",
"about.website": "Sito web",
"app.git": "Git Commit",
"app.pre_release": "Pre-rilascio",
"app.title": "{base_title} - Biblioteca '{library_dir}'",
"color.color_border": "Usa Colore Secondario per il Bordo",
"color.confirm_delete": "Sei sicuro di voler eliminare il colore \"{color_name}\"?",
"color.delete": "Elimina Etichetta",
"color.import_pack": "Importa Pacchetto di Colori",
"color.name": "Nome",
"color.namespace.delete.prompt": "Sei sicuro di voler eliminare questo spazio dei nomi dei colori? Questo eliminerà TUTTI i colori contenuti nello spazio dei nomi insieme ad esso!",
"color.namespace.delete.title": "Elimina Spazio dei Nomi dei Colori",
"color.new": "Nuovo Colore",
"color.placeholder": "Colore",
"color.primary": "Colore Primario",
"color.primary_required": "Colore Primario (Obbligatorio)",
"color.secondary": "Colore Secondario",
"color.title.no_color": "Nessun Colore",
"color_manager.title": "Gestisci Colori dei Tag",
"dependency.missing.title": "{dependency} Non Trovata",
"drop_import.description": "I seguenti file corrispondono a percorsi di file che già esistono nella biblioteca",
"drop_import.duplicates_choice.plural": "I seguenti {count} file corrispondono a percorsi di file già esistenti nella biblioteca.",
"drop_import.duplicates_choice.singular": "Il seguente file corrisponde ad un percorso di file già esistente nella biblioteca.",
"drop_import.progress.label.initial": "Importando Nuovi File...",
"drop_import.progress.label.plural": "Importando Nuovi File...\n{count} File Importati.{suffix}",
"drop_import.progress.label.singular": "Importando Nuovi File...\n1 File Importato.{suffix}",
"drop_import.progress.window_title": "Importa File",
"drop_import.title": "File in Conflitto",
"edit.color_manager": "Gestisci i Colori delle Etichette",
"edit.copy_fields": "Copia Campi",
"edit.paste_fields": "Incolla Campi",
"edit.tag_manager": "Gestisci Etichette",
"entries.duplicate.merge": "Unisci Voci Duplicate",
"entries.duplicate.merge.label": "Unendo Voci Duplicate...",
"entries.duplicate.refresh": "Ricarica Voci Duplicate",
"entries.duplicates.description": "Le voci duplicate sono definite come molteplici voci che puntano allo stesso file sul disco. Unendole verranno combinate le etichette ed i metadati da tutti i duplicati in una singola voce consolidata. Quese non devono essere confuse con i \"file duplicati\", che sono duplicati dei tuoi file stessi al di fuori di TagStudio.",
"entries.generic.refresh_alt": "&Ricarica",
"entries.generic.remove.removing": "Rimuovendo Voci",
"entries.generic.remove.removing_count": "Rimozione di {count} Voci...",
"entries.ignored.description": "Le voci dei file sono considerare \"ignorate\" se sono state aggiunte alla biblioteca prima che le regole di ignoranza dell'utente (attraverso il file '.ts_ignore') siano state aggiornate per escluderle. I file ignorati sono tenuti nella biblioteca, per impostazione predefinita, per prevenire perdite accidentali di dati durante l'aggiornamento delle regole di ignoranza.",
"entries.ignored.ignored_count": "Voci Ignorate: {count}",
"entries.ignored.remove": "Rimuovi Voci Ignorate",
"entries.ignored.remove_alt": "Rimuo&vi Voci Ignorate",
"entries.ignored.scanning": "Scansione della Biblioteca in cerca di Voci Ignorate...",
"entries.ignored.title": "Correggi Voci Ignorate",
"entries.mirror": "&Replica",
"entries.mirror.confirmation": "Sei sicuro di voler replicare le seguenti {count} voci?",
"entries.mirror.label": "Replicazione {idx}/{total} Voci...",
"entries.mirror.title": "Replicazione Voci",
"entries.mirror.window_title": "Replica Voci",
"entries.remove.plural.confirm": "Sei sicuro di voler rimuovere queste <b>{count}</b> voci dalla tua biblioteca? Nessun file su disco verrà eliminato.",
"entries.remove.singular.confirm": "Sei sicuro di voler rimuovere questa voce dalla tua biblioteca? Nessun file su disco verrà eliminato.",
"entries.running.dialog.new_entries": "Aggiundendo {total} Nuove Voci di File...",
"entries.running.dialog.title": "Aggiungendo Nuove Voci di File",
"entries.tags": "Etichette",
"entries.unlinked.description": "Ogni voce della biblioteca è collegata ad un file in una delle tue cartelle. Se un file collegato ad una voce viene spostato o eliminito al di fuori di TagStudio, la voce corrispondente viene considerata scollegata.<br><br>Le voci scollegate possono essere ricollegate automaticamente attraverso la ricerca nelle tue cartelle oppure cancellate se lo si desidera.",
"entries.unlinked.relink.attempting": "Tentativo di Ricollegare {index}/{unlinked_count} Voci, {fixed_count} Ricollegate con Successo",
"entries.unlinked.relink.manual": "Ricollegamento &Manuale",
"entries.unlinked.relink.title": "Ricollegamento Voci",
"entries.unlinked.remove": "Rimuovi Voci non Collegate",
"entries.unlinked.remove_alt": "Rimuo&vi Voci non Collegate",
"entries.unlinked.scanning": "Scansionando la Biblioteca in cerca di Voci non Collegate...",
"entries.unlinked.search_and_relink": "&Ricerca && Ricollega",
"entries.unlinked.title": "Correggi Voci non Collegate",
"entries.unlinked.unlinked_count": "Voci non Collegate: {count}",
"ffmpeg.missing.description": "FFmpeg e/o FFprobe non sono stati trovati. FFmpeg è necessario per la riproduzione multimediale e per le miniature.",
"ffmpeg.missing.status": "{ffmpeg}: {ffmpeg_status}<br>{ffprobe}: {ffprobe_status}",
"field.copy": "Copia Campo",
"field.edit": "Modifica Campo",
"field.paste": "Incolla Campo",
"file.date_added": "Data Aggiunta",
"file.date_created": "Data di Creazione",
"file.date_modified": "Data di Modifica",
"file.dimensions": "Dimensioni",
"file.duplicates.description": "TagStudio supporta l'importazione di risultati di DupeGuru per gestire file duplicati.",
"file.duplicates.dupeguru.advice": "Dopo la replicazione, sei libero di usare DupeGuru per eliminare i file indesiderati. Dopodiché, usa la funzione \"Correggi Voci non Collegate\" di TagStudio nel menu Strumenti per eliminare le voci non collegate.",
"file.duplicates.dupeguru.file_extension": "File di DupeGuru (*.dupeguru)",
"file.duplicates.dupeguru.load_file": "&Carica File di DupeGuru",
"file.duplicates.dupeguru.no_file": "Nessun File DupeGuru Selezionato",
"file.duplicates.dupeguru.open_file": "Apri il File dei Risulati di DupeGuru",
"file.duplicates.fix": "Corregi File Duplicati",
"file.duplicates.matches": "File Duplicati Corrispondenti: {count}",
"file.duplicates.matches_uninitialized": "File Duplicati Corrispondenti: N/A",
"file.duplicates.mirror.description": "Replica i dati delle Voci su ogni insieme di corrispondenze duplicate, combinando tutti i dati senza rimuovere o duplicare i campi. Questa operazione non eliminerà alcun file o dato.",
"file.duplicates.mirror_entries": "&Replica Voci",
"file.duration": "Lunghezza",
"file.not_found": "File Non Trovato",
"file.open_file": "Apri file",
"file.open_file_with": "Apri file con",
"file.open_location.generic": "Mostra file in File Explorer",
"file.open_location.mac": "Mostra nel Finder",
"file.open_location.windows": "Mostra in File Explorer",
"file.path": "Percorso del File",
"folders_to_tags.close_all": "Chiudi Tutto",
"folders_to_tags.converting": "Conversione delle cartelle in Etichette",
"folders_to_tags.description": "Crea Etichette basate sulla struttura delle tue cartelle e le applica alle tue voci.\nLa struttura riportata di seguito mostra tutte le etichette che verranno create ed a che voci verranno applicate.",
"folders_to_tags.open_all": "Apri Tutto",
"folders_to_tags.title": "Crea Etichette dalle Cartelle",
"generic.add": "Aggiungi",
"generic.apply": "Applica",
"generic.apply_alt": "&Applica",
"generic.cancel": "Annulla",
"generic.cancel_alt": "&Annulla",
"generic.close": "Chiudi",
"generic.continue": "Continua",
"generic.copy": "Copia",
"generic.cut": "Taglia",
"generic.delete": "Elimina",
"generic.delete_alt": "&Elimina",
"generic.done": "Fatto",
"generic.done_alt": "&Fatto",
"generic.edit": "Modifica",
"generic.edit_alt": "&Modifica",
"generic.filename": "Nome File",
"generic.missing": "Mancante",
"generic.navigation.back": "Indietro",
"generic.navigation.next": "Prossimo",
"generic.no": "No",
"generic.none": "Nessuno",
"generic.overwrite": "Sovrascrivi",
"generic.overwrite_alt": "&Sovrascrivi",
"generic.paste": "Incolla",
"generic.recent_libraries": "Biblioteche Recenti",
"generic.remove": "Rimuovi",
"generic.remove_alt": "&RImuovi",
"generic.rename": "Rinomina",
"generic.rename_alt": "&Rinomina",
"generic.reset": "Ripristina",
"generic.save": "Salva",
"generic.skip": "Salta",
"generic.skip_alt": "&Salta",
"generic.yes": "Sì",
"generic.recent_libraries": "Librerias Recenti",
"home.search": "Cerca",
"home.search_entries": "Cerca Voci",
"home.search_library": "Cerca Biblioteca",
"home.search_tags": "Cerca Etichette",
"home.show_hidden_entries": "Mostra Voci Nascoste",
"home.thumbnail_size": "Dimensione Miniature",
"home.thumbnail_size.extra_large": "Miniature Molto Grandi",
"home.thumbnail_size.large": "Miniature Grandi",
"home.thumbnail_size.medium": "Miniature Medie",
"home.thumbnail_size.mini": "Miniature Mini",
"home.thumbnail_size.small": "Miniature Piccole",
"ignore.open_file": "Mostra File \"{ts_ignore}\" su Disco",
"json_migration.checking_for_parity": "Controllo della Parità...",
"json_migration.creating_database_tables": "Creazione Tabelle di Database SQL...",
"json_migration.description": "<br>Avvia e visualizza in anteprima i risultati del processo di migrazione della biblioteca. La biblioteca convertita <i>non</i> verrà utilizzata finché non clicchi su \"Completa Migrazione\". <br><br>I dati della biblioteca devono avere valori corrispondenti o presentare un'etichetta \"Corrispondente\". I valori che non corrispondono saranno visualizzati in rosso e contrassegnati con un simbolo \"<b>(!)</b>\" accanto a loro.<br><center><i>Questo processo può richiedere diversi minuti per biblioteche di grandi dimensioni.</i></center>",
"json_migration.discrepancies_found": "Discrepanze Riscontrate nella Biblioteca",
"json_migration.discrepancies_found.description": "Sono state riscontrate delle discrepanze tra i formati originali e quelli della biblioteca convertita. Si prega di verificare e scegliere se continuare con la migrazione oppure se annullarla.",
"json_migration.finish_migration": "Completa Migrazione",
"json_migration.heading.aliases": "Alias:",
"json_migration.heading.colors": "Colori:",
"json_migration.heading.differ": "Discrepanze",
"json_migration.heading.extension_list_type": "Tipo di Lista di Entensioni:",
"json_migration.heading.file_extension_list": "Elenco Estensioni dei File:",
"json_migration.heading.match": "Abbinato",
"json_migration.heading.names": "Nomi:",
"json_migration.heading.parent_tags": "Etichette Genitore:",
"json_migration.heading.paths": "Percorsi:",
"json_migration.heading.shorthands": "Abbreviazioni:",
"json_migration.info.description": "File di salvataggio della biblioteca creati con TagStudio versione <b>9.4 e inferiore</b> dovranno essere migrati al nuovo formato <b>v9.5+</b>.<br><h2>Cosa devi sapere:</h2><ul><li>Il tuo file di salvataggio esistente <b><i>NON</i></b> verrà eliminato</li><li>I tuoi file personali <b><i>NON</i></b> verranno eliminati, spostati, o modificati</li><li>Il nuovo formato di salvataggio v9.5+ non può essere aperto con versioni precedenti di TagStudio</li></ul><h3>Cosa è cambiato:</h3><ul><li>I \"Campi di Etichette\" sono stati rimpiazzati da \"Categorie di Etichette\". Invece di aggiungere prima etichette ai campi, le etichette vengono ora aggiunte direttamente alle voci dei file. Vengono poi organizzate automaticamente in categorie in base alle etichette genitore contrassegnate con la nuva proprietà \"È Categoria\" nel menu di modifica delle etichette. Qualsiasi etichetta può essere contrassegnata come categoria, e le etichette figlie si ordineranno da sole sotto le etichette genitore contrassegnate come categoria. Le etichette \"Preferito\" e \"Archiviato\" ereditano ora dalla nuova etichetta \"Etichette Meta\" che è contrassegnata come una categoria per impostazione predefinita.</li><li>I colori delle etichette sono stati modificati e ampliati. Alcuni colori sono stati rinominati o consolidati, però tutti i colori delle etichette continueranno ad essere convertibili in corrispondenze esatte o simili nella versione v9.5.</li></ul><ul>",
"json_migration.migrating_files_entries": "Migrando {entries:,d} Voci di File...",
"json_migration.migration_complete": "Migrazione Completata!",
"json_migration.migration_complete_with_discrepancies": "Migrazione Completata, Discrepanze Rilevate",
"json_migration.start_and_preview": "Avvio ed Anteprima",
"json_migration.title": "Salva Formato Migrazione: \"{path}\"",
"json_migration.title.new_lib": "<h2>v9.5+ Biblioteca</h2>",
"json_migration.title.old_lib": "<h2>v9.4 Biblioteca</h2>",
"landing.open_create_library": "Apri/Crea Biblioteca {shortcut}",
"library.field.add": "Aggiungi Campo",
"library.field.confirm_remove": "Sei sicuro di voler rimuovere il campo \"{name}\"?",
"library.field.mixed_data": "Dati Misti",
"library.field.remove": "Rimuovi Campo",
"library.missing": "Manca la Posizione della Biblioteca",
"library.name": "Biblioteca",
"library.refresh.scanning.plural": "Ricerca di Nuovi File nelle Cartelle...\n{searched_count} Files Cercati, {found_count} Nuovi File Trovati",
"library.refresh.scanning.singular": "Ricerca di Nuovi File nelle Cartelle...\n{searched_count} File Cercati, {found_count} Nuovi File Trovati",
"library.refresh.scanning_preparing": "Ricerca di Nuovi File nelle Cartelle...\nPreparazione in corso...",
"library.refresh.title": "Aggiornamento delle Cartelle",
"library.scan_library.title": "Scansione della Biblioteca",
"library_info.cleanup": "Pulizia",
"library_info.cleanup.backups": "Backup della Biblioteca:",
"library_info.cleanup.dupe_files": "File Duplicati:",
"library_info.cleanup.ignored": "Voci Ignorate:",
"library_info.cleanup.legacy_json": "Residui Biblioteca Legacy:",
"library_info.cleanup.unlinked": "Voci non Collegate:",
"library_info.stats": "Statistiche",
"library_info.stats.colors": "Colori Etichette:",
"library_info.stats.entries": "Voci:",
"library_info.stats.fields": "Campi:",
"library_info.stats.macros": "Macro:",
"library_info.stats.namespaces": "Spazi dei Nomi:",
"library_info.stats.tags": "Etichette:",
"library_info.title": "Biblioteca '{library_dir}'",
"library_info.version": "Versione del Formato della Biblioteca: {version}",
"library_object.name": "Nome",
"library_object.name_required": "Nome (Obbligatorio)",
"library_object.slug": "ID Slug",
"library_object.slug_required": "ID Slug (Obbligatorio)",
"macros.running.dialog.new_entries": "Esecuzione delle Macro Configurate su {count}/{total} Nuove Voci di File...",
"macros.running.dialog.title": "Esecuzione delle Macro sulle Nuove Voci",
"media_player.autoplay": "Riproduzione Automatica",
"media_player.loop": "Metti in Loop",
"menu.delete_selected_files_ambiguous": "Sposta File nel {trash_term}",
"menu.delete_selected_files_plural": "Sposta Files nel {trash_term}",
"menu.delete_selected_files_singular": "Sposta il File nel {trash_term}",
"menu.edit": "Modifica",
"menu.edit.ignore_files": "Ignora File e Cartelle",
"menu.edit.manage_tags": "Gestisci Etichette",
"menu.edit.new_tag": "Nuova &Etichetta",
"menu.file": "&File",
"menu.file.clear_recent_libraries": "Cancella Recenti",
"menu.file.close_library": "&Chiudi Biblioteca",
"menu.file.missing_library.message": "La posizione della biblioteca \"{library}\" non può essere trovata.",
"menu.file.missing_library.title": "Biblioteca Mancante",
"menu.file.new_library": "Nuova Biblioteca",
"menu.file.open_backups_folder": "Apri Cartella dei Backup",
"menu.file.open_create_library": "&Apri/Crea Biblioteca",
"menu.file.open_library": "Apri Biblioteca",
"menu.file.open_recent_library": "Apri Recenti",
"menu.file.refresh_directories": "Aggiorna Cartelle",
"menu.file.save_backup": "&Salva Backup della Biblioteca",
"menu.file.save_library": "Salva Biblioteca",
"menu.help": "&Aiuto",
"menu.help.about": "Informazioni",
"menu.macros": "&Macro",
"menu.macros.folders_to_tags": "Cartelle ad Etichette",
"menu.select": "Seleziona",
"menu.settings": "Impostazioni...",
"menu.tools": "&Strumenti",
"menu.tools.fix_duplicate_files": "Coreggi File &Duplicati",
"menu.tools.fix_ignored_entries": "Correggi Voci &Ignorate",
"menu.tools.fix_unlinked_entries": "Correggi Voci &Scollegate",
"menu.view": "&Visualizza",
"menu.view.decrease_thumbnail_size": "Riduci Dimensione Miniature",
"menu.view.increase_thumbnail_size": "Aumenta Dimensione Miniature",
"menu.view.library_info": "&Informazioni Biblioteca",
"menu.file": "File",
"menu.window": "Finestra",
"namespace.create.description": "Gli spazi dei nomi sono usati da TagStudio per separare gruppi di elementi come etichette e colori in maniera da facilitarne l'esportazione e la condivisione. Gli spazi dei nomi che iniziano con \"tagstudio\" sono riservati per l'uso interno di TagStudio.",
"namespace.create.description_color": "I colori delle etichette usano gli spazi dei nomi come gruppi di tavolozze di colori. Tutti i colori personalizzati devono prima essere inseriti in uno spazio dei nomi.",
"namespace.create.title": "Crea Spazio dei Nomi",
"namespace.new.button": "Nuovo Spazio dei Nomi",
"namespace.new.prompt": "Crea un Nuovo Spazio dei Nomi per Iniziare ad Aggiungere Colori Personalizzati!",
"preview.ignored": "Ignorato",
"preview.multiple_selection": "<b>{count}</b> Elementi Selezionati",
"preview.no_selection": "Nessun Elemento Selezionato",
"preview.unlinked": "Scollegato",
"select.add_tag_to_selected": "Aggiungi Etichetta alla Selezione",
"select.all": "Seleziona Tutto",
"select.clear": "Cancella Selezione",
"select.inverse": "Inverti Selezione",
"settings.clear_thumb_cache.title": "Cancella Cache delle Miniature",
"settings.dateformat.english": "Inglese",
"settings.dateformat.international": "Internazionale",
"settings.dateformat.label": "Formato Data",
"settings.dateformat.system": "Sistema",
"settings.filepath.label": "Visibilità del Percorso del File",
"settings.filepath.option.full": "Mostra Percorsi Completi",
"settings.filepath.option.name": "Mostra Solo i Nomi dei File",
"settings.filepath.option.relative": "Mostra Percorsi Relativi",
"settings.generate_thumbs": "Generazione delle Miniature",
"settings.global": "Impostazioni Globali",
"settings.hourformat.label": "Formato a 24 Ore",
"settings.infinite_scroll": "Scorrimento Infinito",
"settings.language": "Lingua",
"settings.library": "Impostazioni Biblioteca",
"settings.open_library_on_start": "Apri Biblioteca all'Avvio",
"settings.page_size": "Dimensione Pagina",
"settings.restart_required": "Riavvia TagStudio affinchè le modifiche abbiano effetto.",
"settings.show_filenames_in_grid": "Mostra Nomi dei File nella Griglia",
"settings.show_recent_libraries": "Mostra Biblioteche Recenti",
"settings.splash.label": "Schermata Iniziale",
"settings.splash.option.classic": "Classico (9.0)",
"settings.splash.option.default": "Predefinito",
"settings.splash.option.goo_gears": "Open Source (9.4)",
"settings.splash.option.ninety_five": "'95 (9.5)",
"settings.splash.option.random": "Casuale",
"settings.tag_click_action.add_to_search": "Aggiungi Etichette alla Ricerca",
"settings.tag_click_action.label": "Azione di Clic sulle Etichette",
"settings.tag_click_action.open_edit": "Modifica Etichetta",
"settings.tag_click_action.set_search": "Cerca Etichetta",
"settings.theme.dark": "Scuro",
"settings.theme.label": "Tema:",
"settings.theme.light": "Chiaro",
"settings.theme.system": "Sistema",
"settings.thumb_cache_size.label": "Dimensione Cache delle Miniature",
"settings.title": "Impostazioni",
"settings.zeropadding.label": "Riempimento con zeri delle date",
"sorting.direction.ascending": "Ascendente",
"sorting.direction.descending": "Discendente",
"sorting.mode.random": "Casuale",
"splash.opening_library": "Aprendo Biblioteca \"{library_path}\"...",
"status.deleted_file_plural": "{count} file eliminati!",
"status.deleted_file_singular": "1 file eliminato!",
"status.deleted_none": "Nessun file eliminato.",
"status.deleted_partial_warning": "Solo {count} file sono stati eliminati! Verifica se alcuni dei file sono attualmente mancanti o in uso.",
"status.deleting_file": "Eliminano file [{i}/{count}]: \"{path}\"...",
"status.library_backup_in_progress": "Salvataggio Backup della Biblioteca...",
"status.library_backup_success": "Backup della BIblioteca Salvato in: \"{path}\" ({time_span})",
"status.library_closed": "Biblioteca Chiusa ({time_span})",
"status.library_closing": "Chiudendo la Biblioteca...",
"status.library_save_success": "Biblioteca Salvata e Chiusa!",
"status.library_search_query": "Cercando nella Biblioteca...",
"status.library_version_expected": "Previsto:",
"status.library_version_found": "Trovato:",
"status.library_version_mismatch": "Versione della Biblioteca non Corrispondente!",
"status.results": "Risultati",
"status.results.invalid_syntax": "Sintassi di Ricerca Non Valida:",
"status.results_found": "{count} Risultati Trovati ({time_span})",
"tag.add": "Aggiungi Etichetta",
"tag.add.plural": "Aggiungi Etichette",
"tag.add_to_search": "Aggiungi alla Ricerca",
"tag.aliases": "Alias",
"tag.all_tags": "Tutte le Etichette",
"tag.choose_color": "Scegli Colore dell'Etichetta",
"tag.add": "Aggiungi Tag",
"tag.color": "Colore",
"tag.confirm_delete": "Sei sicuro di voler eliminare l'etichetta \"{tag_name}\"?",
"tag.create": "Crea Etichetta",
"tag.create_add": "Crea && Aggiungi \"{query}\"",
"tag.disambiguation.tooltip": "Usa questa etichetta per la disambiguazione",
"tag.edit": "Modifica Etichetta",
"tag.is_category": "È Categoria",
"tag.is_hidden": "È Nascosta",
"tag.name": "Nome",
"tag.new": "Nuova Etichetta",
"tag.parent_tags": "Etichette Genitore",
"tag.parent_tags.add": "Aggiungi Etichette Genitore",
"tag.parent_tags.description": "Questa etichetta può essere considerata come sostitutiva di qualunque di queste Etichette Genitore nelle richerche.",
"tag.remove": "Rimuovi Etichetta",
"tag.search_for_tag": "Cerca Etichetta",
"tag.shorthand": "Abbreviazione",
"tag.tag_name_required": "Nome Etichetta (Obbligatorio)",
"tag.view_limit": "Limite di Visualizzazione:",
"tag_manager.title": "Etichette della Biblioteca",
"trash.context.ambiguous": "Sposta file(s) in {trash_term}",
"trash.context.plural": "Sposta files in {trash_term}",
"trash.context.singular": "Sposta file in {trash_term}",
"trash.dialog.disambiguation_warning.plural": "Questo li rimuoverà da TagStudio <i>E</i> dal tuo sistema di file!",
"trash.dialog.disambiguation_warning.singular": "Questo lo rimuoverà da TagStudio <i>E</i> dal tuo sistema di file!",
"trash.dialog.move.confirmation.plural": "Sei sicuro di voler spostare questi {count} file nel {trash_term}?",
"trash.dialog.move.confirmation.singular": "Sei sicuro di voler spostare questo file nel {trash_term}?",
"trash.dialog.permanent_delete_warning": "<b>ATTENZIONE!</b> Se questo file non può essere spostato nel {trash_term}, verrà <b>eliminato permanentemente!</b>",
"trash.dialog.title.plural": "Elimina Files",
"trash.dialog.title.singular": "Elimina File",
"trash.name.generic": "Spazzatura",
"trash.name.windows": "Cestino",
"version_modal.description": "Una nuova versione di TagStudio è disponibile! Puoi scaricare l'ultima versione da <a href=\"https://github.com/TagStudioDev/TagStudio/releases/latest\">Github</a>.",
"version_modal.status": "Versione Installata: {installed_version}<br>Ultima Versione Rilasciata: {latest_release_version}",
"version_modal.title": "Aggiornamento di TagStudio Disponibile",
"view.size.0": "Mini",
"view.size.1": "Piccolo",
"view.size.2": "Medio",
"view.size.3": "Grande",
"view.size.4": "Molto Grande",
"window.message.error_opening_library": "Errore nell'apertura della biblioteca.",
"window.title.error": "Errore",
"window.title.open_create_library": "Apri/Crea Biblioteca"
"tag.new": "Nuovo Tag"
}

View File

@@ -140,7 +140,6 @@
"home.search_entries": "エントリを検索",
"home.search_library": "ライブラリを検索",
"home.search_tags": "タグを検索",
"home.show_hidden_entries": "非表示のエントリを表示",
"home.thumbnail_size": "サムネイルのサイズ",
"home.thumbnail_size.extra_large": "特大サムネイル",
"home.thumbnail_size.large": "大サムネイル",
@@ -326,7 +325,6 @@
"tag.disambiguation.tooltip": "このタグは曖昧さを解消するために使用されます",
"tag.edit": "タグの編集",
"tag.is_category": "カテゴリとして扱う",
"tag.is_hidden": "非表示",
"tag.name": "名前",
"tag.new": "新しいタグ",
"tag.parent_tags": "親タグ",
@@ -350,9 +348,6 @@
"trash.dialog.title.singular": "ファイルの削除",
"trash.name.generic": "ごみ箱",
"trash.name.windows": "ごみ箱",
"version_modal.description": "TagStudio の新しいバージョンが利用できます。<a href=\"https://github.com/TagStudioDev/TagStudio/releases/latest\">GitHub</a> から最新リリースをダウンロードできます。",
"version_modal.status": "インストール済みのバージョン: {installed_version}<br>最新リリースのバージョン: {latest_release_version}",
"version_modal.title": "TagStudio の更新があります",
"view.size.0": "極小",
"view.size.1": "小",
"view.size.2": "中",

View File

@@ -195,7 +195,7 @@
"menu.edit.new_tag": "Ny &Etikett",
"menu.file": "Fil",
"menu.file.clear_recent_libraries": "Fjern Nylige",
"menu.file.close_library": "Lukk Bibliotek",
"menu.file.close_library": "&Lukk Bibliotek",
"menu.file.missing_library.message": "Plasseringen til biblioteket \"{library}\" kan ikke finnes.",
"menu.file.missing_library.title": "Manglende Bibliotek",
"menu.file.new_library": "Nytt Bibliotek",
@@ -212,7 +212,7 @@
"menu.select": "Velg",
"menu.settings": "Innstillinger...",
"menu.tools": "Verktøy",
"menu.tools.fix_duplicate_files": "Fiks Duplikate Filer",
"menu.tools.fix_duplicate_files": "Fiks Duplikate &Filer",
"menu.tools.fix_unlinked_entries": "Fiks &Frakoblede Oppføringer",
"menu.view": "&Se",
"menu.window": "Vindu",

View File

@@ -7,10 +7,8 @@
"about.website": "Website",
"app.git": "Git Commit",
"app.pre_release": "Pre-Release",
"color.color_border": "Gebruik Secundaire Kleur voor Rand",
"color.confirm_delete": "Weet u zeker dat u de kleur \"{color_name}\" wilt verwijderen?",
"color.delete": "Verwijder Label",
"color.import_pack": "Importeer Kleurenpakket",
"color.name": "Naam",
"color.new": "Nieuwe Kleur",
"color.placeholder": "Kleur",
@@ -24,13 +22,10 @@
"drop_import.progress.label.plural": "Nieuwe bestanden importeren…\n{count} bestanden geïmporteerd.{suffix}",
"drop_import.progress.label.singular": "Nieuwe bestanden importeren…\n1 bestand geïmporteerd.{suffix}",
"drop_import.progress.window_title": "Importeer bestanden",
"drop_import.title": "Conflicterende bestand(en)",
"edit.color_manager": "Beheer Label Kleuren",
"edit.copy_fields": "Velden Kopiëren",
"edit.paste_fields": "Velden Plakken",
"edit.tag_manager": "Beheer Labels",
"entries.duplicate.merge": "Dubbele Vermeldingen Samenvoegen",
"entries.duplicate.merge.label": "Dubbele vermeldingen samenvoegen...",
"entries.tags": "Labels",
"field.copy": "Veld Kopiëren",
"field.edit": "Veld Aanpassen",

View File

@@ -181,14 +181,14 @@
"menu.edit.new_tag": "Nowy &Tag",
"menu.file": "&Plik",
"menu.file.clear_recent_libraries": "Wyczyść ostatnie",
"menu.file.close_library": "Zamknij bibliotekę",
"menu.file.close_library": "&Zamknij bibliotekę",
"menu.file.missing_library.message": "Lokalizacja biblioteki \"{library}\" nie została odnaleziona.",
"menu.file.missing_library.title": "Brakująca biblioteka",
"menu.file.new_library": "Nowa biblioteka",
"menu.file.open_create_library": "&Otwórz/Stwórz bibliotekę",
"menu.file.open_library": "Otwórz bibliotekę",
"menu.file.open_recent_library": "Otwórz ostatnie",
"menu.file.refresh_directories": "Odśwież katalogi",
"menu.file.refresh_directories": "&Odśwież katalogi",
"menu.file.save_backup": "&Zapisz kopię zapasową biblioteki",
"menu.file.save_library": "Zapisz bibliotekę",
"menu.help": "&Pomoc",

View File

@@ -181,7 +181,7 @@
"menu.file.open_create_library": "&Abrir/Criar Biblioteca",
"menu.file.open_library": "Abrir Biblioteca",
"menu.file.open_recent_library": "Abrir Recente",
"menu.file.refresh_directories": "Atualizar Pastas",
"menu.file.refresh_directories": "&Atualizar Pastas",
"menu.file.save_backup": "&Gravar Backup da Biblioteca",
"menu.file.save_library": "Gravar Biblioteca",
"menu.help": "&Ajuda",

View File

@@ -3,9 +3,7 @@
"about.description": "TagStudio é uma aplicação de organização de fotos e arquivos com um sistema de tags que tem como foco conceder liberdade e flexibilidade ao usuário. Sem programas ou formatos proprietários, sem imensidão de arquivos Sidecar, e sem total transtorno de sua estrutura de sistema de arquivos.",
"about.documentation": "Documentação",
"about.license": "Licença",
"about.module.found": "Encontrado",
"about.title": "Sobre",
"about.website": "Site",
"app.git": "Confirmação do Git",
"app.pre_release": "Pré-Lançamento",
"app.title": "{base_title} - Biblioteca '{library_dir}'",
@@ -23,7 +21,6 @@
"color.secondary": "Cor Secundária",
"color.title.no_color": "Nenhuma Cor",
"color_manager.title": "Gerenciar Cores das Tags",
"dependency.missing.title": "{dependency} Não Encontrada",
"drop_import.description": "Os seguintes arquivos correspondem a caminhos de arquivos que já existem na biblioteca",
"drop_import.duplicates_choice.plural": "Os seguintes arquivos {count} correspondem a caminhos de arquivo que já existem na biblioteca.",
"drop_import.duplicates_choice.singular": "O arquivo a seguir corresponde a um caminho de arquivo que já existe na biblioteca.",
@@ -40,22 +37,13 @@
"entries.duplicate.merge.label": "Mesclando Itens Duplicados...",
"entries.duplicate.refresh": "Atualizar Registros Duplicados",
"entries.duplicates.description": "Registros duplicados são definidas como multiplos registros que levam ao mesmo arquivo no disco. Mesclar esses registros irá combinar as tags e metadados de todas as duplicatas em um único registro consolidado. Não confundir com \"Arquivos Duplicados\" que são duplicatas dos seus arquivos fora do TagStudio.",
"entries.generic.refresh_alt": "&Atualizar",
"entries.generic.remove.removing": "Deletando Registros",
"entries.generic.remove.removing_count": "Removendo {count} Registros...",
"entries.ignored.description": "Os arquivos são considerados \"ignorados\" se foram adicionados à biblioteca antes que as regras de ignorar do usuário (através do arquivo '.ts_ignore') fossem atualizadas para excluí-los. Os arquivos ignorados são mantidos na biblioteca por padrão para evitar perda acidental de dados ao atualizar as regras de ignorar.",
"entries.ignored.ignored_count": "Registros Ignorados: {count}",
"entries.ignored.remove": "Remover Registros Ignorados",
"entries.ignored.remove_alt": "Remover Entradas Ignoradas",
"entries.ignored.scanning": "Escaneando a Biblioteca por Registros Ignorados",
"entries.ignored.title": "Consertar Registros Ignorados",
"entries.mirror": "&Espelho",
"entries.mirror.confirmation": "Tem certeza que você deseja espelhar os seguintes {count} registros?",
"entries.mirror.label": "Espelhando {idx}/{total} Registros...",
"entries.mirror.title": "Espelhando Registros",
"entries.mirror.window_title": "Espelhar Registros",
"entries.remove.plural.confirm": "Tem certeza que deseja deletar os seguintes {count} Registros ?",
"entries.remove.singular.confirm": "Você tem certeza que deseja remover esse registro da sua bilbioteca ? Nenhum arquivo no disco será excluído.",
"entries.running.dialog.new_entries": "Adicionando {total} Novos Registros de Arquivos...",
"entries.running.dialog.title": "Adicionando Novos Registros de Arquivos",
"entries.tags": "Tags",
@@ -63,14 +51,10 @@
"entries.unlinked.relink.attempting": "Tentando referenciar {index}/{unlinked_count} Registros, {fixed_count} Referenciados com Sucesso",
"entries.unlinked.relink.manual": "&Referência Manual",
"entries.unlinked.relink.title": "Referenciando Registros",
"entries.unlinked.remove": "Remover Registros Não Vinculados",
"entries.unlinked.remove_alt": "Remover Entradas sem Conexões",
"entries.unlinked.scanning": "Escaneando bibliotecada em busca de registros não referenciados...",
"entries.unlinked.search_and_relink": "&Buscar && Referenciar",
"entries.unlinked.title": "Corrigir Registros Não Referenciados",
"entries.unlinked.unlinked_count": "Registros Não Referenciados: {count}",
"ffmpeg.missing.description": "FFmpeg e/ou FFprobe não foram encontrados. FFmpeg é necessário para reproduzir multimídias e miniaturas.",
"ffmpeg.missing.status": "{ffmpeg}: {ffmpeg_status}<br>{ffprobe}: {ffprobe_status}",
"field.copy": "Copiar Campo",
"field.edit": "Editar Campo",
"field.paste": "Colar Campo",
@@ -96,7 +80,6 @@
"file.open_location.generic": "Abrir no explorador de arquivos",
"file.open_location.mac": "Mostrar no Finder",
"file.open_location.windows": "Mostrar no Explorador de Arquivos",
"file.path": "Caminho do Arquivo",
"folders_to_tags.close_all": "Fechar Tudo",
"folders_to_tags.converting": "Convertendo pastas para Tags",
"folders_to_tags.description": "Cria tags com base na sua estrutura de arquivos e aplica elas nos seus registros\nA estrutura abaixo mostra todas as tags que serão criadas e em quais itens elas serão aplicadas.",
@@ -118,58 +101,43 @@
"generic.edit": "Editar",
"generic.edit_alt": "&Editar",
"generic.filename": "Nome do Arquivo",
"generic.missing": "Vazio",
"generic.navigation.back": "Anterior",
"generic.navigation.next": "Próximo",
"generic.no": "Não",
"generic.none": "Nenhum",
"generic.overwrite": "Sobrescrever",
"generic.overwrite_alt": "&Sobrescrever",
"generic.paste": "Colar",
"generic.recent_libraries": "Bibliotecas recentes",
"generic.remove": "Remover",
"generic.remove_alt": "&Remover",
"generic.rename": "Renomear",
"generic.rename_alt": "&Renomear",
"generic.reset": "Redefinir",
"generic.save": "Salvar",
"generic.skip": "Pular",
"generic.skip_alt": "&Pular",
"generic.yes": "Sim",
"home.search": "Buscar",
"home.search_entries": "Buscar Registros",
"home.search_library": "Buscar na Biblioteca",
"home.search_tags": "Buscar Tags",
"home.show_hidden_entries": "Mostrar Itens Ocultos",
"home.thumbnail_size": "Tamanho de miniatura",
"home.thumbnail_size.extra_large": "Miniaturas Extra Grandes",
"home.thumbnail_size.large": "Miniaturas Grandes",
"home.thumbnail_size.medium": "Miniaturas Médias",
"home.thumbnail_size.mini": "Miniaturas Mini",
"home.thumbnail_size.small": "Miniaturas Pequenas",
"ignore.open_file": "Mostrar \"{ts_ignore}\" Arquivo no Disco",
"json_migration.checking_for_parity": "Verificando a Paridade",
"json_migration.creating_database_tables": "Criando Tabelas de Banco de Dados SQL...",
"json_migration.description": "<br>Inicie e pré-visualize os resultados do processo de migração da biblioteca. A biblioteca convertida <i>não</i> será usada a menos que você clique em \"Terminar Migração\". <br><br>A informação da biblioteca devem ter valores correspondentes ou ter o rotulo \"Correspondido\". Valores que não tenham correspondência serão mostrados em vermelho e conter um símbolo \"<b>(!)</b>\" próximo a eles. <br><center><i>Este processo pode demorar alguns minutos para bibliotecas grandes.</i></center>",
"json_migration.discrepancies_found": "Encontradas Discrepâncias na biblioteca",
"json_migration.discrepancies_found.description": "Discrepâncias foram encontradas entre os arquivos de Biblioteca originais e os convertidos. Por favor, revise e escolha continuar com a migração ou cancelar.",
"json_migration.finish_migration": "Finalizar Migração",
"json_migration.heading.aliases": "Pseudônimos:",
"json_migration.heading.colors": "Cores:",
"json_migration.heading.differ": "Discrepância",
"json_migration.heading.extension_list_type": "Lista dos tipos de Extensão:",
"json_migration.heading.file_extension_list": "Lista de Extensão de Arquivo:",
"json_migration.heading.match": "Correspondido",
"json_migration.heading.names": "Nomes:",
"json_migration.heading.parent_tags": "Tags Pai:",
"json_migration.heading.paths": "Caminhos:",
"json_migration.heading.shorthands": "Taquigrafias:",
"json_migration.info.description": "Os arquivos de biblioteca salvos criados com as versões do TagStudio <b>9.4 e anteriores</b> precisarão ser migrados para o novo formato <b>v9.5+</b>.<br><h2>O que você precisa saber:</h2><ul><li>Seu arquivo de biblioteca salvo existente <b><i>NÃO</i></b> será excluído</li><li>Seus arquivos pessoais <b><i>NÃO</i></b> serão excluídos, movidos ou modificados</li><li>O novo formato de salvamento v9.5+ não pode ser aberto em versões anteriores do TagStudio</li></ul><h3>O que mudou:</h3><ul><li>\"Campos de Tag\" foram substituídos por \"Categorias de Tag\". Em vez de adicionar tags aos campos primeiro, as tags agora são adicionadas diretamente às entradas do arquivo. Elas são então organizadas automaticamente em categorias com base nas tags pai marcadas com a nova propriedade \"É Categoria\" no menu de edição de tags. Qualquer tag pode ser marcada como uma categoria e as tags filhas serão classificadas sob as tags pai marcadas como categorias. As tags \"Favoritos\" e \"Arquivados\" agora herdam de uma nova tag \"Meta Tags\", que é marcada como categoria por padrão.</li><li>As cores das tags foram ajustadas e expandidas. Algumas cores foram renomeadas ou consolidadas, porém todas as cores das tags ainda serão convertidas para correspondências exatas ou aproximadas na versão 9.5.</li></ul><ul>",
"json_migration.migrating_files_entries": "Migrando {entries:,d} Registros de Arquivos...",
"json_migration.migration_complete": "Migração Concluída!",
"json_migration.migration_complete_with_discrepancies": "Migração Concluída, Discrepâncias Encontradas",
"json_migration.start_and_preview": "Iniciar e Visualizar",
"json_migration.title": "Salvar Formato de Migração: \"{path}\"",
"json_migration.title.new_lib": "<h2>Biblioteca v9.5+</h2>",
"json_migration.title.old_lib": "<h2>Biblioteca v9.4</h2>",
"landing.open_create_library": "Abrir/Criar Biblioteca {shortcut}",
@@ -184,29 +152,14 @@
"library.refresh.scanning_preparing": "Escaneando Diretórios por Novos Arquivos...\nPreparando...",
"library.refresh.title": "Atualizando Pastas",
"library.scan_library.title": "Escaneando Biblioteca",
"library_info.cleanup": "Limpeza",
"library_info.cleanup.backups": "Backup de Bibliotecas:",
"library_info.cleanup.dupe_files": "Arquivos Duplicados:",
"library_info.cleanup.ignored": "Registros Ignorados",
"library_info.cleanup.legacy_json": "Sobra da Biblioteca Legada:",
"library_info.cleanup.unlinked": "Registros Desvinculados:",
"library_info.stats": "Estatísticas",
"library_info.stats.colors": "Cores de Etiquetas:",
"library_info.stats.entries": "Registros:",
"library_info.stats.fields": "Campos:",
"library_info.stats.macros": "Macros:",
"library_info.stats.namespaces": "Namespaces:",
"library_info.stats.tags": "Tags:",
"library_info.title": "Biblioteca '{library_dir}'",
"library_info.version": "Formato de Versão da Biblioteca: {version}",
"library_object.name": "Nome",
"library_object.name_required": "Nome (Obrigatório)",
"library_object.slug": "ID Alternativo",
"library_object.slug_required": "ID Alternativo (obrigatório)",
"macros.running.dialog.new_entries": "Executando Macros Configurados nos {count}/{total} Novos Registros de Arquivos...",
"macros.running.dialog.title": "Executando Macros nos Novos Registros",
"media_player.autoplay": "Tocar Automaticamente",
"media_player.loop": "Repetição",
"menu.delete_selected_files_ambiguous": "Mover Arquivo(s) para {trash_term}",
"menu.delete_selected_files_plural": "Mover Arquivos para {trash_term}",
"menu.delete_selected_files_singular": "Mover Arquivo para {trash_term}",
@@ -217,87 +170,41 @@
"menu.file": "&Arquivo",
"menu.file.clear_recent_libraries": "Limpar Recentes",
"menu.file.close_library": "&Fechar Biblioteca",
"menu.file.missing_library.message": "A localização da biblioteca \"{library}\" não foi encontrada.",
"menu.file.missing_library.title": "Biblioteca Não Encontrada",
"menu.file.new_library": "Nova Biblioteca",
"menu.file.open_backups_folder": "Abrir Pasta de Backups",
"menu.file.open_create_library": "&Abrir/Criar Biblioteca",
"menu.file.open_library": "Abrir Biblioteca",
"menu.file.open_recent_library": "Abrir Recente",
"menu.file.refresh_directories": "Atualizar Pastas",
"menu.file.refresh_directories": "&Atualizar Pastas",
"menu.file.save_backup": "&Salvar Backup da Biblioteca",
"menu.file.save_library": "Salvar Biblioteca",
"menu.help": "&Ajuda",
"menu.help.about": "Sobre",
"menu.macros": "&Macros",
"menu.macros.folders_to_tags": "Pastas para Tags",
"menu.select": "Selecionar",
"menu.settings": "Configurações...",
"menu.tools": "&Ferramentas",
"menu.tools.fix_duplicate_files": "Corrigir &Arquivos Duplicados",
"menu.tools.fix_ignored_entries": "Consertar Entradas &Ignoradas",
"menu.tools.fix_unlinked_entries": "Corrigir &Registros Não Referenciados",
"menu.view": "&Exibir",
"menu.view.decrease_thumbnail_size": "Diminuir Tamanho de Miniatura",
"menu.view.increase_thumbnail_size": "Aumentar Tamanho de Miniatura",
"menu.view.library_info": "&Informação da Biblioteca",
"menu.window": "Janela",
"namespace.create.description": "Namespaces são usados pelo TagStudio para separar grupos de items como as etiquetas e cores, de uma forma que os fazem ser fáceis de exportar e compartilhar. Namespaces começam com \"tagstudio\" são reservados pelo TagStudio para uso interno.",
"namespace.create.description_color": "Cor de etiquetas usam namespaces como grupo de paleta de cor. Todas as cores customizadas devem estar primeiro em um grupo de namespace.",
"namespace.create.title": "Criar Namespace",
"namespace.new.button": "Novo Namespace",
"namespace.new.prompt": "Crie um Novo Namespace para Começar a Adicionar Cores Customizadas!",
"preview.ignored": "Ignorado",
"preview.multiple_selection": "<b>{count}</b> Itens Selecionados",
"preview.no_selection": "Nenhum Item Selecionado",
"preview.unlinked": "Desvinculado",
"select.add_tag_to_selected": "Adicionar Tag às Seleções",
"select.all": "Selecionar Tudo",
"select.clear": "Limpar Seleção",
"select.inverse": "Inverter Seleção",
"settings.clear_thumb_cache.title": "Limpar cache de miniaturas",
"settings.dateformat.english": "Inglês",
"settings.dateformat.international": "Internacional",
"settings.dateformat.label": "Formato de Data",
"settings.dateformat.system": "Sistema",
"settings.filepath.label": "Visibilidade do Caminho do Arquivo",
"settings.filepath.option.full": "Mostrar Caminhos Completos",
"settings.filepath.option.name": "Mostrar Apenas Nome de Arquivos",
"settings.filepath.option.relative": "Mostrar Caminhos Relativos",
"settings.generate_thumbs": "Geração de Miniatura",
"settings.global": "Configurações Globais",
"settings.hourformat.label": "Formato em 24 Horas",
"settings.infinite_scroll": "Rolagem Infinita",
"settings.language": "Idioma",
"settings.library": "Configurações da Biblioteca",
"settings.open_library_on_start": "Abrir Biblioteca ao Iniciar",
"settings.page_size": "Tamanho da Página",
"settings.restart_required": "Por favor reinicie o TagStudio para que as mudanças façam efeito.",
"settings.show_filenames_in_grid": "Exibir nome dos arquivos",
"settings.show_recent_libraries": "Mostrar Bibliotecas Recentes",
"settings.splash.label": "Tela Inicial",
"settings.splash.option.classic": "Clássico (9.0)",
"settings.splash.option.default": "Padrão",
"settings.splash.option.goo_gears": "Código Aberto (9.4)",
"settings.splash.option.random": "Aleatório",
"settings.tag_click_action.add_to_search": "Adicionar Etiqueta à Pesquisa",
"settings.tag_click_action.label": "Ação de Clique da Etiqueta",
"settings.tag_click_action.open_edit": "Editar Etiqueta",
"settings.tag_click_action.set_search": "Pesquisar por Etiqueta",
"settings.theme.dark": "Escuro",
"settings.theme.label": "Tema:",
"settings.theme.light": "Claro",
"settings.theme.system": "Sistema",
"settings.thumb_cache_size.label": "Tamanho de Cache da Miniatura",
"settings.title": "Configurações",
"sorting.direction.ascending": "Ordem Ascendente",
"sorting.direction.descending": "Ordem Descendente",
"sorting.mode.random": "Aleatório",
"splash.opening_library": "Abrindo Biblioteca \"{library_path}\"...",
"status.deleted_file_plural": "{count} Arquivos Apagados!",
"status.deleted_file_singular": "1 Arquivo Apagado!",
"status.deleted_none": "Nenhum Arquivo Apagado.",
"status.deleted_partial_warning": "Apenas {count} arquivo(s) excluído(s)! Verifique se algum dos arquivos está faltando ou em uso.",
"status.deleting_file": "Apagando arquivo [{i}/{count}]: \"{path}\"...",
"status.library_backup_in_progress": "Salvando Backup da Biblioteca...",
"status.library_backup_success": "Backup da Biblioteca Salvo em: \"{path}\" ({time_span})",
@@ -321,18 +228,14 @@
"tag.confirm_delete": "Tem certeza que quer deletar a tag \"{tag_name}\"?",
"tag.create": "Criar Tag",
"tag.create_add": "Criar && Adicionar \"{query}\"",
"tag.disambiguation.tooltip": "Use esta etiqueta para desambiguação",
"tag.edit": "Editar Tag",
"tag.is_category": "É Categoria",
"tag.is_hidden": "Está Oculto",
"tag.name": "Nome",
"tag.new": "Nova Tag",
"tag.parent_tags": "Tags Pai",
"tag.parent_tags.add": "Adicionar Tag Pai",
"tag.remove": "Remover Tag",
"tag.search_for_tag": "Procurar por Tag",
"tag.shorthand": "Abreviação",
"tag.tag_name_required": "Nome da Tag (Obrigatório)",
"tag.view_limit": "Limite de visualização:",
"tag_manager.title": "Tags da sua biblioteca",
"trash.context.ambiguous": "Mover arquivo(s) para {trash_term}",

View File

@@ -195,7 +195,7 @@
"menu.file.open_create_library": "&Открыть/создать библиотеку",
"menu.file.open_library": "Открыть библиотеку",
"menu.file.open_recent_library": "Открыть последнюю",
"menu.file.refresh_directories": "Обновить папки",
"menu.file.refresh_directories": "&Обновить папки",
"menu.file.save_backup": "&Сохранить резервную копию библиотеки",
"menu.file.save_library": "Сохранить библиотеку",
"menu.help": "&Помощь",

View File

@@ -1,29 +1,12 @@
{
"about.config_path": "Konfigureringssökväg",
"about.description": "TagStudio är en bild- och filorganiseringsapplikation med ett underliggande etikettbaserat system som fokuserar på att ge frihet och flexibilitet till användaren. Inga proprietära program eller format, inget hav av sidofiler och ingen omstörtning av ditt filsystems struktur.",
"about.documentation": "Dokumentation",
"about.license": "Licens",
"about.module.found": "Hittade",
"about.title": "Om TagStudio",
"about.website": "Webbsida",
"app.git": "Git Commit",
"app.pre_release": "Förhandsutgåva",
"app.title": "{base_title} - Bibliotek '{library_dir}'",
"color.color_border": "Använd Sekundär Färg för Kant",
"color.confirm_delete": "Är du säker på att du vill ta bort färgen \"{color_name}\"?",
"color.delete": "Radera Etikett",
"color.import_pack": "Importera Färgpaket",
"color.name": "Namn",
"color.namespace.delete.prompt": "Är du säker på att du vill radera denna färgnamnrymd? ALLA färger i namnrymden kommer att raderas med den!",
"color.namespace.delete.title": "Radera Färgnamnrymd",
"color.new": "Ny Färg",
"color.placeholder": "Färg",
"color.primary": "Primärfärg",
"color.primary_required": "Primärfärg (Krävs)",
"color.secondary": "Sekundärfärg",
"color.title.no_color": "Ingen Färg",
"color_manager.title": "Hantera Etikettfärger",
"dependency.missing.title": "{dependency} Inte Funnen",
"drop_import.description": "Följande filer har namn som redan finns i biblioteket",
"drop_import.duplicates_choice.plural": "Följande {count} filer har namn som redan finns i biblioteket.",
"drop_import.duplicates_choice.singular": "Följande fil har ett namn som redan finns i biblioteket.",
@@ -32,49 +15,25 @@
"drop_import.progress.label.singular": "Importerar nya filer...\n1 Fil importerad.{suffix}",
"drop_import.progress.window_title": "Importera Filer",
"drop_import.title": "Konflikterande Filer",
"edit.color_manager": "Hantera Etikettfärger",
"edit.copy_fields": "Kopiera Fält",
"edit.paste_fields": "Klistra In Fält",
"edit.tag_manager": "Hantera Etiketter",
"entries.duplicate.merge": "Sammanslå Dubbla Poster",
"entries.duplicate.merge.label": "Sammanslår dubbla poster...",
"entries.duplicate.refresh": "Uppdatera Dubbla Poster",
"entries.duplicates.description": "Dubbla poster är definierade som flera poster som pekar på samma fil på datorn. Genom att slå ihop dessa poster kommer deras etiketter och metadata från dubbletterna att kombineras till en post. Dessa ska inte förväxlas med \"dubbla filer\", som är dubbletter av dina filer utanför TagStudio.",
"entries.generic.refresh_alt": "&Uppdatera",
"entries.generic.remove.removing": "Raderar poster",
"entries.generic.remove.removing_count": "Raderar {count} Poster...",
"entries.ignored.description": "Filposter räknas som \"ignorerade\" om de lades till biblioteket innan användarens ignoreringsregler (via '.ts_ignore' filen) uppdaterades för att exkludera det. Ignorerade filer behålls i biblioteket som standard för att förhindra att data förloras av misstag när ignoreringsreglerna uppdateras.",
"entries.ignored.ignored_count": "Ignorerade Poster: {count}",
"entries.ignored.remove": "Ta Bort Ignorerade Poster",
"entries.ignored.remove_alt": "&Ta Bort Ignorerade Poster",
"entries.ignored.scanning": "Skannar Bibliotek efter Ignorerade Poster...",
"entries.ignored.title": "Fixa Ignorerade Poster",
"entries.mirror": "Spegla",
"entries.mirror.confirmation": "Är du säker att du vill spegla följande {count} poster?",
"entries.mirror.label": "Speglar {idx}/{total} poster...",
"entries.mirror.title": "Speglar Poster",
"entries.mirror.window_title": "Spegla Poster",
"entries.remove.plural.confirm": "Är du säker att du vill radera följande {count} poster?",
"entries.remove.singular.confirm": "Är du säker på att du vill ta bort denna post från ditt bibliotek? Inga filer på disken kommer att raderas.",
"entries.running.dialog.new_entries": "Lägger Till {total} Nya Filposter...",
"entries.running.dialog.title": "Lägger Till Nya Filposter",
"entries.tags": "Etiketter",
"entries.remove.plural.confirm": "Är du säker att du vill radera följande {count} poster?",
"entries.generic.remove.removing": "Raderar poster",
"entries.unlinked.description": "Varje post i biblioteket är länkad till en fil i en av dina kataloger. Om en fil länkad till en post är flyttad eller borttagen utanför TagStudio blir den olänkad. Olänkade poster kan automatiskt bli omlänkade genom att söka genom dina kataloger, manuellt omlänkade av användaren eller tas bort om så önskas.",
"entries.unlinked.relink.attempting": "Försöker att länka om {index}/{unlinked_count} Poster, {fixed_count} Lyckades Länkas Om",
"entries.unlinked.relink.manual": "Länka om manuellt",
"entries.unlinked.relink.title": "Länkar om poster",
"entries.unlinked.remove": "Ta Bort Olänkade Poster",
"entries.unlinked.remove_alt": "&Ta Bort Olänkade Poster",
"entries.unlinked.scanning": "Skannar bibliotek efter olänkade poster...",
"entries.unlinked.search_and_relink": "Sök && Länka om",
"entries.unlinked.title": "Fixa olänkade poster",
"entries.unlinked.unlinked_count": "Olänkade Poster: {count}",
"ffmpeg.missing.description": "FFmpeg och/eller FFprobe hittades inte. FFmpeg krävs för uppspelning av multimedia och tumnaglar.",
"ffmpeg.missing.status": "{ffmpeg}: {ffmpeg_status}<br>{ffprobe}: {ffprobe_status}",
"field.copy": "Kopiera Fält",
"field.edit": "Redigera Fält",
"field.paste": "Klistra In Fält",
"file.date_added": "Datum Tillagd",
"file.date_created": "Skapad den",
"file.date_modified": "Senast ändrad",
"file.dimensions": "Dimensioner",

View File

@@ -1,10 +1,10 @@
{
"about.config_path": "கட்டமைப்பு பாதை",
"about.description": "முகவரிச்சீட்டுஅறை என்பது ஒரு புகைப்படம் மற்றும் கோப்பு அமைப்பு பயன்பாடாகும், இது பயனருக்கு விடுதலை மற்றும் நெகிழ்வுத்தன்மையை வழங்குவதில் கவனம் செலுத்துகிறது. தனியுரிம திட்டங்கள் அல்லது வடிவங்கள் இல்லை, பக்கவாட்டு கோப்புகளின் கடல் இல்லை, உங்கள் கோப்பு முறைமை கட்டமைப்பின் முழுமையான எழுச்சி இல்லை.",
"about.description": "டேக்ச்டுடியோ என்பது ஒரு புகைப்படம் மற்றும் கோப்பு அமைப்பு பயன்பாடாகும், இது பயனருக்கு விடுதலை மற்றும் நெகிழ்வுத்தன்மையை வழங்குவதில் கவனம் செலுத்துகிறது. தனியுரிம திட்டங்கள் அல்லது வடிவங்கள் இல்லை, பக்கவாட்டு கோப்புகளின் கடல் இல்லை, உங்கள் கோப்பு முறைமை கட்டமைப்பின் முழுமையான எழுச்சி இல்லை.",
"about.documentation": "ஆவணங்கள்",
"about.license": "உரிமம்",
"about.module.found": "காணப்பட்டது",
"about.title": "முகவரிச்சீட்டுஅறை பற்றி",
"about.title": "டேக்ச்டுடியோ பற்றி",
"about.website": "வலைத்தளம்",
"app.git": "அறிவிலி கமிட்",
"app.pre_release": "முன் வெளியீடு",
@@ -39,32 +39,21 @@
"entries.duplicate.merge": "நகல் உள்ளீடுகளை ஒன்றிணைக்கவும்",
"entries.duplicate.merge.label": "நகல் உள்ளீடுகளை ஒன்றிணைத்தல் ...",
"entries.duplicate.refresh": "நகல் உள்ளீடுகளைப் புதுப்பி",
"entries.duplicates.description": "மறுநுழைவுகள் என்பது, ஒரே கோப்பை குறிக்கும் பல நுழைவுகளை குறிக்கும். இவற்றை இணைப்பதால், அனைத்து மறுநுழைவுகளின் குறிச்சொற்களும் மெட்டாடேட்டாவும் ஒரே ஒட்டுமொத்த நுழைவாகச் சேர்க்கப்படும். இவற்றை 'மறுகோப்புகள்' என்பதுடன் குழப்பக் கூடாது, ஏனெனில் அவை முகவரிச்சீட்டுஅறைக்கு வெளியேயுள்ள கோப்புகளின் நகல்களாகும்.",
"entries.generic.refresh_alt": "&புதுப்பி",
"entries.duplicates.description": "மறுநுழைவுகள் என்பது, ஒரே கோப்பை குறிக்கும் பல நுழைவுகளை குறிக்கும். இவற்றை இணைப்பதால், அனைத்து மறுநுழைவுகளின் குறிச்சொற்களும் மெட்டாடேட்டாவும் ஒரே ஒட்டுமொத்த நுழைவாகச் சேர்க்கப்படும். இவற்றை 'மறுகோப்புகள்' என்பதுடன் குழப்பக் கூடாது, ஏனெனில் அவை டாக் ஸ்டுடியோவுக்கு வெளியேயுள்ள கோப்புகளின் நகல்களாகும்.",
"entries.generic.remove.removing": "உள்ளீடுகள் நீக்கப்படுகிறது",
"entries.generic.remove.removing_count": "{count} உள்ளீடுகளை நீக்குகிறது...",
"entries.ignored.description": "பயனரின் புறக்கணிப்பு விதிகள் ('.ts_ignore' கோப்பு வழியாக) நீக்கப்படுவதற்கு முன், நூலகத்தில் சேர்க்கப்பட்டால், கோப்பு உள்ளீடுகள் \"புறக்கணிக்கப்பட்டதாக\" கருதப்படும். புறக்கணிக்கப்பட்ட கோப்புகள், புறக்கணிப்பு விதிகளைப் புதுப்பிக்கும் போது, தற்செயலான தரவு இழப்பைத் தடுக்க, இயல்புநிலையாக நூலகத்தில் வைக்கப்படும்.",
"entries.ignored.ignored_count": "புறக்கணிக்கப்பட்ட உள்ளீடுகள்: {count}",
"entries.ignored.remove": "புறக்கணிக்கப்பட்ட உள்ளீடுகளை அகற்று",
"entries.ignored.remove_alt": "புறக்கணிக்கப்பட்ட உள்ளீடுகளை அகற்று&விடு",
"entries.ignored.scanning": "புறக்கணிக்கப்பட்ட உள்ளீடுகளுக்காக நூலகத்தை வருடு செய்கிறது...",
"entries.ignored.title": "புறக்கணிக்கப்பட்ட உள்ளீடுகளை சரிசெய்யவும்",
"entries.mirror": "& கண்ணாடி",
"entries.mirror.confirmation": "பின்வரும் உள்ளீடுகளைப் பிரதிபலிக்க விரும்புகிறீர்களா {count}?",
"entries.mirror.label": "{idx}/{total} உள்ளீடுகளைப் பிரதிபலிக்கப்படுகின்றது...",
"entries.mirror.title": "உள்ளீடுகள் பிரதிபழிக்கப்படுகின்றது",
"entries.mirror.window_title": "கண்ணாடி உள்ளீடுகள்",
"entries.remove.plural.confirm": "இந்த <b>{count}</b> உள்ளீடுகளை உங்கள் நூலகத்திலிருந்து நீக்க விரும்புகிறீர்களா? வட்டில் உள்ள எந்தக் கோப்புகளும் நீக்கப்படாது.",
"entries.remove.singular.confirm": "உங்கள் நூலகத்திலிருந்து இந்தப் பதிவை நிச்சயமாக அகற்ற விரும்புகிறீர்களா? வட்டில் உள்ள கோப்புகள் எதுவும் நீக்கப்படாது.",
"entries.remove.plural.confirm": "பின்வரும் உள்ளீடுகளை நிச்சயமாக நீக்க விரும்புகிறீர்களா {count}?",
"entries.running.dialog.new_entries": "{total} புதிய கோப்பு உள்ளீடுகளைச் சேர்ப்பது ...",
"entries.running.dialog.title": "புதிய கோப்பு உள்ளீடுகளைச் சேர்ப்பது",
"entries.tags": "குறிச்சொற்கள்",
"entries.unlinked.description": "ஒவ்வொரு நூலக நுழைவும் உங்கள் கோப்பகங்களில் ஒன்றில் ஒரு கோப்போடு இணைக்கப்பட்டுள்ளது. ஒரு நுழைவுடன் இணைக்கப்பட்ட ஒரு கோப்பு முகவரிச்சீட்டுஅறைக்கு வெளியே நகர்த்தப்பட்டால் அல்லது நீக்கப்பட்டால், அது பின்னர் இணைக்கப்படாததாகக் கருதப்படுகிறது.",
"entries.unlinked.description": "ஒவ்வொரு நூலக நுழைவும் உங்கள் கோப்பகங்களில் ஒன்றில் ஒரு கோப்போடு இணைக்கப்பட்டுள்ளது. ஒரு நுழைவுடன் இணைக்கப்பட்ட ஒரு கோப்பு டாக்ச்டுடியோவுக்கு வெளியே நகர்த்தப்பட்டால் அல்லது நீக்கப்பட்டால், அது பின்னர் இணைக்கப்படாததாகக் கருதப்படுகிறது.",
"entries.unlinked.relink.attempting": "{index}/{unlinked_count} உள்ளீடுகளை மீண்டும் இணைக்க முயற்சிக்கிறது, {fixed_count} மீண்டும் இணைக்கப்பட்டது",
"entries.unlinked.relink.manual": "& கையேடு மறுபரிசீலனை",
"entries.unlinked.relink.title": "உள்ளீடுகள் மீண்டும் இணைக்கப்படுகின்றது",
"entries.unlinked.remove": "இணைக்கப்படாத உள்ளீடுகளை அகற்று",
"entries.unlinked.remove_alt": "இணைக்கப்படாத உள்ளீடுகளை அகற்று&விடு",
"entries.unlinked.scanning": "இணைக்கப்படாத நுழைவுகளை புத்தககல்லரியில் சோதனை செய்யப்படுகிறது...",
"entries.unlinked.search_and_relink": "& தேடல் && relink",
"entries.unlinked.title": "இணைக்கப்படாத உள்ளீடுகளைச் சரிசெய்யவும்",
@@ -78,8 +67,8 @@
"file.date_created": "உருவாக்கப்பட்ட தேதி",
"file.date_modified": "மாற்றப்பட்ட தேதி",
"file.dimensions": "பரிமாணங்கள்",
"file.duplicates.description": "நகல் கோப்புகளை நிர்வகிக்க டுபெகுரு முடிவுகளை இறக்குமதி செய்வதை முகவரிச்சீட்டுஅறை ஆதரிக்கிறது.",
"file.duplicates.dupeguru.advice": "படிமம் முடிந்தவுடன், தேவையற்ற கோப்புகளை நீக்க DupeGuru ஐ பயன்படுத்தலாம். அதற்குப் பிறகு, இணைக்காத நுழைவுகளை நீக்க 'முகவரிச்சீட்டுஅறை' ின் 'இணைக்கப்படாத உள்ளீடுகளைச் சரிசெய்' அம்சத்தைக் கருவிகள் பட்டியில் பயன்படுத்தவும்.",
"file.duplicates.description": "நகல் கோப்புகளை நிர்வகிக்க டுபெகுரு முடிவுகளை இறக்குமதி செய்வதை டேக்ச்டுடியோ ஆதரிக்கிறது.",
"file.duplicates.dupeguru.advice": "படிமம் முடிந்தவுடன், தேவையற்ற கோப்புகளை நீக்க DupeGuru ஐ பயன்படுத்தலாம். அதற்குப் பிறகு, இணைக்காத நுழைவுகளை நீக்க 'டாக் ஸ்டுடியோ' ின் 'இணைக்கப்படாத உள்ளீடுகளைச் சரிசெய்' அம்சத்தைக் கருவிகள் பட்டியில் பயன்படுத்தவும்.",
"file.duplicates.dupeguru.file_extension": "DupeGuru கோப்புகள் (*.dupeguru)",
"file.duplicates.dupeguru.load_file": "& டுபெகுரு கோப்பை ஏற்றவும்",
"file.duplicates.dupeguru.no_file": "DupeGuru கோப்பு எதுவும் தேர்ந்தெடுக்கப்படவில்லை",
@@ -118,39 +107,33 @@
"generic.edit": "திருத்து",
"generic.edit_alt": "திருத்து (&e)",
"generic.filename": "கோப்புப்பெயர்",
"generic.missing": "காணவில்லை",
"generic.missing": "ல்லை",
"generic.navigation.back": "பின்",
"generic.navigation.next": "அடுத்தது",
"generic.no": "இல்லை",
"generic.none": "எதுவுமில்லை",
"generic.overwrite": "மேலெழுதும்",
"generic.overwrite_alt": "& மேலெழுதும்",
"generic.paste": "ஒட்டு",
"generic.recent_libraries": "சமீபத்திய நூலகங்கள்",
"generic.remove": "அகற்று",
"generic.remove_alt": "&நீக்கு",
"generic.rename": "மறுபெயரிடுங்கள்",
"generic.rename_alt": "& மறுபெயரிடுங்கள்",
"generic.reset": "மீட்டமை",
"generic.save": "சேமி",
"generic.skip": "தவிர்",
"generic.skip_alt": "& தவிர்க்கவும்",
"generic.yes": "ஆம்",
"home.search": "தேடு",
"home.search_entries": "தேடல் உள்ளீடுகள்",
"home.search_library": "தேடல் நூலகம்",
"home.search_tags": "குறிச்சொற்களைத் தேடு",
"home.show_hidden_entries": "மறைக்கப்பட்ட உள்ளீடுகளைக் காட்டு",
"home.thumbnail_size": "சின்னப்பட அளவு",
"home.thumbnail_size.extra_large": "கூடுதல் பெரிய சிறு உருவங்கள்",
"home.thumbnail_size.large": "பெரிய சிறு உருவங்கள்",
"home.thumbnail_size.medium": "நடுத்தர சிறு உருவங்கள்",
"home.thumbnail_size.mini": "மினி சிறு உருவங்கள்",
"home.thumbnail_size.small": "சிறிய சிறு உருவங்கள்",
"ignore.open_file": "வட்டில் கோப்பு \"{ts_ignore}\" எப்படி",
"json_migration.checking_for_parity": "சமத்துவத்தை சரிபார்க்கிறது ...",
"json_migration.creating_database_tables": "கவிமொ தரவுத்தள அட்டவணைகளை உருவாக்குதல் ...",
"json_migration.description": "<br> நூலக இடம்பெயர்வு செயல்முறையின் முடிவுகளைத் தொடங்கவும் முன்னோட்டமிடவும். மாற்றப்பட்ட நூலகம் <i> இல்லை </i> நீங்கள் \"இடம்பெயர்வு முடிக்கவும்\" என்பதைக் சொடுக்கு செய்யாவிட்டால் பயன்படுத்தப்படும். <br><br> நூலகத் தரவுகள் பொருந்தக்கூடிய மதிப்புகளைக் கொண்டிருக்க வேண்டும் அல்லது \"பொருந்திய\" லேபிளைக் கொண்டிருக்க வேண்டும். பொருந்தாத மதிப்புகள் சிவப்பு நிறத்தில் காண்பிக்கப்படும் மற்றும் அவர்களுக்கு அடுத்த \"<b> (!) </b>\" சின்னத்தைக் கொண்டிருக்கும். <br> <center> <i> இந்தச் செயல்முறை பெரிய நூலகங்களுக்குப் பல நிமிடங்கள்வரை ஆகலாம்.</i></center>",
"json_migration.description": "<br> நூலக இடம்பெயர்வு செயல்முறையின் முடிவுகளைத் தொடங்கவும் முன்னோட்டமிடவும். மாற்றப்பட்ட நூலகம் <i> இல்லை </i> நீங்கள் \"இடம்பெயர்வு முடிக்கவும்\" என்பதைக் சொடுக்கு செய்யாவிட்டால் பயன்படுத்தப்படும். <br> <br> நூலகத் தரவுகள் பொருந்தக்கூடிய மதிப்புகளைக் கொண்டிருக்க வேண்டும் அல்லது \"பொருந்திய\" லேபிளைக் கொண்டிருக்க வேண்டும். பொருந்தாத மதிப்புகள் சிவப்பு நிறத்தில் காண்பிக்கப்படும் மற்றும் அவர்களுக்கு அடுத்த \"<b> (!) </b>\" சின்னத்தைக் கொண்டிருக்கும். <br> <center> <i> இந்தச் செயல்முறை பெரிய நூலகங்களுக்குப் பல நிமிடங்கள்வரை ஆகலாம்.</i></center>",
"json_migration.discrepancies_found": "நூலக முரண்பாடுகள் காணப்படுகின்றன",
"json_migration.discrepancies_found.description": "அசல் மற்றும் மாற்றப்பட்ட நூலக வடிவங்களுக்கு இடையில் முரண்பாடுகள் காணப்பட்டன. தயவுசெய்து மதிப்பாய்வு செய்து இடம்பெயர்வு தொடர வேண்டுமா அல்லது ரத்து செய்ய என்பதைத் தேர்வுசெய்க.",
"json_migration.finish_migration": "இடம்பெயர்வு முடிக்கவும்",
@@ -164,7 +147,7 @@
"json_migration.heading.parent_tags": "பெற்றோர் குறிச்சொற்கள்:",
"json_migration.heading.paths": "பாதைகள்:",
"json_migration.heading.shorthands": "சுருக்கெழுத்து:",
"json_migration.info.description": "முகவரிச்சீட்டுஅறை பதிப்புகளுடன் உருவாக்கப்பட்ட கோப்புகளை நூலகம் சேமி <b> 9.4 மற்றும் கீழே </b> புதிய <b> v9.5+</b> வடிவத்திற்கு இடம்பெயர வேண்டும். <b> <i> இல்லை </i> </b> நீக்கப்பட வேண்டும், நகர்த்தப்படும் அல்லது மாற்றியமைக்கப்பட வேண்டும் </li> <li> புதிய V9.5+ சேமிக்கும் வடிவமைப்பை முகவரிச்சீட்டுஅறையின் முந்தைய பதிப்புகளில் திறக்க முடியாது </li> </ul> <h3> என்ன மாற்றப்பட்டுள்ளது: </h3> <ul> <li> \"குறிச்சொற்கள்\" குறிச்சொற்களால் மாற்றப்பட்டுள்ளன. முதலில் புலங்களில் குறிச்சொற்களைச் சேர்ப்பதற்கு பதிலாக, குறிச்சொற்கள் இப்போது கோப்பு உள்ளீடுகளில் நேரடியாகச் சேர்க்கப்படுகின்றன. குறிச்சொல் திருத்துதல் பட்டியலில் புதிய \"வகை\" சொத்துடன் குறிக்கப்பட்ட பெற்றோர் குறிச்சொற்களின் அடிப்படையில் அவை தானாகவே வகைகளாக ஒழுங்கமைக்கப்படுகின்றன. எந்தவொரு குறிச்சொல்லையும் ஒரு வகையாகக் குறிக்க முடியும், மேலும் குழந்தை குறிச்சொற்கள் வகைகளாகக் குறிக்கப்பட்ட பெற்றோர் குறிச்சொற்களுக்கு அடியில் தங்களை வரிசைப்படுத்தும். \"பிடித்த\" மற்றும் \"காப்பகப்படுத்தப்பட்ட\" குறிச்சொற்கள் இப்போது ஒரு புதிய \"மேவு குறிச்சொற்கள்\" குறிச்சொல்லிலிருந்து பெறப்படுகின்றன, இது இயல்புநிலையாக ஒரு வகையாகக் குறிக்கப்பட்டுள்ளது. </li> <li> குறிச்சொல் வண்ணங்கள் மாற்றப்பட்டு விரிவாக்கப்பட்டுள்ளன. சில வண்ணங்கள் மறுபெயரிடப்பட்டுள்ளன அல்லது ஒருங்கிணைக்கப்பட்டுள்ளன, இருப்பினும் எல்லா குறிச்சொல் வண்ணங்களும் V9.5 இல் உள்ள சரியான அல்லது நெருக்கமான போட்டிகளாக மாறும். </li> </ul> <ul>",
"json_migration.info.description": "டேக்ச்டுடியோ பதிப்புகளுடன் உருவாக்கப்பட்ட கோப்புகளை நூலகம் சேமிக்கவும் <b> 9.4 மற்றும் கீழே </b> புதிய <b> v9.5+</b> வடிவத்திற்கு இடம்பெயர வேண்டும். <b> <i> இல்லை </i> </b> நீக்கப்பட வேண்டும், நகர்த்தப்படும் அல்லது மாற்றியமைக்கப்பட வேண்டும் </li> <li> புதிய V9.5+ சேமிக்கும் வடிவமைப்பை டேக்ச்டுடியோவின் முந்தைய பதிப்புகளில் திறக்க முடியாது </li> </ul> <h3> என்ன மாற்றப்பட்டுள்ளது: </h3> <ul> <li> \"குறிச்சொற்கள்\" குறிச்சொற்களால் மாற்றப்பட்டுள்ளன. முதலில் புலங்களில் குறிச்சொற்களைச் சேர்ப்பதற்கு பதிலாக, குறிச்சொற்கள் இப்போது கோப்பு உள்ளீடுகளில் நேரடியாக சேர்க்கப்படுகின்றன. குறிச்சொல் திருத்துதல் பட்டியலில் புதிய \"வகை\" சொத்துடன் குறிக்கப்பட்ட பெற்றோர் குறிச்சொற்களின் அடிப்படையில் அவை தானாகவே வகைகளாக ஒழுங்கமைக்கப்படுகின்றன. எந்தவொரு குறிச்சொல்லையும் ஒரு வகையாகக் குறிக்க முடியும், மேலும் குழந்தை குறிச்சொற்கள் வகைகளாக குறிக்கப்பட்ட பெற்றோர் குறிச்சொற்களுக்கு அடியில் தங்களை வரிசைப்படுத்தும். \"பிடித்த\" மற்றும் \"காப்பகப்படுத்தப்பட்ட\" குறிச்சொற்கள் இப்போது ஒரு புதிய \"மேவு குறிச்சொற்கள்\" குறிச்சொல்லிலிருந்து பெறப்படுகின்றன, இது இயல்புநிலையாக ஒரு வகையாக குறிக்கப்பட்டுள்ளது. </Li> <li> குறிச்சொல் வண்ணங்கள் மாற்றப்பட்டு விரிவாக்கப்பட்டுள்ளன. சில வண்ணங்கள் மறுபெயரிடப்பட்டுள்ளன அல்லது ஒருங்கிணைக்கப்பட்டுள்ளன, இருப்பினும் எல்லா குறிச்சொல் வண்ணங்களும் V9.5 இல் உள்ள சரியான அல்லது நெருக்கமான போட்டிகளாக மாறும். </Li> </ul> <ul>",
"json_migration.migrating_files_entries": "இடம்பெயர்வு {entries:,d} கோப்பு உள்ளீடுகள் ...",
"json_migration.migration_complete": "இடம்பெயர்வு முடிந்தது!",
"json_migration.migration_complete_with_discrepancies": "இடம்பெயர்வு முடிந்தது, முரண்பாடுகள் காணப்படுகின்றன",
@@ -184,21 +167,9 @@
"library.refresh.scanning_preparing": "புதிய கோப்புகளுக்கான அடைவுகள் சோதனை செய்யப்படுகின்றது...\nதயாராகிறது...",
"library.refresh.title": "கோப்பகங்கள் புதுப்பிக்கப்படுகின்றன",
"library.scan_library.title": "புத்தககல்லரி சோதனை செய்யப்படுகிறது",
"library_info.cleanup": "தூய்மை",
"library_info.cleanup.backups": "நூலக காப்புப்பிரதிகள்:",
"library_info.cleanup.dupe_files": "நகல் கோப்புகள்:",
"library_info.cleanup.ignored": "புறக்கணிக்கப்பட்ட உள்ளீடுகள்:",
"library_info.cleanup.legacy_json": "எஞ்சியிருக்கும் மரபு நூலகம்:",
"library_info.cleanup.unlinked": "இணைக்கப்படாத உள்ளீடுகள்:",
"library_info.stats": "புள்ளிவிவரங்கள்",
"library_info.stats.colors": "குறிச்சொல் நிறங்கள்:",
"library_info.stats.entries": "உள்ளீடுகள்:",
"library_info.stats.fields": "புலங்கள்:",
"library_info.stats.macros": "மேக்ரோக்கள்:",
"library_info.stats.namespaces": "பெயர்வெளிகள்:",
"library_info.stats.tags": "குறிச்சொற்கள்:",
"library_info.title": "நூலகம் '{library_dir}'",
"library_info.version": "நூலக வடிவமைப்பு பதிப்பு: {version}",
"library_object.name": "பெயர்",
"library_object.name_required": "பெயர் (தேவை)",
"library_object.slug": "ஐடி ச்லக்",
@@ -216,16 +187,15 @@
"menu.edit.new_tag": "புதிய & குறிச்சொல்",
"menu.file": "கோப்பு (&f)",
"menu.file.clear_recent_libraries": "சமீபத்தியதை அழிக்கவும்",
"menu.file.close_library": " நூலகம் மூடு",
"menu.file.close_library": "& நூலகம் மூடு",
"menu.file.missing_library.message": "\"{library}\" நூலகத்தின் இருப்பிடத்தைக் கண்டுபிடிக்க முடியாது.",
"menu.file.missing_library.title": "நூலகம் இல்லை",
"menu.file.new_library": "புதிய நூலகம்",
"menu.file.open_backups_folder": "காப்புப்பிரதிகள் கோப்புறையைத் திறக்கவும்",
"menu.file.open_create_library": "& நூலகத்தைத் திறக்க/உருவாக்கவும்",
"menu.file.open_library": "திறந்த நூலகம்",
"menu.file.open_recent_library": "அண்மைக் கால திறப்பு",
"menu.file.refresh_directories": "கோப்பகத்தை புதுப்பிக்கவும்",
"menu.file.save_backup": " நூலக காப்புப்பிரதியை சேமிக்கவும்",
"menu.file.save_backup": "& நூலக காப்புப்பிரதியை சேமிக்கவும்",
"menu.file.save_library": "நூலகத்தை சேமிக்கவும்",
"menu.help": "உதவி (&h)",
"menu.help.about": "பற்றி",
@@ -234,23 +204,17 @@
"menu.select": "தேர்ந்தெடு",
"menu.settings": "அமைப்புகள் ...",
"menu.tools": "கருவிகள் (&t)",
"menu.tools.fix_duplicate_files": "& நகல் கோப்புகளை சரிசெய்யவும்",
"menu.tools.fix_ignored_entries": "&புறக்கணிக்கப்பட்ட உள்ளீடுகளைச் சரிசெய்யவும்",
"menu.tools.fix_duplicate_files": "நகல் & கோப்புகளை சரிசெய்யவும்",
"menu.tools.fix_unlinked_entries": "சரிசெய்யப்படாத உள்ளீடுகளை சரிசெய்யவும்",
"menu.view": "காண்க (&v)",
"menu.view.decrease_thumbnail_size": "சிறுபடத்தின் அளவைக் குறைக்கவும்",
"menu.view.increase_thumbnail_size": "சிறுபடத்தின் அளவை அதிகரிக்கவும்",
"menu.view.library_info": "நூலகம் &தகவல்",
"menu.window": "சாளரம்",
"namespace.create.description": "குறிச்சொற்கள் மற்றும் வண்ணங்கள் போன்ற பொருட்களின் குழுக்களை ஏற்றுமதி செய்வதற்கும் பகிர்வதற்கும் எளிதாக்கும் வகையில் பிரிக்கப்படுவதற்கு பெயர்வெளிகள் முகவரிச்சீட்டுஅறையால் பயன்படுத்தப்படுகின்றன. \"முகவரிச்சீட்டுஅறை\" உடன் தொடங்கும் பெயர்வெளிகள் உள் பயன்பாட்டிற்காக முகவரிச்சீட்டுஅறையால் ஒதுக்கப்பட்டுள்ளன.",
"namespace.create.description": "குறிச்சொற்கள் மற்றும் வண்ணங்கள் போன்ற பொருட்களின் குழுக்களை ஏற்றுமதி செய்வதற்கும் பகிர்வதற்கும் எளிதாக்கும் வகையில் பிரிக்கப்படுவதற்கு பெயர்வெளிகள் டேக்ச்டுடியோவால் பயன்படுத்தப்படுகின்றன. \"டேக்ச்டுடியோ\" உடன் தொடங்கும் பெயர்வெளிகள் உள் பயன்பாட்டிற்காக டேக்ச்டுடியோவால் ஒதுக்கப்பட்டுள்ளன.",
"namespace.create.description_color": "குறிச்சொல் வண்ணங்கள் பெயர்வெளிகளை வண்ணத் தட்டு குழுக்களாகப் பயன்படுத்துகின்றன. அனைத்து தனிப்பயன் வண்ணங்களும் முதலில் ஒரு பெயர்வெளி குழுவின் கீழ் இருக்க வேண்டும்.",
"namespace.create.title": "பெயர்வெளியை உருவாக்கவும்",
"namespace.new.button": "புதிய பெயர்வெளி",
"namespace.new.prompt": "தனிப்பயன் வண்ணங்களைச் சேர்க்கத் தொடங்க புதிய பெயர்வெளியை உருவாக்கவும்!",
"preview.ignored": "புறக்கணிக்கப்பட்டது",
"preview.multiple_selection": "<b> {count} </b> தேர்ந்தெடுக்கப்பட்ட உருப்படிகள்",
"preview.no_selection": "உருப்படிகள் எதுவும் தேர்ந்தெடுக்கப்படவில்லை",
"preview.unlinked": "இணைக்கப்படவில்லை",
"select.add_tag_to_selected": "தேர்ந்தெடுக்கப்பட்டவருக்கு குறிச்சொல்லைச் சேர்க்கவும்",
"select.all": "அனைத்தையும் தெரிவுசெய்",
"select.clear": "தெளிவான தேர்வு",
@@ -264,23 +228,15 @@
"settings.filepath.option.full": "முழு பாதைகளையும் காட்டு",
"settings.filepath.option.name": "கோப்பு பெயர்களைக் காட்டு",
"settings.filepath.option.relative": "உறவினர் பாதைகளைக் காட்டு",
"settings.generate_thumbs": "சிறுபட உருவாக்கம்",
"settings.global": "உலகளாவிய அமைப்புகள்",
"settings.hourformat.label": "24 மணி நேர நேரம்",
"settings.infinite_scroll": "எல்லையற்ற ச்க்ரோலிங்",
"settings.language": "மொழி",
"settings.library": "நூலக அமைப்புகள்",
"settings.open_library_on_start": "தொடக்கத்தில் நூலகத்தைத் திறக்கவும்",
"settings.page_size": "பக்க அளவு",
"settings.restart_required": "மாற்றங்கள் நடைமுறைக்கு வருவதற்கு முகவரிச்சீட்டுஅறையை மறுதொடக்கம் செய்.",
"settings.restart_required": "மாற்றங்கள் நடைமுறைக்கு வருவதற்கு டேக்ச்டுடியோவை மறுதொடக்கம் செய்யுங்கள்.",
"settings.show_filenames_in_grid": "கட்டத்தில் கோப்பு பெயர்களைக் காட்டு",
"settings.show_recent_libraries": "அண்மைக் கால நூலகங்களைக் காட்டு",
"settings.splash.label": "ச்பிளாச் திரை",
"settings.splash.option.classic": "கிளாசிக் (9.0)",
"settings.splash.option.default": "இயல்புநிலை",
"settings.splash.option.goo_gears": "திறந்த மூல (9.4)",
"settings.splash.option.ninety_five": "'95 (9.5)",
"settings.splash.option.random": "சீரற்ற",
"settings.tag_click_action.add_to_search": "தேடுவதற்கு குறிச்சொல்லைச் சேர்க்கவும்",
"settings.tag_click_action.label": "குறிச்சொல் செயலை சொடுக்கு செய்க",
"settings.tag_click_action.open_edit": "குறிச்சொல்லைத் திருத்து",
@@ -289,12 +245,10 @@
"settings.theme.label": "தீம்:",
"settings.theme.light": "ஒளி",
"settings.theme.system": "மண்டலம்",
"settings.thumb_cache_size.label": "சிறுபடம் தற்காலிக சேமிப்பு அளவு",
"settings.title": "அமைப்புகள்",
"settings.zeropadding.label": "தேதி பூச்சிய-பேடிங்",
"sorting.direction.ascending": "ஏறுதல்",
"sorting.direction.descending": "இறங்கு",
"sorting.mode.random": "சீரற்ற",
"splash.opening_library": "\"{library_path}\" ஐ திறக்கும் ...",
"status.deleted_file_plural": "நீக்கப்பட்டது {count} கோப்புகள்!",
"status.deleted_file_singular": "1 கோப்பு நீக்கப்பட்டது!",
@@ -326,7 +280,6 @@
"tag.disambiguation.tooltip": "இந்த குறிச்சொல்லைப் பயன்படுத்தவும்",
"tag.edit": "குறிச்சொல்லைத் திருத்து",
"tag.is_category": "வகை",
"tag.is_hidden": "மறைக்கப்பட்டுள்ளது",
"tag.name": "பெயர்",
"tag.new": "புதிய குறிச்சொல்",
"tag.parent_tags": "பெற்றோர் குறிச்சொற்கள்",
@@ -341,8 +294,8 @@
"trash.context.ambiguous": "கோப்புகளை நகர்த்தவும்) {trash_term}",
"trash.context.plural": "கோப்புகளை {trash_term} பெறுநர் க்கு நகர்த்தவும்",
"trash.context.singular": "கோப்பை {trash_term} பெறுநர் க்கு நகர்த்தவும்",
"trash.dialog.disambiguation_warning.plural": "இது அவற்றை முகவரிச்சீட்டுஅறை <i> மற்றும் </i> உங்கள் கோப்பு முறைமையிலிருந்து அகற்றும்!",
"trash.dialog.disambiguation_warning.singular": "இது முகவரிச்சீட்டுஅறை <i> மற்றும் </i> உங்கள் கோப்பு முறைமையிலிருந்து அகற்றப்படும்!",
"trash.dialog.disambiguation_warning.plural": "இது அவற்றை டேக்ச்டுடியோ <i> மற்றும் </i> உங்கள் கோப்பு முறைமையிலிருந்து அகற்றும்!",
"trash.dialog.disambiguation_warning.singular": "இது டேக்ச்டுடியோ <i> மற்றும் </i> உங்கள் கோப்பு முறைமையிலிருந்து அகற்றப்படும்!",
"trash.dialog.move.confirmation.plural": "இந்த {count} கோப்புகளை {trash_term} க்கு நகர்த்த விரும்புகிறீர்களா?",
"trash.dialog.move.confirmation.singular": "இந்த கோப்பை {trash_term} with க்கு நகர்த்த விரும்புகிறீர்களா?",
"trash.dialog.permanent_delete_warning": "<b> எச்சரிக்கை! </b> இந்தக் கோப்பை {trash_term} க்கு மாற்ற முடியாவிட்டால், இது <b> நிரந்தரமாக நீக்கப்படும்! </b>",
@@ -350,9 +303,6 @@
"trash.dialog.title.singular": "கோப்பை அழி",
"trash.name.generic": "குப்பை",
"trash.name.windows": "மறுசுழற்சி பின்",
"version_modal.description": "முகவரிச்சீட்டுஅறை இன் புதிய பதிப்பு கிடைக்கிறது! சமீபத்திய வெளியீட்டை நீங்கள் பதிவிறக்கம் செய்யலாம் <a href=\"https://github.com/TagStudioDev/TagStudio/releases/latest\">அறிவிலிமையம்</a>.",
"version_modal.status": "நிறுவப்பட்ட பதிப்பு: {installed_version}<br>அண்மைகால வெளியீட்டு பதிப்பு: {latest_release_version}",
"version_modal.title": "முகவரிச்சீட்டுஅறை புதுப்பிப்பு கிடைக்கிறது",
"view.size.0": "மினி",
"view.size.1": "சிறிய",
"view.size.2": "சராசரி",

View File

@@ -1,8 +0,0 @@
{
"about.config_path": "เส้นทางกำหนดค่า",
"about.description": "TagStudio เป็นแอปพลิเคชันจัดระเบียบรูปภาพและไฟล์ที่มีระบบพื้นฐานแบบแท็ก ซึ่งเน้นความยืดหยุ่นให้แก่ผู้ใช้ ไม่มีโปรแกรมหรือรูปแบบเฉพาะ ไม่มีไฟล์เสริมจำนวนมาก และไม่มีการเปลี่ยนแปลงโครงสร้างระบบไฟล์ของคุณอย่างสิ้นเชิง",
"about.documentation": "เอกสารประกอบ",
"about.license": "ใบอนุญาต",
"about.module.found": "พบ",
"about.title": "เกี่ยวกับ TagStudio"
}

View File

@@ -41,20 +41,12 @@
"entries.duplicate.refresh": "o kama jo e sona tan ijo sama",
"entries.duplicates.description": "ken la, ijo mute li jo e ijo lon sama. ni li \"ijo sama\". sina wan e ona la, ijo sama li kama wan li jo e sona ale tan ijo sama ale.",
"entries.generic.remove.removing": "mi weka e ijo",
"entries.generic.remove.removing_count": "mi weka e ijo {count}...",
"entries.ignored.description": "sina pana e ijo lipu lon tomo, la sina weka e ona lon lawa toki pi lukin ala la, ona li \"lukin ala\". meso la, lipu pi lukin ala li lon tomo tan ni: ni ala la sina ante e lawa toki pi lukin ala la, nanpa li ken pakala.",
"entries.ignored.ignored_count": "ijo pi lukin ala: {count}",
"entries.ignored.remove": "o weka e ijo pi lukin ala",
"entries.ignored.remove_alt": "o weka e ijo pi lukin ala (&V)",
"entries.ignored.scanning": "mi alasa e ijo pi lukin ala...",
"entries.ignored.title": "o pona e ijo pi lukin ala",
"entries.mirror": "jasi&ma",
"entries.mirror.confirmation": "mi jasima e ijo {count}. ni li pona anu seme?",
"entries.mirror.label": "mi jasima e ijo {idx}/{total}...",
"entries.mirror.title": "mi jasima e ijo",
"entries.mirror.window_title": "o jasima e ijo",
"entries.remove.plural.confirm": "mi weka e ijo <b>{count}</b>. ni li pona anu seme? poki lipu pi ilo sina la lipu ala li weka.",
"entries.remove.singular.confirm": "mi weka e ijo ni. ni li pona anu seme? poki lipu pi ilo sina la lipu ala li weka.",
"entries.running.dialog.new_entries": "mi pana e lipu sin {total}...",
"entries.running.dialog.title": "mi pana e lipu sin",
"entries.tags": "poki",
@@ -62,8 +54,6 @@
"entries.unlinked.relink.attempting": "mi o pana e ijo lon tawa ijo {index}/{unlinked_count}. mi pana e ijo lon tawa ijo {fixed_count}",
"entries.unlinked.relink.manual": "sina o pana e ijo lon tawa ijo (&M)",
"entries.unlinked.relink.title": "mi pana e ijo lon tawa ijo",
"entries.unlinked.remove": "o weka e ijo pi ijo lon ala",
"entries.unlinked.remove_alt": "o weka e ijo pi ijo lon ala (&V)",
"entries.unlinked.scanning": "mi o alasa e ijo pi ijo lon ala...",
"entries.unlinked.search_and_relink": "o ala&sa o pana e ijo lon tawa ijo",
"entries.unlinked.title": "o pona e ijo pi ijo lon ala",
@@ -130,21 +120,17 @@
"generic.rename_alt": "o nimi sin (&R)",
"generic.reset": "o open sin",
"generic.save": "o awen",
"generic.skip": "o pali ala",
"generic.skip_alt": "o pali ala (&S)",
"generic.yes": "lon",
"home.search": "o alasa",
"home.search_entries": "o alasa lon ijo",
"home.search_library": "o alasa lon tomo",
"home.search_tags": "o alasa lon poki",
"home.show_hidden_entries": "o ken lukin e lipu pi ken ala lukin",
"home.thumbnail_size": "suli sitelen",
"home.thumbnail_size.extra_large": "sitelen pi suli mute",
"home.thumbnail_size.large": "sitelen suli",
"home.thumbnail_size.medium": "sitelen meso",
"home.thumbnail_size.mini": "sitelen pi lili mute",
"home.thumbnail_size.small": "sitelen lili",
"ignore.open_file": "o ken lukin e lipu \"{ts_ignore}\" lon ilo sina",
"json_migration.checking_for_parity": "mi alasa e nasin tu...",
"json_migration.description": "<br>o open e tawa tomo o lukin e pini. sina pilin ala e \"o pini e tawa\" la, mi kepeken <i>ala</i> e tomo ante. <br><br>sona tomo o jo e nanpa sama anu toki \"sama\" la ale li pona. nanpa ante li loje li jo e sitelen \"<b>(!)</b>\" lon poka ona.<br><center><i>tomo li suli la pali ni li lanpan e tenpo mute.</i></center>",
"json_migration.discrepancies_found": "mi lukin e ike pi tomo sina",
@@ -179,17 +165,12 @@
"library.refresh.scanning_preparing": "mi alasa e ijo sin lon tomo...\nmi kama pona...",
"library.refresh.title": "mi kama jo e sin lon tomo",
"library.scan_library.title": "mi o lukin e tomo",
"library_info.cleanup": "jaki",
"library_info.cleanup.backups": "sama awen tomo:",
"library_info.cleanup.ignored": "ijo pi lukin ala:",
"library_info.stats": "sona nanpa",
"library_info.stats.colors": "kule poki:",
"library_info.stats.entries": "ijo:",
"library_info.stats.fields": "ma:",
"library_info.stats.namespaces": "ma nimi:",
"library_info.stats.tags": "poki:",
"library_info.title": "tomo '{library_dir}'",
"library_info.version": "nanpa pi nasin tomo: {version}",
"library_object.name": "nimi",
"library_object.name_required": "nimi (wile mute)",
"library_object.slug": "ID Slug",
@@ -211,12 +192,10 @@
"menu.file.missing_library.message": "mi ken ala lukin e lon pi tomo \"{library}\".",
"menu.file.missing_library.title": "tomo pi lon ala",
"menu.file.new_library": "o sin e tomo",
"menu.file.open_backups_folder": "o open e kulupu pi sama awen",
"menu.file.open_create_library": "o &open/pali e tomo",
"menu.file.open_library": "o open e tomo",
"menu.file.open_recent_library": "o open e poka",
"menu.file.refresh_directories": "o lukin sin lon tomo (&R)",
"menu.file.save_backup": "o awen e &sama awen tomo",
"menu.file.save_library": "o awen e sona tomo",
"menu.help": "mi jo e toki seme (&H)",
"menu.help.about": "sona",
@@ -226,7 +205,6 @@
"menu.settings": "lawa toki...",
"menu.tools": "ilo (&T)",
"menu.tools.fix_duplicate_files": "o pona e lipu sama (&D)",
"menu.tools.fix_ignored_entries": "o pona e &ijo pi lukin ala",
"menu.tools.fix_unlinked_entries": "o pona e ijo pi ijo lon ala (&U)",
"menu.view": "o lukin (&V)",
"menu.view.decrease_thumbnail_size": "o lili e sitelen",
@@ -238,14 +216,12 @@
"namespace.create.title": "o pali sin e ma nimi",
"namespace.new.button": "o pali sin e ma nimi",
"namespace.new.prompt": "o pali sin e ma nimi tawa pana e kule sina!",
"preview.ignored": "lukin ala",
"preview.multiple_selection": "sina jo e ijo <b>{count}</b>",
"preview.no_selection": "ijo ala li anu",
"select.add_tag_to_selected": "o pana e poki tawa jo sina",
"select.all": "o jo e ale",
"select.clear": "o weka e jo sina",
"select.inverse": "o jasima e ni",
"settings.clear_thumb_cache.title": "o weka e poki sitelen",
"settings.dateformat.english": "nasin Inli",
"settings.dateformat.international": "nasin pi ma mute",
"settings.dateformat.label": "nasin tenpo",
@@ -253,7 +229,6 @@
"settings.filepath.label": "ken lukin pi nasin lipu",
"settings.filepath.option.full": "o ken lukin e nasin wan",
"settings.filepath.option.name": "o ken lukin e nimi lipu taso",
"settings.generate_thumbs": "pali pi sitelen",
"settings.global": "lawa toki pi ma ale",
"settings.hourformat.label": "tenpo pi kipisi 24",
"settings.language": "toki",
@@ -271,17 +246,13 @@
"settings.theme.label": "nasin kule:",
"settings.theme.light": "walo",
"settings.theme.system": "ilo sina",
"settings.thumb_cache_size.label": "suli pi poki sitelen",
"settings.title": "lawa toki",
"sorting.direction.ascending": "tawa sewi",
"sorting.direction.descending": "tawa anpa",
"splash.opening_library": "mi open e tomo \"{library_path}\"...",
"status.deleted_file_plural": "mi weka e lipu {count}!",
"status.deleted_file_singular": "mi weka e lipu 1!",
"status.deleted_none": "mi weka e lipu ala.",
"status.deleted_partial_warning": "mi weka e lipu {count} taso! o lukin tan ni: lipu li weka anu ijo li kepeken ona anu seme.",
"status.deleting_file": "mi weka e lipu [{i}/{count}]: \"{path}\"...",
"status.library_backup_in_progress": "mi awen e sama awen tomo...",
"status.library_backup_success": "tomo sama li lon: \"{path}\" ({time_span})",
"status.library_closed": "tomo li pini ({time_span})",
"status.library_closing": "mi pini e tomo...",
@@ -303,10 +274,8 @@
"tag.confirm_delete": "sina wile ala wile weka e poki \"{tag_name}\"?",
"tag.create": "o pali sin e poki",
"tag.create_add": "o pali sin && o pana e \"{query}\"",
"tag.disambiguation.tooltip": "o kepeken poki ni lon nimi",
"tag.edit": "o ante e poki",
"tag.is_category": "poki ala poki",
"tag.is_hidden": "ken ala lukin",
"tag.name": "nimi",
"tag.new": "poki sin",
"tag.parent_tags": "poki mama",
@@ -330,9 +299,6 @@
"trash.dialog.title.singular": "o weka e lipu",
"trash.name.generic": "poki pi ijo weka",
"trash.name.windows": "poki pi ijo weka",
"version_modal.description": "nanpa sin pi ilo Tagstudio li lon! sina ken kama jo e ona tan <a href=\"https://github.com/TagStudioDev/TagStudio/releases/latest\">ma Github</a>.",
"version_modal.status": "nanpa ni: {installed_version}<br>nanpa sin: {latest_release_version}",
"version_modal.title": "nanpa sin pi ilo Tagstudio li lon",
"view.size.0": "lili mute",
"view.size.1": "lili",
"view.size.2": "meso",

View File

@@ -182,7 +182,7 @@
"menu.edit.new_tag": "Yeni &Etiket",
"menu.file": "&Dosya",
"menu.file.clear_recent_libraries": "Yakın Geçmişi Temizle",
"menu.file.close_library": "Kütüphaneyi Kapat",
"menu.file.close_library": "Kütüphaneyi &Kapat",
"menu.file.new_library": "Yeni Kütüphane",
"menu.file.open_create_library": "Kütüphane &Aç/Oluştur",
"menu.file.open_library": "Kütüphane Aç",

View File

@@ -40,13 +40,7 @@
"entries.duplicate.merge.label": "正在合并重复项目...",
"entries.duplicate.refresh": "重新整理重复项目",
"entries.duplicates.description": "重复项目被定义为多个指向磁盘上同一文件的项目。合并这些项目将把所有重复项目的标签和元数据整合为一个统一的项目。这与“重复文件”不同,后者是指在 TagStudio 之外的文件本身的重复。",
"entries.generic.refresh_alt": "重新整理(&r)",
"entries.generic.remove.removing": "正在删除项目",
"entries.generic.remove.removing_count": "正在删除 {count} 个项目...",
"entries.ignored.ignored_count": "忽略项目: {count}",
"entries.ignored.remove": "删除忽略项目",
"entries.ignored.remove_alt": "删除忽略项目(&v)",
"entries.ignored.title": "修复忽略项目",
"entries.mirror": "镜像(&m)",
"entries.mirror.confirmation": "您确定要镜像以下 {count} 条项目吗?",
"entries.mirror.label": "正在镜像 {idx}/{total} 个项目...",
@@ -60,8 +54,6 @@
"entries.unlinked.relink.attempting": "正在尝试重新链接 {index}/{unlinked_count} 个项目, {fixed_count} 个项目成功重链",
"entries.unlinked.relink.manual": "手动重新链接(&m)",
"entries.unlinked.relink.title": "正在重新链接项目",
"entries.unlinked.remove": "删除未链接项目",
"entries.unlinked.remove_alt": "删除未链接项目(&v)",
"entries.unlinked.scanning": "正在扫描仓库以寻找未链接的项目...",
"entries.unlinked.search_and_relink": "搜索并重新链接(&s)",
"entries.unlinked.title": "修复未链接的项目",
@@ -118,21 +110,17 @@
"generic.missing": "缺失",
"generic.navigation.back": "返回",
"generic.navigation.next": "下一个",
"generic.no": "否",
"generic.none": "无",
"generic.overwrite": "覆盖",
"generic.overwrite_alt": "覆盖(&o)",
"generic.paste": "粘贴",
"generic.recent_libraries": "最近使用的仓库",
"generic.remove": "删除",
"generic.remove_alt": "删除(&r)",
"generic.rename": "重命名",
"generic.rename_alt": "重命名(&r)",
"generic.reset": "重置",
"generic.save": "保存",
"generic.skip": "跳过",
"generic.skip_alt": "跳过(&s)",
"generic.yes": "是",
"home.search": "搜索",
"home.search_entries": "搜索项目",
"home.search_library": "搜索仓库",
@@ -179,16 +167,9 @@
"library.refresh.scanning_preparing": "正在扫描文件夹中的新文件...\n准备中...",
"library.refresh.title": "正在刷新目录",
"library.scan_library.title": "正在扫描仓库",
"library_info.cleanup": "清理",
"library_info.cleanup.dupe_files": "重复文件:",
"library_info.cleanup.ignored": "忽略项目:",
"library_info.cleanup.unlinked": "未链接项目:",
"library_info.stats.colors": "标签颜色:",
"library_info.stats.entries": "项目:",
"library_info.stats.fields": "字段:",
"library_info.stats.namespaces": "命名空间:",
"library_info.stats.tags": "标签:",
"library_info.title": "仓库 '{library_dir}'",
"library_object.name": "仓库名",
"library_object.name_required": "仓库名(必填)",
"library_object.slug": "ID 短链",
@@ -210,7 +191,6 @@
"menu.file.missing_library.message": "无法找到资源库 \"{library}\" 的存储位置。",
"menu.file.missing_library.title": "仓库缺失",
"menu.file.new_library": "新建仓库",
"menu.file.open_backups_folder": "打开备份文件夹",
"menu.file.open_create_library": "打开/创建仓库(&o)",
"menu.file.open_library": "打开仓库",
"menu.file.open_recent_library": "打开最近仓库",
@@ -224,11 +204,9 @@
"menu.select": "选择",
"menu.settings": "设置...",
"menu.tools": "工具(&t)",
"menu.tools.fix_duplicate_files": "修复重复文件(&d)",
"menu.tools.fix_ignored_entries": "修复忽略项目(&i)",
"menu.tools.fix_duplicate_files": "修复重复文件(&f)",
"menu.tools.fix_unlinked_entries": "修复未链接项目(&u)",
"menu.view": "显示(&v)",
"menu.view.decrease_thumbnail_size": "缩减缩略图大小",
"menu.window": "选项(Window)",
"namespace.create.description": "命名空间由 TagStudio 用于将标签和颜色等项目分组,以便于导出和共享。以 \"TagStudio\" 开头的命名空间为 TagStudio 保留,用于内部使用。",
"namespace.create.description_color": "标签颜色使用命名空间作为颜色调色板组。所有自定义颜色必须首先归属于一个命名空间组。",
@@ -237,7 +215,6 @@
"namespace.new.prompt": "创建一个新的命名空间来开始添加自定义颜色!",
"preview.multiple_selection": "已选择 <b>{count}</b> 个项目",
"preview.no_selection": "尚未选择项目",
"preview.unlinked": "未链接",
"select.add_tag_to_selected": "添加标签到已选择的项目",
"select.all": "全选",
"select.clear": "清除选择",
@@ -251,10 +228,8 @@
"settings.filepath.option.full": "显示完整路径",
"settings.filepath.option.name": "仅显示文件名",
"settings.filepath.option.relative": "显示相对路径",
"settings.generate_thumbs": "缩略图生成",
"settings.global": "全局设置",
"settings.hourformat.label": "24小时制",
"settings.infinite_scroll": "无限滚动",
"settings.language": "语言",
"settings.library": "仓库设置",
"settings.open_library_on_start": "在启动时打开仓库",

View File

@@ -25,8 +25,8 @@
"color_manager.title": "管理標籤顏色",
"dependency.missing.title": "未找到 {dependency}",
"drop_import.description": "以下檔案與文件庫中已存在的檔案路徑重複",
"drop_import.duplicates_choice.plural": "以下 {count} 個檔案與文件庫中已存在的檔案路徑重複",
"drop_import.duplicates_choice.singular": "以下檔案與文件庫中已存在的檔案路徑重複",
"drop_import.duplicates_choice.plural": "以下 {count} 個檔案與文件庫中已存在的檔案路徑重複",
"drop_import.duplicates_choice.singular": "以下檔案與文件庫中已存在的檔案路徑重複",
"drop_import.progress.label.initial": "正在匯入新檔案...",
"drop_import.progress.label.plural": "正在匯入新檔案...\n已匯入 {count} 個檔案。{suffix}",
"drop_import.progress.label.singular": "正在匯入新檔案...\n已匯入 1 個檔案。{suffix}",
@@ -40,22 +40,13 @@
"entries.duplicate.merge.label": "正在合併重複項目...",
"entries.duplicate.refresh": "重新整理重複項目",
"entries.duplicates.description": "重複項目的定義為多個項目指向硬碟中的同一個檔案。合併這些重複項目會將其所有的標籤和元資料合併為一個單獨的項目。這些並不是重複的檔案,重複的檔案是 TagStudio 以外的重複檔案。",
"entries.generic.refresh_alt": "重新整理 (&R)",
"entries.generic.remove.removing": "正在刪除項目",
"entries.generic.remove.removing_count": "正在刪除 {count} 個項目...",
"entries.ignored.description": "如果檔案項目在忽略規則(「.ts_ignore」檔案變更使其被排除前已加入文件庫它們會視為「忽略」。為了防範在忽略規則變更造成資料遺失被忽略的檔案預設會繼續留在文件庫裡。",
"entries.ignored.ignored_count": "忽略項目:{count}",
"entries.ignored.remove": "刪除忽略項目",
"entries.ignored.remove_alt": "刪除忽略項目 (&V)",
"entries.ignored.scanning": "正在文件庫掃描忽略項目...",
"entries.ignored.title": "修復忽略項目",
"entries.mirror": "鏡像 (&M)",
"entries.mirror.confirmation": "您確定要鏡像 {count} 個項目嗎?",
"entries.mirror.label": "正在鏡像 {idx}/{total} 個項目...",
"entries.mirror.title": "鏡像項目",
"entries.mirror.window_title": "鏡像項目",
"entries.remove.plural.confirm": "您確定要刪除 <b>{count}</b> 個項目嗎?硬碟上不會有檔案被刪除。",
"entries.remove.singular.confirm": "您確定要從您的文件庫刪除這個項目嗎? 硬碟上不會有檔案被刪除。",
"entries.remove.plural.confirm": "您確定要刪除 {count} 個項目嗎?",
"entries.running.dialog.new_entries": "正在加入 {total} 個新檔案項目...",
"entries.running.dialog.title": "正在加入新檔案項目",
"entries.tags": "標籤",
@@ -63,8 +54,6 @@
"entries.unlinked.relink.attempting": "正在嘗試重新連接 {index}/{unlinked_count} 個項目,已成功重新連接 {fixed_count} 個",
"entries.unlinked.relink.manual": "手動重新連接 (&M)",
"entries.unlinked.relink.title": "正在重新連接",
"entries.unlinked.remove": "刪除未連接項目",
"entries.unlinked.remove_alt": "刪除未連接項目 (&V)",
"entries.unlinked.scanning": "正在掃描文件庫中的未連接項目...",
"entries.unlinked.search_and_relink": "搜尋並重新連接 (&S)",
"entries.unlinked.title": "修復未連接項目",
@@ -78,7 +67,7 @@
"file.date_created": "建立日期",
"file.date_modified": "修改日期",
"file.dimensions": "尺寸",
"file.duplicates.description": "TagStudio 支援匯入 DupeGuru 結果來管理重複的檔案",
"file.duplicates.description": "TagStudio 支援匯入 DupeGuru 結果來管理重複的檔案",
"file.duplicates.dupeguru.advice": "在鏡像之後,您可以使用 DupeGuru 來刪除不需要的檔案。之後,利用 TagStudio 的「修復未連接項目」功能來刪除未連接項目。",
"file.duplicates.dupeguru.file_extension": "DupeGuru 檔案 (*.dupeguru)",
"file.duplicates.dupeguru.load_file": "匯入 DupeGuru 檔案 (&L)",
@@ -121,21 +110,17 @@
"generic.missing": "遺失",
"generic.navigation.back": "返回",
"generic.navigation.next": "下一個",
"generic.no": "否",
"generic.none": "無",
"generic.overwrite": "覆寫",
"generic.overwrite_alt": "覆寫 (&O)",
"generic.paste": "貼上",
"generic.recent_libraries": "最近使用的文件庫",
"generic.remove": "刪除",
"generic.remove_alt": "刪除 (&R)",
"generic.rename": "重新命名",
"generic.rename_alt": "重新命名 (&R)",
"generic.reset": "重設",
"generic.save": "儲存",
"generic.skip": "跳過",
"generic.skip_alt": "跳過 (&S)",
"generic.yes": "是",
"home.search": "搜尋",
"home.search_entries": "搜尋項目",
"home.search_library": "搜尋文件庫",
@@ -146,7 +131,6 @@
"home.thumbnail_size.medium": "中縮圖",
"home.thumbnail_size.mini": "迷你縮圖",
"home.thumbnail_size.small": "小縮圖",
"ignore.open_file": "在硬碟顯示「{ts_ignore}」檔案",
"json_migration.checking_for_parity": "正在檢查一致性...",
"json_migration.creating_database_tables": "正在建立資料庫表格...",
"json_migration.description": "<br>開啟並預覽文件庫遷移過程。除非您按下「完成遷移」,否則被遷移的文件庫<i>不會</i>被使用。<br><br>文件庫資料應該是一致的或者要有個「已一致」標籤。不一致的資料會以紅色顯示並會有「<b>(!)</b>」標示在旁邊。<br><center><i>對於較大的文件庫,這個過程可能會花到幾分鐘以上。</i></center>",
@@ -183,21 +167,9 @@
"library.refresh.scanning_preparing": "正在掃描目錄尋找新檔案...\n準備中...",
"library.refresh.title": "重新整理目錄",
"library.scan_library.title": "掃描文件庫",
"library_info.cleanup": "清理",
"library_info.cleanup.backups": "文件庫備份:",
"library_info.cleanup.dupe_files": "重複檔案:",
"library_info.cleanup.ignored": "忽略項目:",
"library_info.cleanup.legacy_json": "遺留舊版文件庫:",
"library_info.cleanup.unlinked": "未連接項目:",
"library_info.stats": "統計數據",
"library_info.stats.colors": "標籤顏色:",
"library_info.stats.entries": "項目:",
"library_info.stats.fields": "欄位:",
"library_info.stats.macros": "巨集指令:",
"library_info.stats.namespaces": "命名空間:",
"library_info.stats.tags": "標籤:",
"library_info.title": "文件庫「{library_dir}」",
"library_info.version": "文件庫格式版本:{version}",
"library_object.name": "名稱",
"library_object.name_required": "名稱 (必填)",
"library_object.slug": "ID Slug",
@@ -216,10 +188,9 @@
"menu.file": "檔案 (&F)",
"menu.file.clear_recent_libraries": "清除最近使用的文件庫",
"menu.file.close_library": "關閉文件庫 (&C)",
"menu.file.missing_library.message": "未找到文件庫(路徑:{library}",
"menu.file.missing_library.message": "未找到文件庫(路徑:{library}",
"menu.file.missing_library.title": "文件庫遺失",
"menu.file.new_library": "新增文件庫",
"menu.file.open_backups_folder": "打開備份資料夾",
"menu.file.open_create_library": "開啟/建立文件庫 (&O)",
"menu.file.open_library": "開啟文件庫",
"menu.file.open_recent_library": "開啟最近使用的文件庫",
@@ -233,23 +204,17 @@
"menu.select": "選擇",
"menu.settings": "設定...",
"menu.tools": "工具 (&T)",
"menu.tools.fix_duplicate_files": "修復重複檔案 (&D)",
"menu.tools.fix_ignored_entries": "修復忽略項目 (&I)",
"menu.tools.fix_duplicate_files": "修復重複檔案",
"menu.tools.fix_unlinked_entries": "修復未連接項目",
"menu.view": "檢視 (&V)",
"menu.view.decrease_thumbnail_size": "縮減縮圖大小",
"menu.view.increase_thumbnail_size": "放大縮圖大小",
"menu.view.library_info": "文件庫資訊 (&I)",
"menu.window": "視窗 (&W)",
"namespace.create.description": "TagStudio 使用命名空間來區分成群的物件如標籤或顏色以便這些物件能被匯出或分享。以「tagstudio」開頭的命名空間是 TagStudio 內部使用的命名空間。",
"namespace.create.description_color": "標籤顏色使用命名空間作為色彩群組。所有自訂顏色必須先被放入一個命名空間群組。",
"namespace.create.title": "建立命名空間",
"namespace.new.button": "新增命名空間",
"namespace.new.prompt": "新增一個命名空間以新增自訂顏色",
"preview.ignored": "被忽略",
"namespace.new.prompt": "新增一個命名空間以新增自訂顏色",
"preview.multiple_selection": "已選取 <b>{count}</b> 個項目",
"preview.no_selection": "無選取項目",
"preview.unlinked": "未連接",
"select.add_tag_to_selected": "加入標籤至選取項目",
"select.all": "全部選取",
"select.clear": "清除選取",
@@ -263,23 +228,15 @@
"settings.filepath.option.full": "僅顯示絕對檔案路徑",
"settings.filepath.option.name": "僅顯示檔案名稱",
"settings.filepath.option.relative": "僅顯示相對檔案路徑",
"settings.generate_thumbs": "縮圖生成",
"settings.global": "全域設定",
"settings.hourformat.label": "24 小時制",
"settings.infinite_scroll": "無限捲動",
"settings.language": "語言",
"settings.library": "文件庫設定",
"settings.open_library_on_start": "啟動時開啟文件庫",
"settings.page_size": "頁面大小",
"settings.restart_required": "需要重新啟動 TagStudio 才能使變更生效",
"settings.restart_required": "需要重新啟動 TagStudio 才能使變更生效",
"settings.show_filenames_in_grid": "在網格中顯示檔案名稱",
"settings.show_recent_libraries": "顯示最近使用的文件庫",
"settings.splash.label": "啟動畫面",
"settings.splash.option.classic": "經典 (9.0)",
"settings.splash.option.default": "預設",
"settings.splash.option.goo_gears": "開源軟體 (9.4)",
"settings.splash.option.ninety_five": "'95 (9.5)",
"settings.splash.option.random": "隨機",
"settings.tag_click_action.add_to_search": "加入標籤至搜尋範圍",
"settings.tag_click_action.label": "標籤點選動作",
"settings.tag_click_action.open_edit": "編輯標籤",
@@ -288,23 +245,21 @@
"settings.theme.label": "主題:",
"settings.theme.light": "淺色模式",
"settings.theme.system": "系統主題",
"settings.thumb_cache_size.label": "縮圖快取大小",
"settings.title": "設定",
"settings.zeropadding.label": "日期補零",
"sorting.direction.ascending": "升序",
"sorting.direction.descending": "降序",
"sorting.mode.random": "隨機排列",
"splash.opening_library": "正在開啟「{library_path}」...",
"status.deleted_file_plural": "已刪除 {count} 個檔案!",
"status.deleted_file_singular": "已刪除一個檔案!",
"status.deleted_none": "未刪除任何檔案",
"status.deleted_none": "未刪除任何檔案",
"status.deleted_partial_warning": "只刪除了 {count} 個檔案!請檢查檔案是否遺失或正在被使用。",
"status.deleting_file": "正在刪除 [{i}/{count}]:「{path}」...",
"status.library_backup_in_progress": "正在儲存文件庫備份...",
"status.library_backup_success": "文件庫備份已儲存至:「{path}」({time_span})",
"status.library_closed": "文件庫已關閉 ({time_span})",
"status.library_closing": "正在關閉文件庫...",
"status.library_save_success": "文件庫已成功儲存並關閉",
"status.library_save_success": "文件庫已成功儲存並關閉",
"status.library_search_query": "正在搜尋文件庫...",
"status.library_version_expected": "預期版本:",
"status.library_version_found": "找到版本:",
@@ -353,7 +308,7 @@
"view.size.2": "中",
"view.size.3": "大",
"view.size.4": "特大",
"window.message.error_opening_library": "開啟文件庫時發生錯誤",
"window.message.error_opening_library": "開啟文件庫時發生錯誤",
"window.title.error": "錯誤",
"window.title.open_create_library": "開啟/建立文件庫"
}

View File

@@ -29,23 +29,3 @@ def test_refresh_new_files(library: Library, exclude_mode: bool):
# Test if the single file was added
list(registry.refresh_dir(library_dir, force_internal_tools=True))
assert registry.files_not_in_library == [Path("FOO.MD")]
@pytest.mark.parametrize("library", [TemporaryDirectory()], indirect=True)
def test_refresh_multi_byte_filenames(library: Library):
library_dir = unwrap(library.library_dir)
# Given
registry = RefreshTracker(library=library)
library.included_files.clear()
(library_dir / ".TagStudio").mkdir()
(library_dir / "こんにちは.txt").touch()
(library_dir / "emdash.txt").touch()
(library_dir / "apostrophe.txt").touch()
(library_dir / "umlaute äöü.txt").touch()
# Test if all files were added with their correct names and without exceptions
list(registry.refresh_dir(library_dir))
assert Path("こんにちは.txt") in registry.files_not_in_library
assert Path("emdash.txt") in registry.files_not_in_library
assert Path("apostrophe.txt") in registry.files_not_in_library
assert Path("umlaute äöü.txt") in registry.files_not_in_library

View File

@@ -145,6 +145,7 @@ def test_title_update(
qt_driver.main_window.menu_bar.fix_dupe_files_action = QAction(menu_bar)
qt_driver.main_window.menu_bar.clear_thumb_cache_action = QAction(menu_bar)
qt_driver.main_window.menu_bar.folders_to_tags_action = QAction(menu_bar)
qt_driver.main_window.menu_bar.macros_menu = None
# Trigger the update
qt_driver._init_library(library_dir, open_status) # pyright: ignore[reportPrivateUsage]

View File

@@ -1,13 +1,12 @@
# Copyright (C) 2025
# Licensed under the GPL-3.0 License.
# Created for TagStudio: https://github.com/CyanVoxel/TagStudio
from PySide6.QtCore import SIGNAL
from pytestqt.qtbot import QtBot
from tagstudio.core.library.alchemy.library import Library
from tagstudio.qt.mixed.tag_search import TagSearchPanel
from tagstudio.qt.mixed.tag_widget import TagWidget
from tagstudio.qt.ts_qt import QtDriver
def test_update_tags(qtbot: QtBot, library: Library):
@@ -18,35 +17,3 @@ def test_update_tags(qtbot: QtBot, library: Library):
# When
panel.update_tags()
def test_tag_widget_actions_replaced_correctly(qtbot: QtBot, qt_driver: QtDriver, library: Library):
panel = TagSearchPanel(library)
qtbot.addWidget(panel)
panel.driver = qt_driver
# Set the widget
tags = library.tags
panel.set_tag_widget(tags[0], 0)
tag_widget: TagWidget = panel.scroll_layout.itemAt(0).widget()
should_replace_actions = {
tag_widget: ["on_edit()", "on_remove()"],
tag_widget.bg_button: ["clicked()"],
tag_widget.search_for_tag_action: ["triggered()"],
}
# Ensure each action has been set
ensure_one_receiver_per_action(should_replace_actions)
# Set the widget again
panel.set_tag_widget(tags[0], 0)
# Ensure each action has been replaced (amount of receivers is still 1)
ensure_one_receiver_per_action(should_replace_actions)
def ensure_one_receiver_per_action(should_replace_actions):
for action, signal_strings in should_replace_actions.items():
for signal_str in signal_strings:
assert action.receivers(SIGNAL(signal_str)) == 1