@@ -127,7 +127,8 @@ public static function get_form_elements() {
127
127
),
128
128
'max ' => array (
129
129
'label ' => __ ( 'Number of items to display. ' , 'feedzy-rss-feeds ' ),
130
- 'placeholder ' => __ ( '(eg: 5) ' , 'feedzy-rss-feeds ' ),
130
+ // translators: %s is the list of examples.
131
+ 'placeholder ' => '( ' . sprintf ( __ ( 'eg: %s ' , 'feedzy-rss-feeds ' ), '5 ' ) . ') ' ,
131
132
'type ' => 'text ' ,
132
133
'value ' => '' ,
133
134
),
@@ -154,7 +155,12 @@ public static function get_form_elements() {
154
155
),
155
156
'refresh ' => array (
156
157
'label ' => __ ( 'For how long we will cache the feed results. ' , 'feedzy-rss-feeds ' ),
157
- 'placeholder ' => __ ( '(eg: 1_days, defaults: 12_hours) ' , 'feedzy-rss-feeds ' ),
158
+ 'placeholder ' => '( '
159
+ // translators: %s is the list of examples.
160
+ . sprintf ( __ ( 'eg: %s ' , 'feedzy-rss-feeds ' ), '1_days ' )
161
+ // translators: %s is the default value.
162
+ . sprintf ( __ ( 'default: %s ' , 'feedzy-rss-feeds ' ), '12_hours ' )
163
+ . ') ' ,
158
164
'type ' => 'select ' ,
159
165
'value ' => '12_hours ' ,
160
166
'opts ' => feedzy_classic_widget_refresh_options (),
@@ -301,13 +307,15 @@ public static function get_form_elements() {
301
307
),
302
308
'title ' => array (
303
309
'label ' => __ ( 'Trim the title of the item after X characters. A value of 0 will remove the title. ' , 'feedzy-rss-feeds ' ),
304
- 'placeholder ' => __ ( '(eg: 160) ' , 'feedzy-rss-feeds ' ),
310
+ // translators: %s is the list of examples.
311
+ 'placeholder ' => '( ' . sprintf ( __ ( 'eg: %s ' , 'feedzy-rss-feeds ' ), '160 ' ) . ') ' ,
305
312
'type ' => 'text ' ,
306
313
'value ' => '' ,
307
314
),
308
315
'meta ' => array (
309
316
'label ' => $ meta ,
310
- 'placeholder ' => __ ( '(eg: author, date, time, tz=local) ' , 'feedzy-rss-feeds ' ),
317
+ // translators: %s is the list of examples.
318
+ 'placeholder ' => '( ' . sprintf ( __ ( 'eg: %s ' , 'feedzy-rss-feeds ' ), 'author, date, time, tz=local ' ) . ') ' ,
311
319
'type ' => 'text ' ,
312
320
'value ' => '' ,
313
321
),
@@ -335,7 +343,8 @@ public static function get_form_elements() {
335
343
'summarylength ' => array (
336
344
'label ' => __ ( 'Crop description (summary) of the element after X characters. ' , 'feedzy-rss-feeds ' ),
337
345
'type ' => 'text ' ,
338
- 'placeholder ' => __ ( '(eg: 160) ' , 'feedzy-rss-feeds ' ),
346
+ // translators: %s is the list of examples.
347
+ 'placeholder ' => '( ' . sprintf ( __ ( 'eg: %s ' , 'feedzy-rss-feeds ' ), '160 ' ) . ') ' ,
339
348
'value ' => '' ,
340
349
),
341
350
'keywords_title ' => array (
@@ -427,7 +436,8 @@ public static function get_form_elements() {
427
436
),
428
437
'size ' => array (
429
438
'label ' => __ ( 'Thumbnails dimension. Do not include "px". Eg: 150 ' , 'feedzy-rss-feeds ' ),
430
- 'placeholder ' => __ ( '(eg: 150) ' , 'feedzy-rss-feeds ' ),
439
+ // translators: %s is the list of examples.
440
+ 'placeholder ' => '( ' . sprintf ( __ ( 'eg: %s ' , 'feedzy-rss-feeds ' ), '150 ' ) . ') ' ,
431
441
'type ' => 'text ' ,
432
442
'value ' => '' ,
433
443
),
@@ -492,7 +502,8 @@ public static function get_form_elements() {
492
502
),
493
503
'columns ' => array (
494
504
'label ' => __ ( 'How many columns we should use to display the feed items ' , 'feedzy-rss-feeds ' ),
495
- 'placeholder ' => __ ( '(eg. 1, 2, ..., 6) ' , 'feedzy-rss-feeds ' ),
505
+ // translators: %s is the list of examples.
506
+ 'placeholder ' => '( ' . sprintf ( __ ( 'eg: %s ' , 'feedzy-rss-feeds ' ), '1, 2, ..., 6 ' ) . ') ' ,
496
507
'type ' => 'number ' ,
497
508
'disabled ' => true ,
498
509
'value ' => '1 ' ,
0 commit comments