There’s something wrong with the appstream.xml generated by Flathub. An app I maintain (Frescobaldi) appears as translated in my language (Italian) in GNOME Software if I choose the RPM source, but I see the message “This application will appear in US English” if I choose Flathub source:
I know that my local appstream.xml contains the following strings for Frescobaldi:
<languages>
<lang percentage="100">en_US</lang>
</languages>
despite the fact that the metainfo.xml file has the right lang tags (check with the command flatpak run --command=cat org.frescobaldi.Frescobaldi /app/share/metainfo/org.frescobaldi.Frescobaldi.metainfo.xml).
I should have a look at the logs of the generation of appstream.xml file for Flathub. Where can I find it?
bbhtt
July 27, 2025, 1:41am
2
It’s because the metainfo has <translation type="gettext">frescobaldi</translation> but
ls /app/share/locale/
en_US fi
That’s where the translation mo files are supposed to live. MetaInfo guidelines | Flathub Documentation
it’s well documented
Frescobaldi places the mo files inside its python installation. I’ll add a step in the manifest to copy the files in the proper location.
Can you please tell me what I’m doing wrong here ?
EDIT: problem solved in this discussion .
When I compare the stable branch with the test branch of that PR build I see some changes, but not exactly what I was expecting.
Stable branch:
[📦 org.frescobaldi.Frescobaldi frescobaldi]$ ls -l /app/share/locale/
totale 4
drwxr-xr-x. 1 nfsnobody nfsnobody 22 1 gen 1970 en_US
lrwxrwxrwx. 1 nfsnobody nfsnobody 38 27 lug 10.21 fi -> ../../share/runtime/locale/fi/share/fi
[📦 org.frescobaldi.Frescobaldi frescobaldi]$ find /app/share/runtime -name *.mo
/app/share/runtime/locale/it/share/it/LC_MESSAGES/lilypond.mo
Test branch:
[📦 org.frescobaldi.Frescobaldi ~]$ ls -l /app/share/locale
totale 12
drwxr-xr-x. 1 fede fede 22 1 gen 1970 en_US
lrwxrwxrwx. 1 fede fede 38 27 lug 10.38 fi -> ../../share/runtime/locale/fi/share/fi
lrwxrwxrwx. 1 fede fede 41 27 lug 10.38 pt_BR -> ../../share/runtime/locale/pt/share/pt_BR
lrwxrwxrwx. 1 fede fede 41 27 lug 10.38 zh_HK -> ../../share/runtime/locale/zh/share/zh_HK
[📦 org.frescobaldi.Frescobaldi ~]$ find /app/share/runtime -name *.mo
/app/share/runtime/locale/it/share/it/LC_MESSAGES/frescobaldi.mo
/app/share/runtime/locale/it/share/it/LC_MESSAGES/lilypond.mo
/app/share/runtime/locale/it/share/it/LC_MESSAGES/userguide.mo
hub
Closed
August 2, 2025, 12:00pm
5
This topic was automatically closed after 3 days. New replies are no longer allowed.