mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 04:41:43 +00:00
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
|
||||
- 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
|
||||
|
|
Loading…
Reference in a new issue