Localization of custom value tags in AppStream data
Albert Astals Cid
aacid at kde.org
Wed Jun 28 22:28:20 BST 2023
El dimecres, 28 de juny de 2023, a les 11:08:41 (CEST), Ingo Klöcker va
escriure:
> [I first sent this to the Matrix room, but it's probably better to discuss
> this here.]
>
> Hi,
>
> what would need to be done to localize the custom value tags in AppStream
> data?
>
> The concrete use case is adding Windows-specific screenshots including
> captions as custom value tags to AppStream data. See
> https://invent.kde.org/network/neochat/-/merge_requests/1053
> for an example and more details on the why.
>
> I know that the JSON-converter for the AppStream data (used for
> apps.kde.org) would need to be changed. I suppose the script that extracts
> the strings to translate also needs to get support for custom values.
>
> Would it make sense to mark translatable custom values somehow, so that only
> those are extracted? Maybe with xml:lang="C"? Or xml:lang="en"?
See
https://invent.kde.org/sysadmin/l10n-scripty/-/blob/master/extract_metainfo.sh
and
https://invent.kde.org/sysadmin/l10n-scripty/-/blob/master/as-metainfo.its
Cheers,
Albert
>
> Regards,
> Ingo
More information about the kde-i18n-doc
mailing list