Giter Site home page Giter Site logo

Comments (13)

1dot75cm avatar 1dot75cm commented on July 2, 2024

其实……我不太了解Linux下各个文件都应该放在哪里。

Linux 有文件系统层次标准,一般都按照该标准存储文件。

我简单修改了 src/sdk/knlocalemanager.cppqmInfo,使 mu 能够从 /usr/share/locale/zh_CN/LC_MESSAGES/mu.qm 读取翻译。关于国旗,建议直接作为资源链接至可执行文件。

from mu.

Harinlen avatar Harinlen commented on July 2, 2024

直接作为资源链接太大了,而且不利于扩展,现在这种做法其实也是一种折中的做法。
这个模块我会在最近的版本修改成为从该文件夹获取。

from mu.

Harinlen avatar Harinlen commented on July 2, 2024

不过其实从~/.kreogist里面对应位置读取也可以接受?

from mu.

1dot75cm avatar 1dot75cm commented on July 2, 2024

放到 ~/.kreogist 里就没法安装了。资源文件一般不修改,所以放到 /usr/share/mu/ 这样的目录里比较好。比如:

  • /usr/share/mu/locale/*.qm *.png 保存翻译文件
  • /usr/share/mu/plugin/ 保存插件之类的

from mu.

Harinlen avatar Harinlen commented on July 2, 2024

这里本来就是想做成可修改的,所有的这些翻译准备允许用户在安装后再添加、删除、修改的

from mu.

1dot75cm avatar 1dot75cm commented on July 2, 2024

有兴趣的人自然会帮助翻译,并提交 PR。 可以做成读取这两个地方,方便用户翻译时测试。

  • ~/.kreogist/locale/*.qm
  • /usr/share/mu/locale/*.qm

一般 ~/.kreogist/ 只放配置不放语言文件,用户参与翻译自然会下载源码,翻译 ts 文件。安装包里面只有 qm 文件。

from mu.

Harinlen avatar Harinlen commented on July 2, 2024

了解,我将尽快做出改动。然而最近几天可能暂时无法作出变更。
(现在还在折腾GStreamer。Playbin什么的简直坑,所以转而研究自定义pipeline。然而被各种不和规范的代码坑的不要不要的……正在爬各种别人的项目中)

from mu.

1dot75cm avatar 1dot75cm commented on July 2, 2024

👍

from mu.

amazingfate avatar amazingfate commented on July 2, 2024

参考baka-mplayer,放在/usr/share/mu/translations:
https://github.com/u8sand/Baka-MPlayer/blob/master/src%2FBaka-MPlayer.pro

from mu.

Harinlen avatar Harinlen commented on July 2, 2024

好的,这个项目之前也看到过,收到了很大的帮助。谢谢~~~

from mu.

Harinlen avatar Harinlen commented on July 2, 2024

针对Linux已经修改成从下列两个地方获取:

  • /usr/share/Kreogist/mu/Language
  • ~/.kreogist/mu/Language

from mu.

1dot75cm avatar 1dot75cm commented on July 2, 2024

好滴,感谢修复

from mu.

Harinlen avatar Harinlen commented on July 2, 2024

这里才是要感谢反馈呢 :)

from mu.

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.