Git Product home page Git Product logo

Comments (15)

u8sand avatar u8sand commented on May 28, 2024

will take care of this before our next release in the next few days

from baka-mplayer.

u8sand avatar u8sand commented on May 28, 2024

@amazingfate please tell me if the qmake branch is what you're looking for. note this https://github.com/u8sand/Baka-MPlayer/blob/qmake/configure.sh#L3-L18

from baka-mplayer.

amazingfate avatar amazingfate commented on May 28, 2024

@u8sand here is what I do:
sh configure.sh CONFIG+=install_translations
make -jgrep -c ^processor /proc/cpuinfo
sudo make install
install -m 755 -p "build/baka-mplayer" "/usr/bin/baka-mplayer"
install -m 644 -p /home/liujianfeng/Baka-MPlayer/etc/logo/baka-mplayer.svg /usr/share/pixmaps/
install -m 644 -p /home/liujianfeng/Baka-MPlayer/etc/baka-mplayer.desktop /usr/share/applications/
install -m 644 -p /home/liujianfeng/Baka-MPlayer/etc/doc/baka-mplayer.md /usr/share/doc/baka-mplayer/
install -m 644 -p /home/liujianfeng/Baka-MPlayer/LICENSE /usr/share/licenses/baka-mplayer/
install -m 644 -p /home/liujianfeng/Baka-MPlayer/src/translations/baka-mplayer_pt.qm /usr/share/baka-mplayer/
install -m 644 -p /home/liujianfeng/Baka-MPlayer/src/translations/baka-mplayer_ru.qm /usr/share/baka-mplayer/
install -m 644 -p /home/liujianfeng/Baka-MPlayer/src/translations/baka-mplayer_ko.qm /usr/share/baka-mplayer/
install -m 644 -p /home/liujianfeng/Baka-MPlayer/src/translations/baka-mplayer_zh.qm /usr/share/baka-mplayer/
But when I open the baka-mplayer the translation doesn't work.

from baka-mplayer.

u8sand avatar u8sand commented on May 28, 2024

I see, because it's expecting /usr/share/baka-mplayer/translations but the installation got it wrong, I'll see if I can fix this.

from baka-mplayer.

u8sand avatar u8sand commented on May 28, 2024

This should fix: 0ceb0f3

from baka-mplayer.

amazingfate avatar amazingfate commented on May 28, 2024

still not work

./configure CONFIG+=install_translations
make -j `grep -c ^processor /proc/cpuinfo`
sudo make install
install -m 755 -p "build/baka-mplayer" "/usr/bin/baka-mplayer"
install -m 644 -p /home/liujianfeng/Baka-MPlayer/etc/logo/baka-mplayer.svg /usr/share/pixmaps/
install -m 644 -p /home/liujianfeng/Baka-MPlayer/etc/baka-mplayer.desktop /usr/share/applications/
install -m 644 -p /home/liujianfeng/Baka-MPlayer/etc/doc/baka-mplayer.md /usr/share/doc/baka-mplayer/
install -m 644 -p /home/liujianfeng/Baka-MPlayer/LICENSE /usr/share/licenses/baka-mplayer/
install -m 644 -p /home/liujianfeng/Baka-MPlayer/src/translations/baka-mplayer_pt.qm /usr/share/baka-mplayer/translations/
install -m 644 -p /home/liujianfeng/Baka-MPlayer/src/translations/baka-mplayer_ru.qm /usr/share/baka-mplayer/translations/
install -m 644 -p /home/liujianfeng/Baka-MPlayer/src/translations/baka-mplayer_ko.qm /usr/share/baka-mplayer/translations/
install -m 644 -p /home/liujianfeng/Baka-MPlayer/src/translations/baka-mplayer_zh.qm /usr/share/baka-mplayer/translations/

It seems that baka-mplayer doesn't use the qm file.

from baka-mplayer.

u8sand avatar u8sand commented on May 28, 2024

@amazingfate We're creating a lang option with settings, compiling it to use the settings can be done by appending BAKA_LANG=zh to config (try this to see if it works). Lastly it should be picking the translation from your locale--what is your locale?

from baka-mplayer.

suhr avatar suhr commented on May 28, 2024

Can it be compiled with several languages (zh + ru, for example)?

from baka-mplayer.

u8sand avatar u8sand commented on May 28, 2024

yessir

./configure CONFIG+=install_translations TRANSLATIONS+=translations/baka-mplayer_{ru,zh}.ts

note: the use of {ru,zh} is a bash expansion trick this really makes TRANSLATIONS+=translations/baka-mplayer_ru.ts and TRANSLATIONS+=translations/baka-mplayer_zh.ts.

In terms of forcing one or the other, you'll be able to do it very soon; perhaps by the end of today via preferences. I'll reference this issue with the related commit when it comes.

from baka-mplayer.

suhr avatar suhr commented on May 28, 2024

Nice. I should update the ebuild.

from baka-mplayer.

suhr avatar suhr commented on May 28, 2024

Well, it doesn't see translations in /usr/share/baka-mplayer/translations/baka-mplayer_ru.qm.

from baka-mplayer.

u8sand avatar u8sand commented on May 28, 2024

@suhr should work now dca19d9

from baka-mplayer.

amazingfate avatar amazingfate commented on May 28, 2024

Thx, I tried
./configure CONFIG+=install_translations TRANSLATIONS+=translations/baka-mplayer_{ru,zh,ko,pt}.ts
and finally it works.

from baka-mplayer.

u8sand avatar u8sand commented on May 28, 2024

This should work no differently from

./configure CONFIG+=install_translations

Perhaps it's because I had to fix a few things in the mean time; please try the above to verify that it works as expected.

And thanks for all the feedback guys! :)

from baka-mplayer.

amazingfate avatar amazingfate commented on May 28, 2024

I tried and "./configure CONFIG+=install_translations" also works.
Good job!

from baka-mplayer.

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.