motioneye icon indicating copy to clipboard operation
motioneye copied to clipboard

How can I help translating?

Open Xitee1 opened this issue 3 years ago • 5 comments
trafficstars

I would like to help translating into german. How can I do that? Is there already some translating website available like crowdin or something?

Xitee1 avatar Apr 29 '22 20:04 Xitee1

Many thanks for offering help 👍.

There is no website yet, but that would be actually nice. Currently it's cloning the repo, manually editing the .po files like https://github.com/motioneye-project/motioneye/blob/dev/motioneye/locale/en/LC_MESSAGES/motioneye.po, then compiling them via make and committing via PR changes back to this repository. What I am not sure about is whether there is a nice GUI application for doing these translation updates instead of editing the files manually? A website would of course be awesome.

MichaIng avatar Apr 30 '22 14:04 MichaIng

Hello, Actually, we don't have a translating website. To help translating, i suggest to follow these steps :

  1. make your own fork : click on button «fork» on top of page, and follow instructions.
  2. clone your fork on your linux machine , and change to the dev branch :
git clone https://github.com/Xitee1/motioneye.git
cd motioneye
git checkout dev
  1. edit the two po files motioneye/locale/de/LC_MESSAGES/motioneye.js.po and motioneye/locale/de/LC_MESSAGES/motioneye.po
  2. commit and push your changes :
git add motioneye/locale/de/LC_MESSAGES/motioneye.js.po
git add motioneye/locale/de/LC_MESSAGES/motioneye.po
git commit -m 'german translation'
git push
  1. propose your changes as a pull request : On github, being on your fork, click on «Pull Requests», then on «New Pull Request». Select the dev branch on both sides, and click on «Create Pull Request», and follow instructions.

Notes for step 3 :

  • it's possible to edit files manually, but it's easier to use a poeditor like poedit or virtaal
  • original text is in esperanto. All texts are pre-translated with google translate to help you, so you usually have only to correct google errors, but if you have any doubts, you can :

If you want to test the result of your work, you can update your local motioneye with this commands :

make
sudo systemctl stop motioneye
sudo python3 -m pip install --upgrade --force-reinstall --no-deps .
sudo systemctl start motioneye

jmichault avatar May 01 '22 10:05 jmichault

Thanks. I will try that.

Xitee1 avatar May 01 '22 11:05 Xitee1

I have created a translation project on weblate : https://hosted.weblate.org/projects/motioneye-project/. Probably easier for you to use.

jmichault avatar May 03 '22 17:05 jmichault

Wow, awesome, looks very good. I'll start updating German translations tomorrow 🚀.

MichaIng avatar May 03 '22 21:05 MichaIng

Could you please open a new issue about this? Let's keep individual things separated 😉. I'll mark this as closed as the original question has been answered.

MichaIng avatar Sep 22 '22 18:09 MichaIng