Skip to content
代码片段 群组 项目
未验证 提交 56541674 编辑于 作者: Amy Qualls's avatar Amy Qualls 提交者: GitLab
浏览文件

Fixes string for avatar size limits

The unit and the number should be separated by a space, and as we
learned earlier today, it's 200 KiB instead of 200 KB. It's a subtle
but meaningful difference.
上级 e7ecfa28
No related branches found
No related tags found
无相关合并请求
......@@ -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?'),
......
......@@ -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'),
},
......
= 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.")
......@@ -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,
......
......@@ -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."
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册