diff --git a/app/assets/javascripts/profile/edit/constants.js b/app/assets/javascripts/profile/edit/constants.js index 2a4f690c3beb007a62afe5621cfcfe88ea0b455e..a6e7a5eb4ef077d8581b4f9235e55fa4a97fce9f 100644 --- a/app/assets/javascripts/profile/edit/constants.js +++ b/app/assets/javascripts/profile/edit/constants.js @@ -13,7 +13,7 @@ export const avatarI18n = { uploadNewAvatar: s__('Profiles|Upload new avatar'), chooseFile: s__('Profiles|Choose file...'), noFileChosen: s__('Profiles|No file chosen.'), - maximumFileSize: s__('Profiles|The maximum file size allowed is 200KB.'), + maximumFileSize: s__('Profiles|The maximum file size allowed is 200 KiB.'), imageDimensions: s__('Profiles|The ideal image size is 192 x 192 pixels.'), removeAvatar: s__('Profiles|Remove avatar'), removeAvatarConfirmation: s__('Profiles|Avatar will be removed. Are you sure?'), diff --git a/app/assets/javascripts/vue_shared/components/upload_dropzone/avatar_upload_dropzone.vue b/app/assets/javascripts/vue_shared/components/upload_dropzone/avatar_upload_dropzone.vue index b6bbb5df93e24936a8ba047a8b7decf568434a3f..69c87cd3cfc6a05d01339313f65b265962f550c3 100644 --- a/app/assets/javascripts/vue_shared/components/upload_dropzone/avatar_upload_dropzone.vue +++ b/app/assets/javascripts/vue_shared/components/upload_dropzone/avatar_upload_dropzone.vue @@ -7,7 +7,7 @@ import { AVATAR_SHAPE_OPTION_RECT } from '~/vue_shared/constants'; export default { i18n: { uploadText: __('Drop or %{linkStart}upload%{linkEnd} an avatar.'), - maxFileSize: s__('Profiles|The maximum file size allowed is 200KB.'), + maxFileSize: s__('Profiles|The maximum file size allowed is 200 KiB.'), imageDimensions: s__('Profiles|The ideal image size is 192 x 192 pixels.'), removeAvatar: __('Remove avatar'), }, diff --git a/app/views/shared/_choose_avatar_button.html.haml b/app/views/shared/_choose_avatar_button.html.haml index 30a6a31cdd49a9b14a2387ca855dd4404eb88212..3fbc4d307442232e9aaa21021192c1e54c6530f2 100644 --- a/app/views/shared/_choose_avatar_button.html.haml +++ b/app/views/shared/_choose_avatar_button.html.haml @@ -1 +1 @@ -= render 'shared/file_picker_button', f: f, field: :avatar, help_text: s_("Profiles|The ideal image size is 192 x 192 pixels.") + " " + s_("Profiles|The maximum file size allowed is 200KB.") += render 'shared/file_picker_button', f: f, field: :avatar, help_text: s_("Profiles|The ideal image size is 192 x 192 pixels.") + " " + s_("Profiles|The maximum file size allowed is 200 KiB.") diff --git a/app/views/user_settings/profiles/show.html.haml b/app/views/user_settings/profiles/show.html.haml index 39b0084cbeb7cae068328459497398fe9b7b8b29..66977d814b9de3bcead409bc5b14801a39260ea0 100644 --- a/app/views/user_settings/profiles/show.html.haml +++ b/app/views/user_settings/profiles/show.html.haml @@ -38,7 +38,7 @@ = f.file_field :avatar, class: 'js-user-avatar-input hidden', accept: 'image/*' .gl-text-gray-500 = s_("Profiles|The ideal image size is 192 x 192 pixels.") - = s_("Profiles|The maximum file size allowed is 200KB.") + = s_("Profiles|The maximum file size allowed is 200 KiB.") - if @user.avatar? = render Pajamas::ButtonComponent.new(variant: :danger, category: :secondary, diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 9861b242aecf3612d830a1ba7af4657c7256c697..0573ea58e9594ceccba342092a76ce1b5e53ac24 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -39567,7 +39567,7 @@ msgstr "" msgid "Profiles|The ideal image size is 192 x 192 pixels." msgstr "" -msgid "Profiles|The maximum file size allowed is 200KB." +msgid "Profiles|The maximum file size allowed is 200 KiB." msgstr "" msgid "Profiles|This email will be displayed on your public profile."