Skip to content
This repository was archived by the owner on Dec 5, 2020. It is now read-only.
This repository was archived by the owner on Dec 5, 2020. It is now read-only.

No translation #214

Closed
Closed

Description

@muzena

Why there is no available translation in flatpak development version?

Activity

  1. phw commented on Sep 24, 2017

    @phw
    Contributor

    Same here, installed gradio via flatpak, but it isn't localized, even though German translation should be available. Works for me with other Flatpak apps, including my own.

  2. julianrichen commented on Sep 24, 2017

    @julianrichen

    Doesn't the Locale extension provide translations?

    flatpak --user install flathub de.haeckerfelix.gradio.Locale
    
  3. haecker-felix commented on Sep 24, 2017

    @haecker-felix
    Owner

    I can confirm that the translation is not working. I don't know what's the problem. If you know it, feel free to open a pull request :-)

    This is my first project to be translated, so I don't have much experience.

  4. phw commented on Sep 25, 2017

    @phw
    Contributor

    I have experience with app localization and also did some Flatpak packaging, so I try to debug this a bit.

    de.haeckerfelix.gradio.Locale is installed, it got installed alongside de.haeckerfelix.gradio as it should. When I launch the gradio flatpak the console reports

    ** Message: gradio-app.vala:167: Locale dir: /app/share/locale
    

    This looks right. Also when I open a shell into the app with

    flatpak run --command=sh de.haeckerfelix.gradio 
    

    I can clearly see the localization files in /app/share/locale, this looks Ok:

    sh-4.3$ ls /app/share/locale/de/LC_MESSAGES/gradio.mo -lah
    -rw-r--r-- 2 0 0 6,6K Jan  1  1970 /app/share/locale/de/LC_MESSAGES/gradio.mo
    

    Also the initialization of the locales in https://github.com/haecker-felix/gradio/blob/master/src/gradio-app.vala#L156 . I compared everything above to my own https://github.com/phw/peek/blob/master/src/main.vala but don't see a difference. But in my app it works with Flatpak, gradio simple shows default locale texts. Will try to debug further.

    Just to make sure I also installed gradio locally and there everything shows up localized.

  5. phw commented on Sep 25, 2017

    @phw
    Contributor

    Just to make sure I also installed gradio locally and there everything shows up localized.

    Wrong, current 6.0.1 release has this issue, I tested with 6.0. Pull request incoming...

  6. added a commit that references this issue on Sep 25, 2017
    ef3b946
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions