fix: Handling translation errors in lo languages#359
fix: Handling translation errors in lo languages#359lzwind merged 1 commit intolinuxdeepin:masterfrom
Conversation
|
TAG Bot TAG: 6.0.39 |
Reviewer's GuideThis PR refines the Lao translation files by realigning source location tags across C++ and QML contexts, marking obsolete entries and adding new dialog/SearchView contexts with unfinished translations, introduces pluralization (numerus) support for photo/video counts, and bumps the application version in packaging manifests. Class diagram for translation context and pluralization changesclassDiagram
class TranslationEntry {
- source: string
- translation: string
- location: string
- numerus: bool
- type: string (e.g., "vanished", "unfinished")
}
class TranslationContext {
- name: string
- entries: List<TranslationEntry>
}
class TranslationFile {
- contexts: List<TranslationContext>
}
TranslationFile --> TranslationContext
TranslationContext --> TranslationEntry
%% Highlight pluralization support
class TranslationEntry {
+numerus: bool
}
%% Highlight new/obsolete entries
class TranslationEntry {
+type: string
}
Class diagram for packaging manifest version updateclassDiagram
class PackageManifest {
- id: string
- name: string
- version: string
- kind: string
- description: string
}
PackageManifest <|-- Arm64Manifest
PackageManifest <|-- Loong64Manifest
PackageManifest <|-- MainManifest
%% Version field updated from 6.0.38.1 to 6.0.39.1
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey @JWWTSL - I've reviewed your changes - here's some feedback:
- Several new strings (e.g. in RemoveAlbumDialog, RemoveDialog, and SearchView contexts) are still marked as type="unfinished" and need proper Lao translations.
- Pluralized messages (numerus) for "%n photos", "%n videos", and "%n items" only include a single and require explicit cases for all plural forms according to Lao grammatical rules.
- There are numerous entries; consider removing obsolete translations to keep the TS file clean and in sync with source.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Several new strings (e.g. in RemoveAlbumDialog, RemoveDialog, and SearchView contexts) are still marked as type="unfinished" and need proper Lao translations.
- Pluralized messages (numerus) for "%n photos", "%n videos", and "%n items" only include a single <numerusform> and require explicit cases for all plural forms according to Lao grammatical rules.
- There are numerous <message type="vanished"> entries; consider removing obsolete translations to keep the TS file clean and in sync with source.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| <name>RemoveDialog</name> | ||
| <message> | ||
| <location filename="../qml/PreviewImageViewer/Dialog/RemoveDialog.qml" line="66"/> | ||
| <source>Cannot move "%1" to the trash. Do you want to permanently delete it?</source> |
There was a problem hiding this comment.
issue (code-quality): Delete should only be used for object properties. (only-delete-object-properties)
Explanation
The `delete` operator is intended for use in deleting the properties of objects, and does not have meaningful behaviour otherwise.|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: JWWTSL, lzwind The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
log:
Summary by Sourcery
Correct and enhance Lao (lo) locale translations by fixing existing string errors, adding missing entries for new dialogs and search view, marking outdated entries as vanished, and bumping the application version to 6.0.39.1.
New Features:
Bug Fixes:
Enhancements:
Build: