element-dark, hardcoded language

Post Reply
Xztraz
Posts: 108
Joined: Tuesday 31 January 2017 22:54
Target OS: Raspberry Pi
Domoticz version:
Contact:

element-dark, hardcoded language

Post by Xztraz » Friday 10 February 2017 18:16

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 :)

Xztraz
Posts: 108
Joined: Tuesday 31 January 2017 22:54
Target OS: Raspberry Pi
Domoticz version:
Contact:

Updated swedish language file

Post by Xztraz » Friday 10 February 2017 18:46

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.
Attachments
domoticz-sv.zip
Updated swedish language
(14.61 KiB) Downloaded 33 times

Nautilus
Posts: 750
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi
Domoticz version: beta
Location: Finland
Contact:

Re: Updated swedish language file

Post by Nautilus » Friday 10 February 2017 23:57

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.

User avatar
PeGe
Posts: 28
Joined: Tuesday 31 January 2017 15:21
Target OS: Raspberry Pi
Domoticz version: V3.6328
Location: Sollentuna, Sweden
Contact:

Re: element-dark, hardcoded language

Post by PeGe » Saturday 11 February 2017 0:24

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

Xztraz
Posts: 108
Joined: Tuesday 31 January 2017 22:54
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: element-dark, hardcoded language

Post by Xztraz » Saturday 11 February 2017 1:08

Ok probably those 3 that i translated then. rest seem to be hardcoded

also corrected some grammar

Xztraz
Posts: 108
Joined: Tuesday 31 January 2017 22:54
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: element-dark, hardcoded language

Post by Xztraz » Monday 27 February 2017 21:41

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..

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests