Skip to content

appdata: translate=no properties#3327

Merged
orowith2os merged 1 commit intobottlesdevs:mainfrom
yakushabb:fix-tr
Feb 4, 2025
Merged

appdata: translate=no properties#3327
orowith2os merged 1 commit intobottlesdevs:mainfrom
yakushabb:fix-tr

Conversation

@yakushabb
Copy link
Contributor

@yakushabb yakushabb commented Mar 29, 2024

It appears that the appstream project no longer supports translatable=no properties, and gettext extract the translatable=no marked strings as translatable.

I opened an issue to inform about the situation, but translatable=no properties are not accepted by developers. You can find the issue here: ximion/appstream#623

Please test your script or string extraction process before merging this PR.

In MetaInfo files, each individual paragraph of a description
(or enumerated entry) is translated individually, however,
you can only exclude the complete block from being translated
by adding translate="no" to the description element.

Source: https://freedesktop.org/software/appstream/docs/sect-Quickstart-Translation.html

Description

Please include a summary of the change and which issue is fixed (if available).
Please also include relevant motivation and context.

Type of change

  • Appdata related chore

@fab-sonarqube

This comment was marked as outdated.

@yakushabb
Copy link
Contributor Author

@mirkobrombin

There are several strings from metainfo file appear translatable on Weblate. Could you review this PR when you have time. Thanks.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2024

Pylint result on modfied files:

@orowith2os orowith2os added this to the 52.0 milestone Feb 3, 2025
@orowith2os
Copy link
Contributor

I added this to the Bottles 52 milestone, if you want to rebase it.

It appears that the appstream project no longer supports `translatable=no` properties, and gettext extract the `translatable=no` marked strings as translatable.

I opened an issue to inform about the situation, but `translatable=no` properties are not accepted by developers. You can find the issue here: ximion/appstream#623

**Please test your script or string extraction process before merging this PR.**

> In MetaInfo files, each individual paragraph of a description
> (or enumerated entry) is translated individually, however,
> you can only exclude the complete block from being translated
> by adding `translate="no"` to the description element.

Source: https://freedesktop.org/software/appstream/docs/sect-Quickstart-Translation.html

# Description
Please include a summary of the change and which issue is fixed (if available).
Please also include relevant motivation and context.

## Type of change
- [ ] Appdata related chore
@orowith2os orowith2os merged commit 723679c into bottlesdevs:main Feb 4, 2025
1 of 2 checks passed
TheEvilSkeleton pushed a commit that referenced this pull request Mar 6, 2025
appdata: translate=no properties

It appears that the appstream project no longer supports `translatable=no` properties, and gettext extract the `translatable=no` marked strings as translatable.

I opened an issue to inform about the situation, but `translatable=no` properties are not accepted by developers. You can find the issue here: ximion/appstream#623
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.

3 participants