Skip to content

Commit

Permalink
Update text domain for the translation
Browse files Browse the repository at this point in the history
  • Loading branch information
samiahmedsiddiqui committed Jan 26, 2018
1 parent 0151e07 commit 18f2a92
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 56 deletions.
48 changes: 24 additions & 24 deletions admin/class-remove-links-scripts-about.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ private function more_plugins() {
$plugin_url = plugins_url( '/admin', REMOVE_LINKS_SCRIPTS_FILE );
$img_src = $plugin_url . '/images';
wp_enqueue_style( 'style', $plugin_url . '/css/about-plugins.min.css' );
$plugin_name = __( 'Remove Links and Scripts', 'remove-links-scripts' );
$button_text = __( 'Check it out', 'remove-links-scripts' );
$plugin_name = __( 'Remove Links and Scripts', 'remove-links-and-scripts' );
$button_text = __( 'Check it out', 'remove-links-and-scripts' );
$five_star = '<span class="star">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 53.867 53.867" width="15" height="15">
<polygon points="26.934,1.318 35.256,18.182 53.867,20.887 40.4,34.013 43.579,52.549 26.934,43.798
Expand Down Expand Up @@ -49,8 +49,8 @@ private function more_plugins() {
<div class="float">
<h1><?php echo $plugin_name . ' ' . REMOVE_LINKS_SCRIPTS_PLUGIN_VERSION; ?></h1>
<div class="tagline">
<p><?php _e('Thank you for choosing Remove Links and Scripts! We hope that your experience with our plugin to remove extra links from the HTML is quick and easy.', 'remove-links-scripts' ); ?></p>
<p><?php printf( __( 'To support future development and help to make it even better just leaving us a <a href="%s" title="Remove Links and Scripts Rating" target="_blank">%s</a> rating with a nice message to me :)', 'remove-links-scripts' ), 'https://wordpress.org/support/plugin/remove-links-and-scripts/reviews/?rate=5#new-post', $five_star ); ?></p>
<p><?php _e('Thank you for choosing Remove Links and Scripts! We hope that your experience with our plugin to remove extra links from the HTML is quick and easy.', 'remove-links-and-scripts' ); ?></p>
<p><?php printf( __( 'To support future development and help to make it even better just leaving us a <a href="%s" title="Remove Links and Scripts Rating" target="_blank">%s</a> rating with a nice message to me :)', 'remove-links-and-scripts' ), 'https://wordpress.org/support/plugin/remove-links-and-scripts/reviews/?rate=5#new-post', $five_star ); ?></p>
</div>
</div>

Expand All @@ -59,25 +59,25 @@ private function more_plugins() {
</div>

<div class="product">
<h2><?php _e( 'More from YAS Global', 'remove-links-scripts' ); ?></h2>
<span><?php _e('Our List of Plugins provides the services which helps you to manage your site URLs(Permalinks), Prevent your site from XSS Attacks, Brute force attacks, increase your site visitors by adding Structured JSON Markup and so on.', 'remove-links-scripts' ); ?></span>
<h2><?php _e( 'More from YAS Global', 'remove-links-and-scripts' ); ?></h2>
<span><?php _e('Our List of Plugins provides the services which helps you to manage your site URLs(Permalinks), Prevent your site from XSS Attacks, Brute force attacks, increase your site visitors by adding Structured JSON Markup and so on.', 'remove-links-and-scripts' ); ?></span>
<div class="box">
<div class="img">
<img src= "<?php echo $img_src; ?>/custom-permalinks.svg" />
</div>

<h3><?php _e( 'Custom Permalinks', 'schema-for-article' ); ?></h3>
<p><?php _e( 'Custom Permalinks helps you to make your permalinks customized for <em>individual</em> posts, pages, tags or categories. It will <strong>NOT</strong> apply whole permalink structures, or automatically apply a category\'s custom permalink to the posts within that category.', 'schema-for-article' ); ?></p>
<a href="https://www.custompermalinks.com/#pricing-section" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
<h3><?php _e( 'Custom Permalinks', 'remove-links-and-scripts' ); ?></h3>
<p><?php _e( 'Custom Permalinks helps you to make your permalinks customized for <em>individual</em> posts, pages, tags or categories. It will <strong>NOT</strong> apply whole permalink structures, or automatically apply a category\'s custom permalink to the posts within that category.', 'remove-links-and-scripts' ); ?></p>
<a href="https://www.custompermalinks.com/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
</div>

<div class="box">
<div class="img">
<img src= "<?php echo $img_src; ?>/permalinks-customizer.svg" />
</div>

<h3><?php _e( 'Permalinks Customizer', 'remove-links-scripts' ); ?></h3>
<p><?php _e( 'Allows you to either define different Permalink Structure or define same Permalink Structure for default and Custom PostTypes, Taxonomies. Plugin automatically creates the user-friendly URLs as per your defined structured that can be edited from the single post/page.', 'remove-links-scripts' ); ?></p>
<h3><?php _e( 'Permalinks Customizer', 'remove-links-and-scripts' ); ?></h3>
<p><?php _e( 'Allows you to either define different Permalink Structure or define same Permalink Structure for default and Custom PostTypes, Taxonomies. Plugin automatically creates the user-friendly URLs as per your defined structured that can be edited from the single post/page.', 'remove-links-and-scripts' ); ?></p>
<a href="https://wordpress.org/plugins/permalinks-customizer/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
</div>

Expand All @@ -86,18 +86,18 @@ private function more_plugins() {
<img src= "<?php echo $img_src; ?>/prevent-xss-vulnerability.png" style="transform:scale(1.5)" />
</div>

<h3><?php _e( 'Prevent XSS Vulnerability', 'remove-links-scripts' ); ?></h3>
<p><?php _e( 'Secure your site from the <strong>XSS Attacks</strong> so, your users won\'t lose any kind of information or not redirected to any other site by visiting to your site with the <strong>malicious code</strong> in the URL or so. In this way, users can open your site URLs without any hesitation.', 'remove-links-scripts' ); ?></p>
<h3><?php _e( 'Prevent XSS Vulnerability', 'remove-links-and-scripts' ); ?></h3>
<p><?php _e( 'Secure your site from the <strong>XSS Attacks</strong> so, your users won\'t lose any kind of information or not redirected to any other site by visiting to your site with the <strong>malicious code</strong> in the URL or so. In this way, users can open your site URLs without any hesitation.', 'remove-links-and-scripts' ); ?></p>
<a href="https://wordpress.org/plugins/prevent-xss-vulnerability/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
</div>

<div class="box">
<div class="img">
<img src= "<?php echo $img_src; ?>/schema-for-article.svg" />
<img src= "<?php echo $img_src; ?>/remove-links-and-scripts.svg" />
</div>

<h3><?php _e( 'SCHEMA for Article', 'schema-for-article' ); ?></h3>
<p><?php _e( 'Simply the easiest solution to add valid schema.org as a JSON script in the head of blog posts or articles. You can choose the schema either to show with the type of Article or NewsArticle from the settings page.', 'schema-for-article' ); ?></p>
<h3><?php _e( 'SCHEMA for Article', 'remove-links-and-scripts' ); ?></h3>
<p><?php _e( 'Simply the easiest solution to add valid schema.org as a JSON script in the head of blog posts or articles. You can choose the schema either to show with the type of Article or NewsArticle from the settings page.', 'remove-links-and-scripts' ); ?></p>
<a href="https://wordpress.org/plugins/schema-for-article/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
</div>

Expand All @@ -106,8 +106,8 @@ private function more_plugins() {
<img src= "<?php echo $img_src; ?>/make-paths-relative.svg" />
</div>

<h3><?php _e( 'Make Paths Relative', 'custom-permalinks' ); ?></h3>
<p><?php _e( 'Convert the paths(URLs) to relative instead of absolute. You can make <strong>Post</strong>, <strong>Category</strong>, <strong>Archive</strong>, <strong>Image</strong> URLs and <strong>Script</strong> and <strong>Style</strong> src as per your requirement. You can choose which you want to be relative from the settings Page.', 'custom-permalinks' ); ?></p>
<h3><?php _e( 'Make Paths Relative', 'remove-links-and-scripts' ); ?></h3>
<p><?php _e( 'Convert the paths(URLs) to relative instead of absolute. You can make <strong>Post</strong>, <strong>Category</strong>, <strong>Archive</strong>, <strong>Image</strong> URLs and <strong>Script</strong> and <strong>Style</strong> src as per your requirement. You can choose which you want to be relative from the settings Page.', 'remove-links-and-scripts' ); ?></p>
<a href="https://wordpress.org/plugins/make-paths-relative/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
</div>

Expand All @@ -116,8 +116,8 @@ private function more_plugins() {
<img src= "<?php echo $img_src; ?>/http-auth.svg" />
</div>

<h3><?php _e( 'Http Auth', 'schema-for-article' ); ?></h3>
<p><?php _e( 'Allows you apply <strong>HTTP Auth</strong> on your site. You can apply Http Authentication all over the site or only the admin pages. It helps to stop cralwing on your site while on development or persist the <strong>Brute Attacks</strong> by locking the Admin Pages.', 'schema-for-article' ); ?></p>
<h3><?php _e( 'HTTP Auth', 'remove-links-and-scripts' ); ?></h3>
<p><?php _e( 'Allows you apply <strong>HTTP Auth</strong> on your site. You can apply HTTP Authentication all over the site or only the admin pages. It helps to stop cralwing on your site while on development or persist the <strong>Brute Attacks</strong> by locking the Admin Pages.', 'remove-links-and-scripts' ); ?></p>
<a href="https://wordpress.org/plugins/http-auth/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
</div>

Expand All @@ -126,8 +126,8 @@ private function more_plugins() {
<img src= "<?php echo $img_src; ?>/json-structuring-markup.svg" />
</div>

<h3><?php _e( 'JSON Structuring Markup', 'remove-links-scripts' ); ?></h3>
<p><?php _e( 'Simply the easiest solution to add valid schema.org as a JSON script in the head of posts and pages. It provides you multiple <strong>SCHEMA</strong> types like Article, News Article, Organization and Website Schema.', 'remove-links-scripts' ); ?></p>
<h3><?php _e( 'JSON Structuring Markup', 'remove-links-and-scripts' ); ?></h3>
<p><?php _e( 'Simply the easiest solution to add valid schema.org as a JSON script in the head of posts and pages. It provides you multiple <strong>SCHEMA</strong> types like Article, News Article, Organization and Website Schema.', 'remove-links-and-scripts' ); ?></p>
<a href="https://wordpress.org/plugins/json-structuring-markup/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
</div>

Expand All @@ -136,8 +136,8 @@ private function more_plugins() {
<img src= "<?php echo $img_src; ?>/media-post-permalink.png" style="transform:scale(1.5)" />
</div>

<h3><?php _e( 'Media Post Permalink', 'remove-links-scripts' ); ?></h3>
<p><?php _e( 'On uploading any image, let\'s say services.png, WordPress creates the <strong>attachment post</strong> with the permalink of <strong>/services/</strong> and doesn\'t allow you to use that permalink to point your page. In this case, we comes up with this great solution.', 'remove-links-scripts' ); ?></p>
<h3><?php _e( 'Media Post Permalink', 'remove-links-and-scripts' ); ?></h3>
<p><?php _e( 'On uploading any image, let\'s say services.png, WordPress creates the <strong>attachment post</strong> with the permalink of <strong>/services/</strong> and doesn\'t allow you to use that permalink to point your page. In this case, we comes up with this great solution.', 'remove-links-and-scripts' ); ?></p>
<a href="https://wordpress.org/plugins/media-post-permalink/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions admin/class-remove-links-scripts-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function about_plugin() {
*/
public function admin_footer_text() {
$footer_text = sprintf(
__( 'Remove Links and Scripts version %s by <a href="%s" title="YAS Global Website" target="_blank">YAS Global</a> - <a href="%s" title="Support forums" target="_blank">Support forums</a> - Follow on Twitter: <a href="%s" title="Follow YAS Global on Twitter" target="_blank">YAS Global</a>', 'custom-permalinks' ),
__( 'Remove Links and Scripts version %s by <a href="%s" title="YAS Global Website" target="_blank">YAS Global</a> - <a href="%s" title="Support forums" target="_blank">Support forums</a> - Follow on Twitter: <a href="%s" title="Follow YAS Global on Twitter" target="_blank">YAS Global</a>', 'remove-links-and-scripts' ),
REMOVE_LINKS_SCRIPTS_PLUGIN_VERSION, 'https://www.yasglobal.com',
'https://wordpress.org/support/plugin/remove-links-and-scripts',
'https://twitter.com/samisiddiqui91'
Expand All @@ -80,15 +80,15 @@ public function admin_footer_text() {
*/
public function settings_link( $links ) {
$about = sprintf(
__( '<a href="%s" title="About">About</a>', 'remove-links-scripts' ),
__( '<a href="%s" title="About">About</a>', 'remove-links-and-scripts' ),
'admin.php?page=remove-links-scripts-about-plugins'
);
$contact = sprintf(
__( '<a href="%s" title="Contact" target="_blank">Contact</a>', 'remove-links-scripts' ),
__( '<a href="%s" title="Contact" target="_blank">Contact</a>', 'remove-links-and-scripts' ),
'https://www.yasglobal.com/#request-form'
);
$settings_link = sprintf(
__( '<a href="%s" title="Settings">Settings</a>', 'remove-links-scripts' ),
__( '<a href="%s" title="Settings">Settings</a>', 'remove-links-and-scripts' ),
'admin.php?page=remove-links-scripts-settings'
);
array_unshift( $links, $settings_link );
Expand Down
36 changes: 18 additions & 18 deletions admin/class-remove-links-scripts-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,65 +119,65 @@ private function remove_scripts_settings() {
);
?>
<div class="wrap">
<h1><?php _e( 'Remove Links and Scripts Settings', 'remove-links-scripts' ); ?></h1>
<div><?php _e( 'Change settings to remove unwanted links and scripts from the wordpress.', 'remove-links-scripts' ); ?></div>
<form enctype="multipart/form-data" action="" method="POST" id="remove-links-scripts">
<h1><?php _e( 'Remove Links and Scripts Settings', 'remove-links-and-scripts' ); ?></h1>
<div><?php _e( 'Change settings to remove unwanted links and scripts from the wordpress.', 'remove-links-and-scripts' ); ?></div>
<form enctype="multipart/form-data" action="" method="POST" id="remove-links-and-scripts">

<table class="remove-links-scripts">
<table class="remove-links-and-scripts">
<caption>Remove Links</caption>
<tbody>
<tr>
<td><input type="checkbox" name="shortlink" value="on" <?php echo $remove_settings_shortlink_checked; ?> /><strong><?php _e( 'Remove Shortlink', 'remove-links-scripts' ); ?></strong></td>
<td><input type="checkbox" name="shortlink" value="on" <?php echo $remove_settings_shortlink_checked; ?> /><strong><?php _e( 'Remove Shortlink', 'remove-links-and-scripts' ); ?></strong></td>
</tr>
<tr>
<td><input type="checkbox" name="rsd_link" value="on" <?php echo $remove_settings_rsd_link_checked; ?> /><strong><?php _e( 'Remove RSD Links', 'remove-links-scripts' ); ?></strong></td>
<td><input type="checkbox" name="rsd_link" value="on" <?php echo $remove_settings_rsd_link_checked; ?> /><strong><?php _e( 'Remove RSD Links', 'remove-links-and-scripts' ); ?></strong></td>
</tr>
<tr>
<td><input type="checkbox" name="wlwmanifest_link" value="on" <?php echo $remove_settings_wlwmanifest_link_checked; ?> /><strong><?php _e( 'Remove WLW Manifest Links', 'remove-links-scripts' ); ?></strong></td>
<td><input type="checkbox" name="wlwmanifest_link" value="on" <?php echo $remove_settings_wlwmanifest_link_checked; ?> /><strong><?php _e( 'Remove WLW Manifest Links', 'remove-links-and-scripts' ); ?></strong></td>
</tr>
<tr>
<td><input type="checkbox" name="feed_links" value="on" <?php echo $remove_settings_feed_links_checked; ?> /><strong><?php _e( 'Remove RSS Links', 'remove-links-scripts' ); ?></strong></td>
<td><input type="checkbox" name="feed_links" value="on" <?php echo $remove_settings_feed_links_checked; ?> /><strong><?php _e( 'Remove RSS Links', 'remove-links-and-scripts' ); ?></strong></td>
</tr>
</tbody>
</table>

<table class="remove-links-scripts">
<table class="remove-links-and-scripts">
<caption>Remove Scripts</caption>
<tbody>
<tr>
<td><input type="checkbox" name="emoji_scripts" value="on" <?php echo $remove_settings_emoji_scripts_checked; ?> /><strong><?php _e( 'Remove Emoji Scripts', 'remove-links-scripts' ); ?></strong></td>
<td><input type="checkbox" name="emoji_scripts" value="on" <?php echo $remove_settings_emoji_scripts_checked; ?> /><strong><?php _e( 'Remove Emoji Scripts', 'remove-links-and-scripts' ); ?></strong></td>
</tr>
<tr>
<td><input type="checkbox" name="wp_embed" value="on" <?php echo $remove_settings_wp_embed_checked; ?> /><strong><?php _e( 'Remove Oembed(json + xml)', 'remove-links-scripts' ); ?></strong></td>
<td><input type="checkbox" name="wp_embed" value="on" <?php echo $remove_settings_wp_embed_checked; ?> /><strong><?php _e( 'Remove Oembed(json + xml)', 'remove-links-and-scripts' ); ?></strong></td>
</tr>
<tr>
<td><input type="checkbox" name="wp_json" value="on" <?php echo $remove_settings_wp_json_checked; ?> /><strong><?php _e( 'Remove wp_json', 'remove-links-scripts' ); ?></strong></td>
<td><input type="checkbox" name="wp_json" value="on" <?php echo $remove_settings_wp_json_checked; ?> /><strong><?php _e( 'Remove wp_json', 'remove-links-and-scripts' ); ?></strong></td>
</tr>
</tbody>
</table>

<table class="remove-links-scripts">
<table class="remove-links-and-scripts">
<caption>Remove Styles</caption>
<tbody>
<tr>
<td><input type="checkbox" name="emoji_styles" value="on" <?php echo $remove_settings_emoji_styles_checked; ?> /><strong><?php _e( 'Remove Emoji Styles', 'remove-links-scripts' ); ?></strong></td>
<td><input type="checkbox" name="emoji_styles" value="on" <?php echo $remove_settings_emoji_styles_checked; ?> /><strong><?php _e( 'Remove Emoji Styles', 'remove-links-and-scripts' ); ?></strong></td>
</tr>
</tbody>
</table>

<table class="remove-links-scripts">
<table class="remove-links-and-scripts">
<caption>Remove Meta</caption>
<tbody>
<tr>
<td><input type="checkbox" name="generator" value="on" <?php echo $remove_settings_generator_checked; ?> /><strong><?php _e( 'Remove WordPress Generator Meta', 'remove-links-scripts' ); ?></strong></td>
<td><input type="checkbox" name="generator" value="on" <?php echo $remove_settings_generator_checked; ?> /><strong><?php _e( 'Remove WordPress Generator Meta', 'remove-links-and-scripts' ); ?></strong></td>
</tr>
<tr>
<td><input type="checkbox" name="rel_link" value="on" <?php echo $remove_settings_rel_link_checked; ?> /><strong><?php _e( 'Remove Ajacent Relational Links (Next + Prev)', 'remove-links-scripts' ); ?></strong></td>
<td><input type="checkbox" name="rel_link" value="on" <?php echo $remove_settings_rel_link_checked; ?> /><strong><?php _e( 'Remove Ajacent Relational Links (Next + Prev)', 'remove-links-and-scripts' ); ?></strong></td>
</tr>
</tbody>
</table>

<p class="submit"><input type="submit" name="submit" id="submit" class="button button-primary" value="<?php _e( 'Save Changes', 'remove-links-scripts' ); ?>" /></p>
<p class="submit"><input type="submit" name="submit" id="submit" class="button button-primary" value="<?php _e( 'Save Changes', 'remove-links-and-scripts' ); ?>" /></p>
</form>
</div>
<?php
Expand Down
Loading

0 comments on commit 18f2a92

Please sign in to comment.