mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Change rule translation interface to display english name and populate empty translations (#35170)
This commit is contained in:
parent
72f2f35bfb
commit
0a7418e6d8
4 changed files with 9 additions and 2 deletions
|
|
@ -5,7 +5,7 @@
|
|||
= f.input :language,
|
||||
collection: ui_languages,
|
||||
include_blank: false,
|
||||
label_method: ->(locale) { native_locale_name(locale) }
|
||||
label_method: ->(locale) { "#{native_locale_name(locale)} (#{standard_locale_name(locale)})" }
|
||||
|
||||
.fields-row__column.fields-group
|
||||
= f.hidden_field :id if f.object&.persisted? # Required so Rails doesn't put the field outside of the <tr/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue