Comments (13)
其实……我不太了解Linux下各个文件都应该放在哪里。
Linux 有文件系统层次标准,一般都按照该标准存储文件。
我简单修改了 src/sdk/knlocalemanager.cpp
的 qmInfo
,使 mu 能够从 /usr/share/locale/zh_CN/LC_MESSAGES/mu.qm
读取翻译。关于国旗,建议直接作为资源链接至可执行文件。
from mu.
直接作为资源链接太大了,而且不利于扩展,现在这种做法其实也是一种折中的做法。
这个模块我会在最近的版本修改成为从该文件夹获取。
from mu.
不过其实从~/.kreogist里面对应位置读取也可以接受?
from mu.
放到 ~/.kreogist 里就没法安装了。资源文件一般不修改,所以放到 /usr/share/mu/
这样的目录里比较好。比如:
/usr/share/mu/locale/*.qm *.png
保存翻译文件/usr/share/mu/plugin/
保存插件之类的
from mu.
这里本来就是想做成可修改的,所有的这些翻译准备允许用户在安装后再添加、删除、修改的
from mu.
有兴趣的人自然会帮助翻译,并提交 PR。 可以做成读取这两个地方,方便用户翻译时测试。
- ~/.kreogist/locale/*.qm
- /usr/share/mu/locale/*.qm
一般 ~/.kreogist/ 只放配置不放语言文件,用户参与翻译自然会下载源码,翻译 ts 文件。安装包里面只有 qm 文件。
from mu.
了解,我将尽快做出改动。然而最近几天可能暂时无法作出变更。
(现在还在折腾GStreamer。Playbin什么的简直坑,所以转而研究自定义pipeline。然而被各种不和规范的代码坑的不要不要的……正在爬各种别人的项目中)
from mu.
from mu.
参考baka-mplayer,放在/usr/share/mu/translations:
https://github.com/u8sand/Baka-MPlayer/blob/master/src%2FBaka-MPlayer.pro
from mu.
好的,这个项目之前也看到过,收到了很大的帮助。谢谢~~~
from mu.
针对Linux已经修改成从下列两个地方获取:
- /usr/share/Kreogist/mu/Language
- ~/.kreogist/mu/Language
from mu.
好滴,感谢修复
from mu.
这里才是要感谢反馈呢 :)
from mu.
Related Issues (20)
- 更多歌词源 HOT 19
- Musixmatch 歌词源 HOT 5
- 在Ubuntu 16.4下運行。。會導致其他應用變卡 HOT 13
- Windows 10 无法登陆 Kreogist 账户/Windows 10 cannot log in to Kreogist Account HOT 3
- 下载歌词将会继续播放/The music will resume playing when downloading music HOT 1
- 强制退出后无法再次启动 / Force quit cannot launch again HOT 1
- 在 Backbox 上无法设置头像 / Cannot set avatar on Backbox HOT 3
- 同时添加 .cue 和对应音频文件的时候,忽略 .cue 对应的那个源文件 HOT 2
- 希望添加媒体库和智能播放列表功能 HOT 7
- 前来问候 HOT 1
- 批量下载歌词 / Batch lyrics download
- Would reset system volume when switching songs on Linux HOT 3
- Ubuntu 16.04 下高CPU占用 / High CPU usage on Ubuntu 16.04 HOT 1
- Translation .qm files not built by default HOT 3
- 更现代的GUI HOT 3
- Crash on macOS HOT 10
- PPA需更新 HOT 2
- Opus HOT 2
- win10系统mu无法使用
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mu.