fixup! WIP de traduccion
This commit is contained in:
parent
09765a1d18
commit
635400024c
1 changed files with 4 additions and 4 deletions
|
@ -2,14 +2,14 @@
|
||||||
- key = keys.pop
|
- key = keys.pop
|
||||||
- form_keys = keys.map { |k| "[#{k.to_s}]" }.join('')
|
- form_keys = keys.map { |k| "[#{k.to_s}]" }.join('')
|
||||||
- form_help = (keys.size > 0) ? [keys,key].flatten.join('.') : key
|
- 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|
|
- [keys,key].flatten.each do |k|
|
||||||
- value = value[k]
|
- value_to = value_to[k]
|
||||||
= label_tag "i18n[#{@lang_to}]#{form_keys}", value
|
= label_tag "i18n[#{@lang_to}]#{form_keys}", value
|
||||||
- if value.length > 140
|
- 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'
|
class: 'form-control'
|
||||||
- else
|
- 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'
|
class: 'form-control'
|
||||||
%small.text-muted.form-text= form_help
|
%small.text-muted.form-text= form_help
|
||||||
|
|
Loading…
Reference in a new issue