Coder Social home page Coder Social logo

Comments (6)

ximion avatar ximion commented on June 17, 2024 1

Yea seems to be the symlinks

I just checked the code, symlinks are indeed ignored, apparently for performance reasons... I doubt it would hurt performance that much if we quickly checked if the symlink target exists... I'll have a look at this later :-)

from flathub.

bbhtt avatar bbhtt commented on June 17, 2024

Seems like something is going wrong in appstream but I'm not sure. Building meld and adding some debugs, this part https://github.com/ximion/appstream/blob/e92858da0310be987950fa5c22a12fc0a747d17b/compose/asc-utils-l10n.c#L459-L463 is outputting only two percentage datas somehow en_ca and en_gb.

Maybe it has something to do with symlinks because en_ca and en_gb are not symlinks in build/files/share/locale, every other language is a symlink to build/files/share/runtime/locale/$lang_code setup by flatpak-builder. EN and C are excluded from "locale migration"

The appstream metadata is itself getting translated though.

Hey @ximion any ideas ?

from flathub.

bbhtt avatar bbhtt commented on June 17, 2024

Yea seems to be the symlinks, if I disable "locale migration" by doing:

diff --git a/org.gnome.meld.json b/org.gnome.meld.json
index ad962d1..545be37 100644
--- a/org.gnome.meld.json
+++ b/org.gnome.meld.json
@@ -3,6 +3,7 @@
     "runtime": "org.gnome.Platform",
     "runtime-version": "45",
     "sdk": "org.gnome.Sdk",
+    "separate-locales": false,
     "command": "meld",
     "cleanup": [
         "/include",

Then the catalogue data has percentage data for all languages.

from flathub.

ximion avatar ximion commented on June 17, 2024

Very odd... My initial impulse would be to look at the original MetaInfo data and double-check that the translation tag is set correctly for the respective file.

If the symlink targets exist, I see no reason why the locale data wouldn't be read.

from flathub.

ximion avatar ximion commented on June 17, 2024

Sorry for the long wait, I have a lot of stuff on my plate right now. This patch should fix this issue, and there will likely be a new AppStream release this month as well.

from flathub.

bbhtt avatar bbhtt commented on June 17, 2024

Thank you. There's no hurry, as apps will need to get rebuilt to refresh the catalogue data, anyways. I'll wait for the release.

from flathub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.