5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-04 16:25:45 +00:00

fixup! WIP de traduccion

This commit is contained in:
f 2018-02-09 18:30:47 -03:00
parent 09765a1d18
commit 635400024c
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -2,14 +2,14 @@
- key = keys.pop
- form_keys = keys.map { |k| "[#{k.to_s}]" }.join('')
- form_help = (keys.size > 0) ? [keys,key].flatten.join('.') : key
- value = @site.data[@lang_to]
- value_to = @site.data[@lang_to]
- [keys,key].flatten.each do |k|
- value = value[k]
- value_to = value_to[k]
= label_tag "i18n[#{@lang_to}]#{form_keys}", value
- if value.length > 140
= text_area "i18n[#{@lang_to}]#{form_keys}", key, value: value,
= text_area "i18n[#{@lang_to}]#{form_keys}", key, value: value_to,
class: 'form-control'
- else
= text_field "i18n[#{@lang_to}]#{form_keys}", key, value: value,
= text_field "i18n[#{@lang_to}]#{form_keys}", key, value: value_to,
class: 'form-control'
%small.text-muted.form-text= form_help