Page 1 of 1

element-dark, hardcoded language

Posted: Friday 10 February 2017 17:16
by Xztraz
these phrases are being hardcoded in element-dark style

"Laatst ingeschakeld: "

"Type apparaat:"

Can they be changed to be included in language packs and i'll be happy to translate stuff to swedish from english :)

Updated swedish language file

Posted: Friday 10 February 2017 17:46
by Xztraz
Made an update of swedish language file if anybody comfortable with git can upload :)


Is there any method of geting all translatable strings out in to the language file? seem to be missing a bunch.

Re: Updated swedish language file

Posted: Friday 10 February 2017 22:57
by Nautilus
Xztraz wrote:Made an update of swedish language file if anybody comfortable with git can upload :)


Is there any method of geting all translatable strings out in to the language file? seem to be missing a bunch.
I think you should use Transifex: https://www.transifex.com/domoticz/domoticz/ Though there it says only three strings left to translate for Swedish.

Re: element-dark, hardcoded language

Posted: Friday 10 February 2017 23:24
by PeGe
Xztraz wrote:Can they be changed to be included in language packs and i'll be happy to translate stuff to swedish from english :)
For Your Info:

Those strings are already in the generic Domoticz language files. but still not "translatable" since they have unfortunately been hard coded inside a CSS file. Arguably a bad design, but I have published a proposed solution to cure the problem in the standard user interface. See my posting:

http://www.domoticz.com/forum/viewtopic ... 96#p118348

My solution, described in that posting, means taking those styling sections out of the CSS and have one of the javascripts initiate the required styling of those affected sections instead. (The javascripts are fully supporting the translation mechanism that is in use.)

I was hoping for some kind of feedback in that thread, but it's apparently been dead ever since... :shock:

/P-G

Re: element-dark, hardcoded language

Posted: Saturday 11 February 2017 0:08
by Xztraz
Ok probably those 3 that i translated then. rest seem to be hardcoded

also corrected some grammar

Re: element-dark, hardcoded language

Posted: Monday 27 February 2017 20:41
by Xztraz
translated via transifex now.

also fixed some stuff in the dark theme.
sliders
background on 2icon sets and such.
changed the hardcoded strings to english until its fixed (see other thread)

committed via github. phew..