notandy / ympd

Standalone MPD Web GUI written in C, utilizing Websockets and Bootstrap/JS
http://www.ympd.org
GNU General Public License v2.0
515 stars 143 forks source link

Support another web interface language #95

Open audeoudh opened 8 years ago

audeoudh commented 8 years ago

Hi,

The only available language for the application is english. It should be good to have a way to translate the web interface to another language (french, spanish…).

Indeed, the one who install ympd on a server is supposed to understand english, but the ympd user may not know english…

Willena commented 8 years ago

Hi ! Because I needed it too, I have written the necessary code for multiple language support. For now there are some graphics problems, but I will fix them soon. In my fork you will find a version that support server plugins but it has some random crashes that I have to fix. If you just want to use the multiple language section of my code, you just can update the content of your htdocs folder with mine.

To add another language, copy the plugin fr-lang, then change the plugin name by en-lang or sp-lang or whatever you want, then update the array inside your plugin. If someone can contribute to add other languages YMPD could be fully translated.

https://github.com/Willena/ympd

Be careful ! some translations may contain spelling mistake ( I did not have checked them for the moment )

If you need some more information feel free to contact me !