-
Notifications
You must be signed in to change notification settings - Fork 163
Translation help needed!
I'd love to have pikaraoke available in more languages. If you are able to translate it would be much appreciated! I have linked the translation files below. All you need to do is download the messages.po file for the locale you're translating. Then fill in all the translated text: Where msgid
is in English, fill in the msgstr
in the language requested.
When you've completed the file, post it here as an attachment (I think you can just drag it into a comment text editor to upload it) or email it to me. Bonus: open a PR of your fork including the updated file for developer credit!
If you see a %s
character, that will be filled in with a variable. Leave it as is. Example:
#. Message shown after the download is completed and queued
#: karaoke.py:376
#, python-format
msgid "Downloaded and queued: %s"
msgstr "成功添加歌曲: %s"
If you see newlines and embedded html, try to keep them in the same format. Apologies for this, the html files are a bit messy. Example:
#. Link which will let the user log into admin mode.
#: templates/info.html:348
#, python-format
msgid ""
"\n"
" Enable admin mode: <a href=\"%(login_url)s\">Log in</a>\n"
" "
msgstr ""
"\n"
" 开启管理员模式: <a href=\"%(login_url)s\">登入</a>\n"
" "
Do not translate embedded js function names or html attributes (or basically anything inside an html tag), just translate the surrounding text. Example (handleConfirmation):
#. Prompt for interaction in order to enable video autoplay.
#: templates/splash.html:629
msgid ""
"Due to limititations with browser permissions, you must interact\n"
" with the page once before it allows autoplay of videos. Pikaraoke "
"will not\n"
" play otherwise. Click the button below to\n"
" <a onClick=\"handleConfirmation()\">confirm</a> ."
msgstr ""
"Devido a limitações nas permissões do navegador, você deve interagir com "
"a página uma vez antes que ela permita a reprodução automática de vídeos."
" Pikaraokê não jogue de outra forma. Clique no botão abaixo para "
" <a onClick=\"handleConfirmation()\">confirmar</a> ."