element-dark, hardcoded language

Moderator: leecollings

Post Reply
Xztraz
Posts: 107
Joined: Tuesday 31 January 2017 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

element-dark, hardcoded language

Post 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 :)
Xztraz
Posts: 107
Joined: Tuesday 31 January 2017 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Updated swedish language file

Post 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.
Attachments
domoticz-sv.zip
Updated swedish language
(14.61 KiB) Downloaded 65 times
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: Updated swedish language file

Post 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.
User avatar
PeGe
Posts: 25
Joined: Tuesday 31 January 2017 14:21
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6328
Location: Sollentuna, Sweden
Contact:

Re: element-dark, hardcoded language

Post 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
Xztraz
Posts: 107
Joined: Tuesday 31 January 2017 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: element-dark, hardcoded language

Post by Xztraz »

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

also corrected some grammar
Xztraz
Posts: 107
Joined: Tuesday 31 January 2017 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: element-dark, hardcoded language

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

Who is online

Users browsing this forum: No registered users and 1 guest