]> cat aescling's git repositories - mastodon.git/commitdiff
Use DEFAULT_FIELDS_SIZE/MAX_PROFILE_FIELDS value in settings form hint (#1870)
authorprplecake <me@prplecake.com>
Fri, 21 Oct 2022 10:01:37 +0000 (05:01 -0500)
committeraescling <aescling+gitlab@cat.family>
Thu, 17 Nov 2022 05:28:26 +0000 (00:28 -0500)
Use `Account::DEFAULT_FIELDS_SIZE` in the hint, which would fallback to
4 if the environment variable isn't set.

app/views/settings/profiles/show.html.haml
config/locales-glitch/simple_form.en.yml

index b84d06c27b81e3abd927648370b1649de4a0743a..39a508218a35637868cd4e15a079bb94987c3cdd 100644 (file)
@@ -41,7 +41,7 @@
     .fields-row__column.fields-group.fields-row__column-6
       .input.with_block_label
         %label= t('simple_form.labels.defaults.fields')
-        %span.hint= t('simple_form.hints.defaults.fields')
+        %span.hint= t('simple_form.hints.defaults.fields', count: Account::DEFAULT_FIELDS_SIZE)
 
         = f.simple_fields_for :fields do |fields_f|
           .row
index c9ef409962af6c1f180939d7f523edc735f58958..fd1c64bbb3f0594c6adba39dfa833df7cad0cd62 100644 (file)
@@ -3,6 +3,7 @@ en:
   simple_form:
     hints:
       defaults:
+        fields: You can have up to %{count} items displayed as a table on your profile
         setting_default_content_type_html: When writing toots, assume they are written in raw HTML, unless specified otherwise
         setting_default_content_type_markdown: When writing toots, assume they are using Markdown for rich text formatting, unless specified otherwise
         setting_default_content_type_plain: When writing toots, assume they are plain text with no special formatting, unless specified otherwise (default Mastodon behavior)