Skip to content

Commit

Permalink
appdata: translate=no properties
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yakushabb authored and rafaelmardojai committed Mar 31, 2024
1 parent 852c625 commit 076871c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions data/com.rafaelmardojai.SharePreview.metainfo.xml.in.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<content_rating type="oars-1.1" />
<releases>
<release version="0.4.0" date="2023-09-29">
<description translatable="no">
<description translate="no">
<ul>
<li>Allow opening multiple instances of the app</li>
<li>Support for Discourse previews</li>
Expand All @@ -38,7 +38,7 @@
</description>
</release>
<release version="0.3.0" date="2023-03-23">
<description translatable="no">
<description translate="no">
<ul>
<li>New scraping logger feature</li>
<li>Save last selected social platform</li>
Expand All @@ -50,7 +50,7 @@
</description>
</release>
<release version="0.2.0" date="2022-03-27">
<description translatable="no">
<description translate="no">
<ul>
<li>New page data dialog</li>
<li>Bug fixes</li>
Expand All @@ -60,7 +60,7 @@
</description>
</release>
<release version="0.1.2" date="2021-05-25">
<description translatable="no">
<description translate="no">
<ul>
<li>Bug fixes</li>
<li>Added Turkish translation</li>
Expand All @@ -70,12 +70,12 @@
</description>
</release>
<release version="0.1.1" date="2021-05-23">
<description translatable="no">
<description translate="no">
<p>Bug fixes and improvements.</p>
</description>
</release>
<release version="0.1.0" date="2021-05-21">
<description translatable="no">
<description translate="no">
<p>First public release.</p>
</description>
</release>
Expand All @@ -97,9 +97,9 @@
<control>touch</control>
</recommends>
<!-- developer_name tag deprecated with Appstream 1.0 -->
<developer_name translatable="no">Rafael Mardojai CM</developer_name>
<developer_name translate="no">Rafael Mardojai CM</developer_name>
<developer id="com.mardojai">
<name translatable="no">Rafael Mardojai CM</name>
<name translate="no">Rafael Mardojai CM</name>
</developer>
<update_contact>[email protected]</update_contact>
<translation type="gettext">@gettext-package@</translation>
Expand Down

0 comments on commit 076871c

Please sign in to comment.