-
Notifications
You must be signed in to change notification settings - Fork 74
Internationalisation fixes #1088
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 10 commits
d15e7ce
3f87b15
aa294c2
9c6efb7
65501d5
fda22db
2f1f5da
538624c
93c7a40
22515c6
30bc7ce
35c8c61
fe8b6f2
7199380
d1a87b5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,14 +8,14 @@ | |
|
|
||
| <h1> | ||
|
|
||
| <a class="page-title-action" href="<?php echo esc_url( get_settings_url() ); ?>"><?php _e( '← Backups', 'backupwordpress' ); ?></a> | ||
| <a class="page-title-action" href="<?php echo esc_url( get_settings_url() ); ?>"><?php esc_html_e( '← Backups', 'backupwordpress' ); ?></a> | ||
|
|
||
| <?php _e( 'BackUpWordPress Extensions', 'backupwordpress' ); ?> | ||
| <?php esc_html_e( 'BackUpWordPress Extensions', 'backupwordpress' ); ?> | ||
|
|
||
| </h1> | ||
|
|
||
| <div class="wp-filter"> | ||
| <p><?php _e( 'Extend BackUpWordPress by installing extensions. Extensions allows you to pick and choose the exact features you need whilst also supporting us, the developers, so we can continue working on BackUpWordPress.', 'backupwordpress' ); ?></p> | ||
| <p><?php esc_html_e( 'Extend BackUpWordPress by installing extensions. Extensions allows you to pick and choose the exact features you need whilst also supporting us, the developers, so we can continue working on BackUpWordPress.', 'backupwordpress' ); ?></p> | ||
| </div> | ||
|
|
||
| <?php | ||
|
|
@@ -33,9 +33,9 @@ | |
|
|
||
| ?> | ||
|
|
||
| <h3><?php _e( 'Remote Storage', 'backupwordpress' ); ?></h3> | ||
| <h3><?php esc_html_e( 'Remote Storage', 'backupwordpress' ); ?></h3> | ||
|
|
||
| <p><?php _e( 'It\'s important to store your backups somewhere other than on your site. Using the extensions below you can easily push your backups to one or more Cloud providers.', 'backupwordpress' ); ?></p> | ||
| <p><?php esc_html_e( 'It\'s important to store your backups somewhere other than on your site. Using the extensions below you can easily push your backups to one or more Cloud providers.', 'backupwordpress' ); ?></p> | ||
|
|
||
| <div class="wp-list-table widefat plugin-install"> | ||
|
|
||
|
|
@@ -72,19 +72,25 @@ | |
| <li> | ||
| <?php if ( in_array( strtolower( $extension->title->rendered ), array_keys( $installed_plugins ) ) ) : ?> | ||
|
|
||
| <span class="button button-disabled" title="<?php _e( 'This extension is already installed', 'backupwordpress' ); ?>"><?php _e( 'Installed', 'backupwordpress' ); ?></span> | ||
| <span class="button button-disabled" title="<?php esc_attr_e( 'This extension is already installed', 'backupwordpress' ); ?>"><?php esc_html_e( 'Installed', 'backupwordpress' ); ?></span> | ||
|
|
||
| <?php else : ?> | ||
|
|
||
| <a class="install-now button-primary" data-slug="<?php echo esc_attr( $extension->slug ); ?>" href="<?php echo esc_url( $extension->link ); ?>" aria-label="Install <?php echo esc_attr( $extension->title->rendered ); ?> now" data-name="<?php echo esc_attr( $extension->title->rendered ); ?>"><?php printf( __( 'Buy Now $%s', 'backupwordpress' ), $extension->edd_price ); ?></a> | ||
| <a class="install-now button-primary" data-slug="<?php echo esc_attr( $extension->slug ); ?>" href="<?php echo esc_url( $extension->link ); ?>" aria-label="<?php printf( | ||
| /* translators: Extension name */ | ||
| esc_attr__( 'Install %s now', 'backupwordpress' ), | ||
|
||
| $extension->title->rendered | ||
| ); ?>" data-name="<?php echo esc_attr( $extension->title->rendered ); ?>"><?php printf( | ||
| /* translators: Price */ | ||
| esc_html__( 'Buy Now $%s', 'backupwordpress' ), $extension->edd_price ); ?></a> | ||
|
||
|
|
||
| <?php endif; ?> | ||
|
|
||
| </li> | ||
|
|
||
| <li> | ||
|
|
||
| <a href="<?php echo esc_url( $extension->link ); ?>" class="thickbox" aria-label="<?php printf( __( 'More information about %s', 'backupwordpress' ), esc_attr( $extension->title->rendered ) ) ; ?>" data-title="<?php echo esc_attr( $extension->title->rendered ); ?>"><?php _e( 'More Details', 'backupwordpress' ); ?></a> | ||
| <a href="<?php echo esc_url( $extension->link ); ?>" class="thickbox" aria-label="<?php printf( esc_attr__( 'More information about %s', 'backupwordpress' ), $extension->title->rendered ); ?>" data-title="<?php echo esc_attr( $extension->title->rendered ); ?>"><?php esc_html_e( 'More Details', 'backupwordpress' ); ?></a> | ||
|
||
|
|
||
| </li> | ||
|
|
||
|
|
@@ -114,32 +120,42 @@ | |
|
|
||
| <div> | ||
|
|
||
| <?php esc_html_e( sprintf( __( 'Plugin version %s', 'backupwordpress' ), $extension->_edd_sl_version ) ); ?> | ||
| <?php printf( | ||
| esc_html__( 'Plugin version %s', 'backupwordpress' ), | ||
| $extension->_edd_sl_version | ||
| ); ?> | ||
|
||
|
|
||
| </div> | ||
|
|
||
| <div> | ||
|
|
||
| <?php | ||
|
|
||
| $text = ''; | ||
|
|
||
| if ( in_array( strtolower( $extension->title->rendered ), array_keys( $installed_plugins ) ) ) { | ||
|
|
||
| $current_version = $installed_plugins[ strtolower( $extension->title->rendered ) ]; | ||
|
|
||
| if ( version_compare( $current_version, $extension->_edd_sl_version, '<' ) ) { | ||
|
|
||
| $text = sprintf( __( 'A newer version (%1$s) is available. <a href="%2$s">Update now!</a>', 'backupwordpress' ), esc_html( $extension->_edd_sl_version ), esc_url( admin_url( 'update-core.php' ) ) ); | ||
| printf( | ||
| wp_kses( | ||
| __( 'A newer version (%1$s) is available. <a href="%2$s">Update now!</a>', 'backupwordpress' ), | ||
| array( | ||
| 'a' => array( | ||
| 'href' => array(), | ||
| ), | ||
| ) | ||
| ), | ||
| esc_html( $extension->_edd_sl_version ), | ||
| esc_url( admin_url( 'update-core.php' ) ) | ||
| ); | ||
| } else { | ||
|
|
||
| $text = esc_html__( 'You have the latest version', 'backupwordpress' ); | ||
| esc_html_e( 'You have the latest version', 'backupwordpress' ); | ||
|
|
||
| } | ||
| } | ||
|
|
||
| echo $text; | ||
|
|
||
| ?> | ||
|
|
||
| </div> | ||
|
|
@@ -148,7 +164,11 @@ | |
|
|
||
| <div class="column-updated"> | ||
|
|
||
| <strong><?php _e( 'Last Updated:', 'backupwordpress' ); ?></strong> <span title="<?php echo esc_attr( $extension->modified ); ?>"><?php printf( __( '%s ago', 'backupwordpress' ), human_time_diff( strtotime( $extension->modified ) ) ); ?></span> | ||
| <strong><?php esc_html_e( 'Last Updated:', 'backupwordpress' ); ?></strong> <span title="<?php echo esc_attr( $extension->modified ); ?>"><?php printf( | ||
| /* translators: Time in human readable format */ | ||
| esc_html__( '%s ago', 'backupwordpress' ), | ||
| human_time_diff( strtotime( $extension->modified ) ) | ||
| ); ?></span> | ||
|
|
||
| </div> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,21 +7,27 @@ | |
|
|
||
| '<p><strong>' . __( 'What if I want to back up my site to another destination?', 'backupwordpress' ) . '</strong></p>' . | ||
|
|
||
| '<p>' . __( 'BackUpWordPress Pro supports Dropbox, Google Drive, Amazon S3, Rackspace, Azure, DreamObjects and FTP/SFTP. Check it out here: <a href="http://bwp.hmn.md/?utm_source=wordpress-org&utm_medium=plugin-page&utm_campaign=freeplugin" title="BackUpWordPress Homepage" target="_blank">https://bwp.hmn.md</a>', 'backupwordpress' ) . '</p>' . | ||
| '<p>' . sprintf( | ||
| __( 'BackUpWordPress Pro supports Dropbox, Google Drive, Amazon S3, Rackspace, Azure, DreamObjects and FTP/SFTP. <a href="%s" target="_blank">Check it out at bwp.hmn.md</a>', 'backupwordpress' ), | ||
| 'https://bwp.hmn.md/?utm_source=wordpress-org&utm_medium=plugin-page&utm_campaign=freeplugin' | ||
| ) . '</p>' . | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pdewouters I think you've mentioned that these files have to have a specific format otherwise they won't be processed. Will it cope if we use
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep |
||
|
|
||
| '<p><strong>' . __( 'How do I restore my site from a backup?', 'backupwordpress' ) . '</strong></p>' . | ||
|
|
||
| '<p>' . __( 'You need to download the latest backup file either by clicking download on the backups page or via <code>FTP</code>. <code>Unzip</code> the files and upload all the files to your server overwriting your site. You can then import the database using your hosts database management tool (likely <code>phpMyAdmin</code>).', 'backupwordpress' ) . '</p>' . | ||
| '<p>' . __( 'You need to download the latest backup file either by clicking download on the backups page or via FTP. Unzip the files and upload all the files to your server overwriting your site. You can then import the database using your hosts database management tool (likely phpMyAdmin).', 'backupwordpress' ) . '</p>' . | ||
|
|
||
| '<p>' . __( 'See this guide for more details - <a href="https://bwp.hmn.md/support-center/restore-backup/" title="Go to support center" target="_blank">How to restore from backup</a>.', 'backupwordpress' ) . '</p>' . | ||
| '<p>' . sprintf( | ||
| __( 'See this guide for more details - <a href="%s" target="_blank">How to restore from backup</a>.', 'backupwordpress' ), | ||
| 'https://bwp.hmn.md/support-center/restore-backup/' | ||
| ) . '</p>' . | ||
|
|
||
| '<p><strong>' . __( 'Does BackUpWordPress back up the backups directory?', 'backupwordpress' ) . '</strong></p>' . | ||
|
|
||
| '<p>' . __( 'No.', 'backupwordpress' ) . '</p>' . | ||
|
|
||
| '<p><strong>' . __( 'I\'m not receiving my backups by email', 'backupwordpress' ) . '</strong></p>' . | ||
|
|
||
| '<p>' . __( 'Most servers have a filesize limit on email attachments, it\'s generally about 10mb. If your backup file is over that limit, it won\'t be sent attached to the email. Instead, you should receive an email with a link to download the backup. If you aren\'t even receiving that, then you likely have a mail issue on your server that you\'ll need to contact your host about.', 'backupwordpress' ) . '</p>' . | ||
| '<p>' . __( 'Most servers have a file size limit on email attachments, it\'s generally about 10mb. If your backup file is over that limit, it won\'t be sent attached to the email. Instead, you should receive an email with a link to download the backup. If you aren\'t even receiving that, then you likely have a mail issue on your server that you\'ll need to contact your host about.', 'backupwordpress' ) . '</p>' . | ||
|
|
||
| '<p><strong>' . __( 'How many backups are stored by default?', 'backupwordpress' ) . '</strong></p>' . | ||
|
|
||
|
|
@@ -43,7 +49,11 @@ | |
|
|
||
| '<li>' . __( 'If you click manual backup, does it work?', 'backupwordpress' ) . '</li>' . | ||
|
|
||
| '<li>' . __( 'Try adding <code>define( \'ALTERNATE_WP_CRON\', true );</code> to your <code>wp-config.php</code>. Do automatic backups work?', 'backupwordpress' ) . '</li>' . | ||
| '<li>' . sprintf( | ||
| __( 'Try adding %1$s to your %2$s file. Do automatic backups work?', 'backupwordpress' ), | ||
| "<code>define( 'ALTERNATE_WP_CRON', true );</code>", | ||
| '<code>wp-config.php</code>' | ||
| ) . '</li>' . | ||
|
|
||
| '<li>' . __( 'Is your site private (i.e. is it behind some kind of authentication, maintenance plugin, .htaccess)? If so, wp-cron won\'t work until you remove it. If you are and you temporarily remove the authentication, do backups start working?', 'backupwordpress' ) . '</li></ul>' . | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test this string? There's an HTML entity in it (
←).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one seems to work!