Giter Site home page Giter Site logo

Chinese translation not work about collision HOT 7 CLOSED

geopjr avatar geopjr commented on May 25, 2024
Chinese translation not work

from collision.

Comments (7)

lumingzh avatar lumingzh commented on May 25, 2024 1

@GeopJr Great! I test it after updated and works normal, thank you.

from collision.

GeopJr avatar GeopJr commented on May 25, 2024

Thanks for raising this issue!

Is your system language set to simplified Chinese?

I was trying to debug it in a gnome os box and got similar results with Greek. It only worked after setting system language to Greek and reinstalling Collision. My current speculation is that it has to do with flatpak's separate-locales (which installs only the system available ones, as far as I am aware).

screenshot of a terminal showing collision being ran as a flatpak and collision welcomer next to it in greek

from collision.

lumingzh avatar lumingzh commented on May 25, 2024

@GeopJr Yes, my system language always simplified Chinese. But I think the language code should be zh_CN not zh_Hans, I'm not sure if GNOME can recognize zh_Hans. This issue may be relate to this setting of weblate, not sure.

from collision.

GeopJr avatar GeopJr commented on May 25, 2024

So, I added zh_CN as an alias to zh_Hans on Weblate (https://hosted.weblate.org/projects/collision/collision/zh_CN should redirect to zh_Hans) and copied the zh_Hans.po to zh_CN.po. Hopefully next time Weblate makes a PR it will update both, if it doesn't I'll update it manually or make a github action. Thanks!

(Also fixed the other first two errors on your screenshot, the app should now start even if the language is not correct or doesn't exist)

Edit: received automated email from Weblate about duplicate translations asking me to delete one of them, I'll either remove the alias and manually maintain zh_CN or replace zh_Hans with zhCN altogether.

from collision.

lumingzh avatar lumingzh commented on May 25, 2024

@GeopJr I will test it after you published new version on flathub. About the duplicate translations, I think you can view Celluloid(gnome-mpv) for reference, Celluloid from flathub works perfectly on fedora silverblue. Celluloid doesn't use zh_Hans po file, but I'm still not sure if it's weblate's problem or not before I test it.

from collision.

GeopJr avatar GeopJr commented on May 25, 2024

Thanks for the info! Following Celluloid, I removed zh_Hans in favor of zh_CN. It will be in the next release!

from collision.

GeopJr avatar GeopJr commented on May 25, 2024

3.0.1 seems to have fixed it! (It should be available in the repo in some hours)

Collision main view in zh_CN

from collision.

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.