Skip to content

Commit 0f45f43

Browse files
committed
Improve translator comments / fix lint errors
1 parent 103d2a4 commit 0f45f43

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

packages/story-editor/src/app/uploader/useUploader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function useUploader() {
102102
// The file is too large for the site anyway, abort.
103103
if (!isFileSizeWithinLimits(file)) {
104104
const message = sprintf(
105-
/* translators: first %s is the file size in MB and second %s is the upload file limit in MB */
105+
/* translators: 1: the file size in MB. 2: is the upload file limit in MB */
106106
__(
107107
'Your file is %1$sMB and the upload limit is %2$sMB. Please resize and try again!',
108108
'web-stories'

packages/story-editor/src/components/checklist/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const ACCESSIBILITY_COPY = {
7676
fontSizeTooSmall: {
7777
title: sprintf(
7878
/* translators: %d: minimum font size. */
79-
__('Increase font size to %s or above', 'web-stories'),
79+
__('Increase font size to %d or above', 'web-stories'),
8080
MIN_FONT_SIZE
8181
),
8282
footer: sprintf(

packages/story-editor/src/components/colorPicker/basicColorList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function BasicColorList({
137137
const title = !isEditMode
138138
? patternAsBackground
139139
: sprintf(
140-
/* translators: First %s is the color type, second %s is the color as a string */
140+
/* translators: 1: the color type. 2: the color as a string */
141141
__('Delete %1$s color: %2$s', 'web-stories'),
142142
colorType,
143143
patternAsBackground

packages/story-editor/src/components/keyboardShortcutsMenu/keyboardShortcutList.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ const shortcuts = {
237237
}}
238238
>
239239
{sprintf(
240-
/* translators: 1: Shift key. */
240+
/* translators: %s: Shift key. */
241241
__('<lkbd>%s</lkbd> <span>+ click</span>', 'web-stories'),
242242
prettifyShortcut('shift')
243243
)}
@@ -384,7 +384,7 @@ const shortcuts = {
384384
}}
385385
>
386386
{sprintf(
387-
/* translators: 1: Shift key. */
387+
/* translators: %s: Shift key. */
388388
__(
389389
'<lkbd>%s</lkbd> <span>+ arrow keys</span>',
390390
'web-stories'

packages/story-editor/src/components/library/panes/media/local/mediaPane.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function MediaPane(props) {
210210
{isSearching && media.length > 0 && (
211211
<SearchCount>
212212
{sprintf(
213-
/* translators: %d: number of results. */
213+
/* translators: %s: number of results. */
214214
_n(
215215
'%s result found.',
216216
'%s results found.',

packages/story-editor/src/components/mediaRecording/durationIndicator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function DurationIndicator() {
6060
<Tooltip
6161
position={Placement.Top}
6262
title={sprintf(
63-
/* translators: %s: number of minutes */
63+
/* translators: %d: number of minutes */
6464
_n(
6565
'Maximum duration is %d minute',
6666
'Maximum duration is %d minutes',

packages/wp-dashboard/src/components/editorSettings/editorSettings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ function EditorSettings() {
296296
const errorText =
297297
files.length === 1
298298
? sprintf(
299-
/* translators: 1: minimum width, 2: minimum height */
299+
/* translators: %s: image dimensions in pixels. */
300300
__(
301301
'Sorry, this file is too small. Make sure your logo is larger than %s.',
302302
'web-stories'

0 commit comments

Comments
 (0)