Skip to content

Commit 7a1bea1

Browse files
fix: wrong react structure that makepot could not analyze
1 parent d8e704b commit 7a1bea1

File tree

2 files changed

+798
-505
lines changed

2 files changed

+798
-505
lines changed

includes/layouts/settings.php

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,13 @@ class="<?php echo $_tab === $active_tab ? esc_attr( 'active' ) : ''; ?>"><?php e
292292
<div class="form-block">
293293
<div class="fz-form-group">
294294
<label class="form-label"><?php esc_html_e( 'User Agent', 'feedzy-rss-feeds' ); ?></label>
295-
<input type="text" class="form-control" name="user-agent" placeholder="Add the user agent string"
296-
value="<?php echo isset( $settings['header']['user-agent'] ) ? esc_attr( $settings['header']['user-agent'] ) : ''; ?>">
295+
<input
296+
type="text"
297+
class="form-control"
298+
name="user-agent"
299+
placeholder="<?php esc_attr_e( 'Add the user agent string', 'feedzy-rss-feeds' ); ?>"
300+
value="<?php echo isset( $settings['header']['user-agent'] ) ? esc_attr( $settings['header']['user-agent'] ) : ''; ?>"
301+
>
297302
</div>
298303
</div>
299304
</div>
@@ -307,31 +312,41 @@ class="<?php echo $_tab === $active_tab ? esc_attr( 'active' ) : ''; ?>"><?php e
307312
<div class="fz-form-col-6">
308313
<div class="fz-form-group">
309314
<label class="form-label"><?php esc_html_e( 'Username', 'feedzy-rss-feeds' ); ?>:</label>
310-
<input type="text" class="form-control" name="proxy-user" placeholder="Enter the authorized username"
315+
<input type="text" class="form-control" name="proxy-user" placeholder="<?php esc_attr_e( 'Enter the authorized username', 'feedzy-rss-feeds' ); ?>"
311316
value="<?php echo isset( $settings['proxy']['user'] ) ? esc_attr( $settings['proxy']['user'] ) : ''; ?>">
312317
</div>
313318
</div>
314319
<div class="fz-form-col-6">
315320
<div class="fz-form-group">
316321
<label class="form-label"><?php esc_html_e( 'Password', 'feedzy-rss-feeds' ); ?>:</label>
317-
<input type="password" class="form-control" name="proxy-pass" placeholder="Enter the password for the authorized user"
322+
<input type="password" class="form-control" name="proxy-pass" placeholder="<?php esc_attr_e( 'Enter the password for the authorized user', 'feedzy-rss-feeds' ); ?>"
318323
value="<?php echo isset( $settings['proxy']['pass'] ) ? esc_attr( $settings['proxy']['pass'] ) : ''; ?>">
319324
</div>
320325
</div>
321326
<div class="fz-form-col-8">
322327
<div class="fz-form-group">
323328
<label class="form-label"><?php esc_html_e( 'Host', 'feedzy-rss-feeds' ); ?>:</label>
324-
<input type="text" class="form-control" name="proxy-host" placeholder="Enter the IP address or Domain name of the proxy server"
329+
<input type="text" class="form-control" name="proxy-host" placeholder="<?php esc_attr_e( 'Enter the IP address or Domain name of the proxy server', 'feedzy-rss-feeds' ); ?>"
325330
value="<?php echo isset( $settings['proxy']['host'] ) ? esc_attr( $settings['proxy']['host'] ) : ''; ?>">
326-
<div class="help-text pt-8">Example: 127.0.0.1</div>
331+
<div class="help-text pt-8">
332+
<?php
333+
/* translators: %s: the value to introduce. */
334+
printf( esc_html__( 'Example: %s', 'feedzy-rss-feeds' ), '127.0.0.1' );
335+
?>
336+
</div>
327337
</div>
328338
</div>
329339
<div class="fz-form-col-4">
330340
<div class="fz-form-group">
331341
<label class="form-label"><?php esc_html_e( 'Port', 'feedzy-rss-feeds' ); ?>:</label>
332-
<input type="number" min="0" max="65535" class="form-control" name="proxy-port" placeholder="Add the port number"
342+
<input type="number" min="0" max="65535" class="form-control" name="proxy-port" placeholder="<?php esc_attr_e( 'Add the port number', 'feedzy-rss-feeds' ); ?>"
333343
value="<?php echo isset( $settings['proxy']['port'] ) ? esc_attr( (int) $settings['proxy']['port'] ) : ''; ?>">
334-
<div class="help-text pt-8">Example: 8080</div>
344+
<div class="help-text pt-8">
345+
<?php
346+
/* translators: %s: the value to introduce. */
347+
printf( esc_html__( 'Example: %s', 'feedzy-rss-feeds' ), '8080' );
348+
?>
349+
</div>
335350
</div>
336351
</div>
337352
</div>

0 commit comments

Comments
 (0)