xfangfang / Macast

Macast is a cross-platform application which using mpv as DLNA Media Renderer.
https://xfangfang.github.io/Macast/
GNU General Public License v3.0
6.08k stars 381 forks source link

[Question] How to translate Macast to other languages? #81

Closed heidiwenger closed 2 years ago

heidiwenger commented 2 years ago

Versions

Problem

Pretty much the title. Could there be a Transifex or a Weblate for Macast for easy and quick way to translate? How do you manage the translation process?

xfangfang commented 2 years ago

Sorry, at present, you can only imitate macast.po to manually complete the translation of the other language.

example: Adding a language for Traditional Chinese(HongKong)

  1. create macast.po at i18n/zh_HK/LC_MESSAGES/macast.po
  2. add translations
  3. optional: build translations and run Macast from source code to test your translations msgfmt -o i18n/zh_HK/LC_MESSAGES/macast.mo i18n/zh_HK/LC_MESSAGES/macast.po
  4. free welcome to open a pr
heidiwenger commented 2 years ago

Sorry, at present, you can only imitate macast.po to manually complete the translation of the other language.

example: Adding a language for Traditional Chinese(HongKong)

1. create macast.po at `i18n/zh_HK/LC_MESSAGES/macast.po`

2. add translations

3. optional: build translations and run Macast from source code
   `msgfmt -o i18n/zh_HK/LC_MESSAGES/macast.mo i18n/zh_HK/LC_MESSAGES/macast.po`

4. free welcome to open a pr

Alright, thanks. I will try.

xfangfang commented 2 years ago

Thanks for your contribution.

You can download beta version from here: https://github.com/xfangfang/Macast/actions/runs/1334243905

Test it on MacOS:

image
heidiwenger commented 2 years ago

Thanks for your contribution.

You can download beta version from here: https://github.com/xfangfang/Macast/actions/runs/1334243905

Test it on MacOS: image

Thank you very much! Looks good. I'm on Linux.

xfangfang commented 2 years ago

Great, close the issue.