Theme & Language Selector - Installation.

Hi Sog sussex !
French translation is done! :smiley: I’ll send you by mp.
I found a small error in _header.php : line 44 it is written “Volmio” instead of …
Thank again for the work you have done !
Edit : I put the file here…
Edit : April 15 : update .zip because spelling error in settings.html
french-trans.zip (15.1 KB)

Hello,
I did some testing and I’ve noticed the next thing: when I shutdown my webbrowser (firefox /ubuntu) and and restart it, the Volumio page (index.php#playback) is in English, but the color theme is ok (the one previously choosen). If I open menu (top right) it’s in english, if I choose a item in this menu (ie settings) it’s displayed in french, and if I come back to the main page (index.php#playback) is in french. Strange… :confused:

ok, I’ll look into that, its a cookie thing I think. I’ve also pm’d you. I’ll put your translations in and update later this eve. Thanks again for all your help and translating all the files! :smiley:

I have updated the french translation files… See previous post :wink:
edit : Digx, who developed Sound@home released an updated of 2 php files : net-config2.php (for the fast wifi boot I think) and webradio_add2.php don’t know why. Here the link : https://volumio.org/forum/sound-home-android-app-for-multi-rooms-and-other-t21-160.html.

ok, I’ll include the files in the update coming soon. for these to be included in the translations will take a bit of work, for now they’ll have to stay in the www folder as Digx’s app probably links directly to them instead of the originals. its an easy workaround I’m sure though.

lol, jst looked at the net-config2.php file, yep, allow hotplug added automatically for faster boot. great stuff, that’s the bit I couldn’t do :smiley: so I just added it manually :wink:

in the webradio_add2 fie he appears to have fixed it (it didn’t work properly before) so I guess I should add them in place of the originals as I reckon Michelangelo will be adding them anyway. I’ll check with Michelangelo and Digx before I do but first will test it on my setup…

Update
ok, I was completely wrong about Digx’s app linking directly :unamused: , I’ll use his updates in the theme selector and it looks like I have quite a few bits to add to the lang.*.php files as both have popup messages in the code that I hadn’t spotted before.

another update
I’m still trying to sort the language defaulting to English when you’ve closed the browser. it only needs a page refresh for it to go back to French and so far I cant figure out why! but I’m still trying… gotta go and do some stuff then I’ll be back at it…

update
sorted the language when browser was closed :smiley: (still sorting the translations I’ve missed…)

Ok, Here it is! I’ve been through all the php files and hopefully I’ve not missed any bits for translation.

@Balbuze I’ve added quite a lot of new variables to the lang.fr.php file for translation, if you have time could you translate them? then post the file back? that would be awesome! :smiley: I’ve added them to the bottom of the file and once translated I’ll put them in order to make it easier to read for other people to add their languages.

I’m going to double check everything before asking for more translators on your internationalisation thread. :nerd: sorry it took so long, theres a lot of popup messages hidden away in the php. but I think we’re there…

Here’s all the files needed for theme & language selectors… (I’ve updated most of the files so its probably worth using them all… :slight_smile: )

** out of date files removed **

Hi sogSussex,
Great job again!
I’ll try to translate it today. This last few days I found some problem with accented characters. Sometime, the web page appears with wrong characters…Changing the codepage in the web browser solve it. I think it is due to the fact I wrote it directly in the Pi with nano. I’ll do in a other way! :smiley:
I keep you in touch!
edit : your zip file is called ThemeAndLanguageSelectorFiles-rc3.zip but inside the directory is called ThemeAndLanguageSelectorFiles-rc2. Is it just a name mistake ?

yep, just a name mistake, I renamed the zip… oops. lol

Hi!
Here we are!
Please find attached the translated files.
I found some “field” lived untranslated : in the browse page, when you do a search it’s written (top left corner) results
When you search the playlist : XX results for "bob and when the mouse cursor is over the search field a popup type here to search on the fly"
In net config, for the wifi security WPA/WPA2 - Personnal
For the IP adress (ethernet) with no cable the button display Nothing selected and there is no choice available.
That it for now! :slight_smile:
edit : As I saw that https://volumio.org/forum/sort-webradio-list-t2582.html I thought it could interest you…
FrenchThemeAndLanguageSelectorFiles-rc2.zip (98.6 KB)

wow, great work! I’ll find and sort the bits you’ve spotted, thanks for all this :smiley:

Thanks for the link to the webradio sorting, I have done this manually on my pi a while back but will try and see if I can put it as an option (‘sort order - date added/alphabetical’) I also want to try this on other menus but its going to be a steep learning curve as I’m delving into the unknown! :astonished:

I’ll also contact @Digx to see if I can use his code in the files I’ve edited for this project. that way the languages will work fully on sound@home. (great app by the way!)

Re-HI! :wink:
attached a zip with different screenshots with some small problem of display. Took on a moto g 4g with android KK /Chrome in vertical mode.
most of problem doesn’t occur in horizontal
I’ll give you details if you need.
screenshots.zip (1.72 MB)

ok, sorted most of the problems in your screenshots. I had made the buttons on the right hand side of the playlist and database pages sit above the text on long filenames as you couldn’t press them when the text was over them (in original volumio) its a crude fix but so far I’ve not been able to shorten the text field, I’ve learnt a lot since starting this so I’ll look into it again soon. (I had changed the background to semi transparent forgetting about the text problem but its sorted now. :smiley: )

on the red theme image the playlist is highlighted and the bottom radius is missing, I can’t replicate it here but is that problem only on the red theme?

I’ve just got to find the bits of translation I’ve missed and I’ll post the new files… :nerd:

update
Hi @Balbuze, I’ve fixed all the bits you’ve noticed (and a couple more) except ‘Nothing selected’ cant find it anywhere!

Hi @Balbuze, I just need a couple of translations then I’ll post the next update…

result
results
Type here to search on the fly
Share on Twitter
Share on Facebook
Share on Google+
Personal

Thanks again :smiley:

result = résultat
results = résultats
Type here to search on the fly = Taper ici pour une recherche à la volée (not the best translation, can you provide the context please?)
Share on Twitter = Partager sur Twitter
Share on Facebook = Partager sur Facebook
Share on Google+ = Partager sur Google+
Personal = Personnel

Ok for Stephane’s answers. But I think that we need something shorter for the search on the fly : “recherche à la volée” for instance

edit : I found “nothing selected” in the file :
/var/www/js/bootstrap-select.min.js
but not sure it matches with what you are looking for… :wink:

Ok, here’s the latest update :smiley:

I’m not sure if the last few translations will work (@Balbuze, the accented characters look different to the ones you’ve done… if they don’t work can you fix and post just the 'lang.fr.php file?)

@Stephane, thanks for your input :smiley: I didn’t go into detail as Balbuze has been debugging and found the untranslated bits I had missed :smiley:

** out of date files removed **

I’m now thinking it would be a good idea to add the settings pages (that currently live in the language specific folders) to the lang.*.php files, my worry is the size of it may impact low memory devices but if I don’t any updates will have to be applied to each of the languages files… I’ll make a start and see how big it gets… :nerd:

Hello !
So, last news :

  • I have change accented characters in lang.fr.php . I fact, I was unable to remove what you have typed, sort of chinèse. I use the file from RC2 and add the lines at the end…
  • In the browse page, it seems the page is too wide , you can scroll left / right (Firefox Ubuntu)
  • In the setting page, if I choose french, then there are only 2 flags remaining (English and French). If I re-choose English, 3 flags and with Italian 3 flags.
  • In net config, for the ethernet IP address field, it is still written “nothing selected” and nothing in the list.
  • In chrome and opera on kitkat, the radius is missing on left bottom button. (as in my previous red screenshot) in 2d et 3d theme and for every color. Seems to work with FireFox and Dolphin / kitkat
    Investigation in progress… :wink:
    lang.fr.php.zip (1.96 KB)

Hi Balbuse, thanks for that, I had spotted and fixed the Italian flag showing but am half way through adding the settings pages to the lang.*.php file so it would break those pages if I upload anything right now… I’ve included the bootstrap.select.js with ‘Nothing selected’ removed so our ‘Nothing selected’ must be hiding somewhere else (I’m using Ethernet to connect to my pi, I’ll setup the Wi-Fi to test it my end)

The missing radius is really weird as all the bottom tabs use the same css so I have no Idea where to start looking but also they should have fully round ends instead of rounded corners. I will look into it but I’m going to get the settings files done first… :nerd:

The page too wide problem seems to be the browser reporting the width of the viewable screen without taking into account the scroll bar it decides to put up even if its not needed! I don’t know what to do about that…

Thanks for sorting the French translations out, I’ll post the updated files when I’ve got to a point that will work, theres still a mountain of variables to create… :nerd:

ok, partly done setting up the translated settings pages, I’ve completed the source.html, sources.html and mpd-config.html files. so sadly more translating to do… I’ve added all the untranslated variables to the lang.fr.php file but there’s still more to come… I’ve edited so many files I cant remember what ones so best replace all the ones in the zip…

** out of date files removed **

Hello,
Once again, what a amazing work you have done!
please find attached the lang.fr.php file translated. I’ve got no time to test it fully, but what I saw seem to be ok, except for the Italian flag still disappearing when selecting french flag…
As it is written in the php file, I didn’t translate ‘hardware and software’. But button is already in french so it would be right to translate it.
I 'll test it deeply tomorow.
:wink:
lang.fr.php.zip (4.23 KB)