El diumenge, 19 de juliol de 2020, a les 13:56:14 CEST, David Faure va escriure: > On mercredi 15 juillet 2020 12:24:34 CEST Harald Sitter wrote: > > On Wed, Jul 15, 2020 at 12:39 AM David Faure <fa...@kde.org> wrote: > > > On mardi 14 juillet 2020 19:35:41 CEST Albert Astals Cid wrote: > > > > El dimarts, 14 de juliol de 2020, a les 15:14:38 CEST, Jonathan Riddell > > > > va > > > > > > escriure: > > > > > We're playing with translations in neon packages and looking at > > > > > kcoreaddons > > > > > the tars have > > > > > xml_mimetypes5 > > > > > But we can't see anything in the code which uses this. Do these > > > > > translations get used? > > > > > > > > Yes, the translations are used. > > > > > > > > No, they don't need to be on the tarball. > > > > > > > > The translations are used at scripty time to to fill > > > > https://invent.kde.org/frameworks/kcoreaddons/-/blob/master/src/mimetype > > > > s/k > > > > de5.xml > > > > > > > > Luigi recently did a change so the files ending in _xml_mimetypes.po > > > > don't > > > > get added to the release service tarballs. > > > > > > > > This didn't work here because a) KF5 is using a different branch of > > > > release-tools b) the file doesn't follow the same naming pattern than > > > > the > > > > rest of xml mimetype files we have. > > > > > > > > If DavidF is fine adapting his scripts to not release files ending in > > > > _xml_mimetypes.po (i.e. him or someone else patches the scripts) i > > > > volunteer to do the small patch for src/mimetypes/XmlMessages.sh to > > > > rename > > > > it. > > > > > > Fine with me, but don't we have more cases of the same kind, with > > > different > > > names? Any case of translations being "integrated" into some file leads to > > > this. Desktop files, mimetype XML, is there really nothing else? > > > > It's a bit more "fluid" than one would hope. Looking at > > update_translations the following patterns exist: > > > > - created by XmlMessages.sh unfortunately arbitrary named files but > > largely using the standard suffix Albert mentioned (the only other > > violation I can find with lxr is kpat) > > - created by StaticMessages.sh also arbitrary, only used for websites > > I think (?) > > - ._desktop_.po automatic - shouldn't be shipped > > - ._json_.po automatic - shouldn't be shipped > > - .appdata.po automatic - shouldn't be shipped > > - .metadata.po automatic - shouldn't be shipped > > OK. make_rc_tag.sh already says > > find -regextype egrep -regex '.*\.(_desktop_|_json_|appdata|metainfo)\.po' > -delete > > which matches the above, assuming you meant metainfo when writing metadata? > > I just changed that regexp to add _xml_mimetypes.po, I hope this solves the > issue. > https://invent.kde.org/sysadmin/release-tools/commit/ffee07853b586b80236791edd69afc9d9d5dfd8e > > Ah, no, Albert still needs to "do the small patch for > src/mimetypes/XmlMessages.sh to rename it", IIUC.
https://invent.kde.org/frameworks/kcoreaddons/-/merge_requests/13 > >