Skip to content

Conversation

@Computerdores
Copy link
Collaborator

@Computerdores Computerdores commented Mar 4, 2025

Fix #827. I implemented a string subclass that handles the formatting differently. I did it that way because it keeps the Translator API simpler and when formatting the translation one can just use the normal way without having to look for a specific method, as opposed to creating a custom formatting method for Translator.

The formatting also formats all keys that a value is present for as opposed to the previous implementation (removed in #817) that didn't substitute any placeholders if the value for one of them wasn't specified.

Tasks Completed

  • Tested on:
    • Windows x86
    • Windows ARM
    • macOS x86
    • macOS ARM
    • Linux x86
    • Linux ARM
  • Tested:
    • Basic functionality
    • PyInstaller executable

@CyanVoxel CyanVoxel added Type: Bug Something isn't working as intended Priority: Critical An issue that requires immediate attention Type: Translations Modifies translation keys or translation capabilities. Status: Review Needed A review of this is needed labels Mar 4, 2025
@CyanVoxel CyanVoxel moved this to 🏓 Ready for Review in TagStudio Development Mar 4, 2025
@CyanVoxel CyanVoxel added this to the Alpha v9.5.1 milestone Mar 4, 2025
@Computerdores
Copy link
Collaborator Author

Closing in favor of #830.

@github-project-automation github-project-automation bot moved this from 🏓 Ready for Review to ✅ Done in TagStudio Development Mar 5, 2025
@Computerdores Computerdores deleted the fix/catch_error_on_missing_translation_key branch July 6, 2025 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Critical An issue that requires immediate attention Status: Review Needed A review of this is needed Type: Bug Something isn't working as intended Type: Translations Modifies translation keys or translation capabilities.

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

[Bug]: Switching translations causes error on program start

2 participants