Skip to content

Conversation

@MightyMCoder
Copy link
Owner

This pull request introduces several enhancements to streamline translation management and ensure consistency in the languages/en.xml file. It includes new scripts for detecting unused translation keys, improving sorting functionality, and automating these processes in GitHub workflows.

@MightyMCoder MightyMCoder self-assigned this Jun 24, 2025
@MightyMCoder MightyMCoder reopened this Jun 24, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Unused translation keys detected

UNUSED: PLG_INVENTORY_MANAGER_CONFIGURATION
UNUSED: PLG_INVENTORY_MANAGER_EXPORT_AND_FILTER
UNUSED: PLG_INVENTORY_MANAGER_IMPORT_ITEMS
UNUSED: PLG_INVENTORY_MANAGER_IMPORT_PROGRESS
UNUSED: PLG_INVENTORY_MANAGER_ITEMNAME
UNUSED: PLG_INVENTORY_MANAGER_ITEM_CREATE_DESC
UNUSED: PLG_INVENTORY_MANAGER_ITEM_PRINT
UNUSED: PLG_INVENTORY_MANAGER_NEW
UNUSED: PLG_INVENTORY_MANAGER_NUMBER_OF_ITEMS
UNUSED: PLG_INVENTORY_MANAGER_SPECIAL_CASE_CURUSER_OR_ADMIN
UNUSED: PLG_INVENTORY_MANAGER_SYNCHRONIZE
UNUSED: PLG_INVENTORY_MANAGER_SYNCHRONIZE_DESC
UNUSED: PLG_INVENTORY_MANAGER_SYNCHRONIZE_ERROR
UNUSED: PLG_INVENTORY_MANAGER_SYNCHRONIZE_NO_ASSIGN
UNUSED: PLG_INVENTORY_MANAGER_SYNCHRONIZE_PREVIEW
UNUSED: PLG_INVENTORY_MANAGER_SYNCHRONIZE_SAVED

Please consider removing or using these keys.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Unused translation keys detected

UNUSED: PLG_INVENTORY_MANAGER_CONFIGURATION
UNUSED: PLG_INVENTORY_MANAGER_EXPORT_AND_FILTER
UNUSED: PLG_INVENTORY_MANAGER_IMPORT_ITEMS
UNUSED: PLG_INVENTORY_MANAGER_IMPORT_PROGRESS
UNUSED: PLG_INVENTORY_MANAGER_ITEMNAME
UNUSED: PLG_INVENTORY_MANAGER_ITEM_CREATE_DESC
UNUSED: PLG_INVENTORY_MANAGER_ITEM_PRINT
UNUSED: PLG_INVENTORY_MANAGER_NEW
UNUSED: PLG_INVENTORY_MANAGER_NUMBER_OF_ITEMS
UNUSED: PLG_INVENTORY_MANAGER_SPECIAL_CASE_CURUSER_OR_ADMIN
UNUSED: PLG_INVENTORY_MANAGER_SYNCHRONIZE
UNUSED: PLG_INVENTORY_MANAGER_SYNCHRONIZE_DESC
UNUSED: PLG_INVENTORY_MANAGER_SYNCHRONIZE_ERROR
UNUSED: PLG_INVENTORY_MANAGER_SYNCHRONIZE_NO_ASSIGN
UNUSED: PLG_INVENTORY_MANAGER_SYNCHRONIZE_PREVIEW
UNUSED: PLG_INVENTORY_MANAGER_SYNCHRONIZE_SAVED

Please consider removing or using these keys.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request enhances translation management by streamlining the XML files for various languages and introducing new scripts and workflows for sorting translation keys and checking for unused ones.

  • Removed several unused or duplicate translation keys from language files.
  • Introduced new GitHub workflows for sorting en.xml and checking for unused translation strings.
  • Updated the XML sorting script to use lxml in order to preserve comments and formatting.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
languages/fr.xml, languages/de.xml, de-DE.xml, en.xml Removed obsolete keys and ensured consistency across languages.
.github/workflows/sort-en-xml.yml Added a new step to install lxml and improved commit logic.
.github/workflows/check-unused-strings.yml Created a workflow to run a new script for detecting unused keys.
.github/scripts/sort_en_xml.py Replaced the standard XML library with lxml for better comment handling and sorting.
.github/scripts/check_unused_strings.py Added a script to detect unused translation keys.

@MightyMCoder MightyMCoder merged commit f1fcc12 into master Jun 24, 2025
1 check passed
@MightyMCoder MightyMCoder deleted the develop-4.3 branch June 24, 2025 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants