Permalink
Browse files

Merge pull request #12 from cfoellmann/feature-gettext

gettext support + German translation
  • Loading branch information...
2 parents b001e17 + ef6ee26 commit 59f46a95c36f084a91127e5309cf95dbbfe3b349 @mvied committed Dec 30, 2012
View
@@ -0,0 +1,33 @@
+## WordPress HTTPS (SSL) - WordPress Plugin
+
+[Homepage](http://mvied.com/projects/wordpress-https/) |
+[WordPress.org](https://wordpress.org/extend/plugins/wordpress-https/) |
+[GitHub-Repository](https://github.com/Mvied/wordpress-https) |
+[WordPress.org-SVN](http://plugins.trac.wordpress.org/browser/wordpress-https/) |
+[Issue-Tracker](https://github.com/Mvied/wordpress-https/issues) |
+
+### WordPress
+* Requires at least: 3.0
+* Tested up to: 3.5
+
+### About
+WordPress HTTPS is intended to be an all-in-one solution to using SSL on WordPress sites.
+
+### Support
+If after setting up the plugin you are experiencing issues, please check the <a href="http://wordpress.org/extend/plugins/wordpress-https/faq/">FAQ</a>.
+If you are still unable to resolve your issue, <a href="http://wordpress.org/support/plugin/wordpress-https">start a support topic</a> and I or someone from the community will be able to assist you.
+
+### Languages
+* English
+* German
+
+* Help to translate at [https://translate.foe-services.de/projects/wordpress-https](https://translate.foe-services.de/projects/wordpress-https)
+
+### Resources
+* [Changelog](https://wordpress.org/extend/plugins/wordpress-https/changelog/)
+* [Installation](https://wordpress.org/extend/plugins/wordpress-https/installation/)
+
+### Developers
+* Mike Ems (Mvied): [Github](https://github.com/Mvied) | [WordPress.org](https://profiles.wordpress.org/Mvied) | [Web](http://mvied.com/)
+
+### Contributations are always welcome
@@ -1,7 +1,7 @@
<form name="<?php echo $this->getPlugin()->getSlug(); ?>_domain_mapping_form" id="<?php echo $this->getPlugin()->getSlug(); ?>_domain_mapping_form" action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
<?php settings_fields($this->getPlugin()->getSlug()); ?>
-<p>Domain mapping allows you to map external domains that host their HTTPS content on a different domain. You may use <a href="#TB_inline?height=155&width=350&inlineId=regex-help&" class="thickbox" title="Regular Expressions Help">regular expressions</a>.</p>
+<p><?php printf( __('Domain mapping allows you to map external domains that host their HTTPS content on a different domain. You may use %s regular expressions %s','wordpress-https'),'<a href="#TB_inline?height=155&width=350&inlineId=regex-help&" class="thickbox" title="' . __('Regular Expressions Help','wordpress-https') . '">', '</a>') ; ?>.</p>
<table class="form-table" id="domain_mapping">
<thead>
@@ -27,8 +27,8 @@
<input type="text" name="https_domain[]" value="<?php echo $https_domain; ?>" />
</td>
<td class="controls">
- <a class="remove" href="#" title="Remove URL Filter">Remove</a>
- <a class="add" href="#" title="Add URL Filter">Add</a>
+ <a class="remove" href="#" title="<?php _e('Remove URL Filter','wordpress-https'); ?>"><?php _e('Remove','wordpress-https'); ?></a>
+ <a class="add" href="#" title="<?php _e('Add URL Filter','wordpress-https'); ?>"><?php _e('Add','wordpress-https'); ?></a>
</td>
</tr>
@@ -50,18 +50,18 @@
<input type="text" name="https_domain[]" value="" />
</td>
<td class="controls">
- <a class="remove" href="#" title="Remove URL Filter">Remove</a>
- <a class="add" href="#" title="Add URL Filter">Add</a>
+ <a class="remove" href="#" title="<?php _e('Remove URL Filter','wordpress-https'); ?>"><?php _e('Remove','wordpress-https'); ?></a>
+ <a class="add" href="#" title="<?php _e('Add URL Filter','wordpress-https'); ?>"><?php _e('Add','wordpress-https'); ?></a>
</td>
</tr>
</table>
<input type="hidden" name="action" value="wphttps-domain-mapping" />
<p class="button-controls">
- <input type="submit" name="domain_mapping-save" value="Save Changes" class="button-primary" id="domain_mapping-save" />
- <input type="submit" name="domain_mapping-reset" value="Reset" class="button-secondary" id="domain_mapping-reset" />
- <img alt="Waiting..." src="<?php echo admin_url('/images/wpspin_light.gif'); ?>" class="waiting submit-waiting" />
+ <input type="submit" name="domain_mapping-save" value="<?php _e('Save Changes','wordpress-https'); ?>" class="button-primary" id="domain_mapping-save" />
+ <input type="submit" name="domain_mapping-reset" value="<?php _e('Reset','wordpress-https'); ?>" class="button-secondary" id="domain_mapping-reset" />
+ <img alt="<?php _e('Waiting...','wordpress-https'); ?>" src="<?php echo admin_url('/images/wpspin_light.gif'); ?>" class="waiting submit-waiting" />
</p>
</form>
<script type="text/javascript">
@@ -108,7 +108,7 @@
});
$('#domain_mapping-reset').click(function(e, el) {
- if ( ! confirm('Are you sure you want to reset all WordPress HTTPS domain mappings?') ) {
+ if ( ! confirm('<?php _e('Are you sure you want to reset all WordPress HTTPS domain mappings?','wordpress-https'); ?>') ) {
e.preventDefault();
return false;
}
@@ -3,8 +3,8 @@
<table class="form-table">
<tr valign="top" id="secure_filter_row">
<th scope="row">
- Secure Filters
- <p class="description">Example: If you have an E-commerce shop and all of the URL's begin with /store/, you could secure all store links by entering '/store/' on one line. You may use <a href="#TB_inline?height=155&width=350&inlineId=regex-help" class="thickbox" title="Regular Expressions Help">regular expressions</a>.</p>
+ <?php _e('Secure Filters','wordpress-https'); ?>
+ <p class="description"><?php printf( __("Example: If you have an E-commerce shop and all of the URL's begin with /store/, you could secure all store links by entering '/store/' on one line. You may use %s regular expressions %s",'wordpress-https'),'<a href="#TB_inline?height=155&width=350&inlineId=regex-help" class="thickbox" title="' . __('Regular Expressions Help','wordpress-https') . '">','</a>'); ?>.</p>
</th>
<td>
<textarea name="secure_filter" id="secure_filter"><?php echo implode("\n", $this->getPlugin()->getSetting('secure_filter')); ?></textarea>
@@ -13,9 +13,9 @@
</table>
<input type="hidden" name="action" value="wphttps-filters" />
<p class="button-controls">
- <input type="submit" name="filters-save" value="Save Changes" class="button-primary" id="filters-save" />
- <input type="submit" name="filters-reset" value="Reset" class="button-secondary" id="filters-reset" />
- <img alt="Waiting..." src="<?php echo admin_url('/images/wpspin_light.gif'); ?>" class="waiting submit-waiting" />
+ <input type="submit" name="filters-save" value="<?php _e('Save Changes','wordpress-https'); ?>" class="button-primary" id="filters-save" />
+ <input type="submit" name="filters-reset" value="<?php _e('Reset','wordpress-https'); ?>" class="button-secondary" id="filters-reset" />
+ <img alt="<?php _e('Waiting...','wordpress-https'); ?>" src="<?php echo admin_url('/images/wpspin_light.gif'); ?>" class="waiting submit-waiting" />
</p>
</form>
@@ -32,7 +32,7 @@
});
$('#filters-reset').click(function(e, el) {
- if ( ! confirm('Are you sure you want to reset all WordPress HTTPS filters?') ) {
+ if ( ! confirm('<?php _e('Are you sure you want to reset all WordPress HTTPS filters?','wordpress-https'); ?>') ) {
e.preventDefault();
return false;
}
@@ -4,14 +4,14 @@
<table id="blog-table">
<thead>
<tr>
- <th class="blog-blog">Blog</th>
- <th class="blog-host">SSL Host</th>
- <th class="blog-ssl_admin">Force SSL Admin</th>
- <th class="blog-exclusive_https">Force SSL Exclusively</th>
- <th class="blog-remove_unsecure">Remove Unsecure Elements</th>
- <th class="blog-debug">Debug Mode</th>
- <th class="blog-proxy">Proxy</th>
- <th class="blog-admin_menu">Admin Menu Location</th>
+ <th class="blog-blog"><?php _e('Blog','wordpress-https'); ?></th>
+ <th class="blog-host"><?php _e('SSL Host','wordpress-https'); ?></th>
+ <th class="blog-ssl_admin"><?php _e('Force SSL Admin','wordpress-https'); ?></th>
+ <th class="blog-exclusive_https"><?php _e('Force SSL Exclusively','wordpress-https'); ?></th>
+ <th class="blog-remove_unsecure"><?php _e('Remove Unsecure Elements','wordpress-https'); ?></th>
+ <th class="blog-debug"><?php _e('Debug Mode','wordpress-https'); ?></th>
+ <th class="blog-proxy"><?php _e('Proxy','wordpress-https'); ?></th>
+ <th class="blog-admin_menu"><?php _e('Admin Menu Location','wordpress-https'); ?></th>
</tr>
</thead>
<tbody>
@@ -32,15 +32,15 @@
<td class="blog-debug"><input type="hidden" name="blog[<?php echo $blog_id; ?>][debug]" value="0" /><input name="blog[<?php echo $blog_id; ?>][debug]" type="checkbox" value="1"<?php echo (($this->getPlugin()->getSetting('debug', $blog_id)) ? ' checked="checked"' : ''); ?> /></td>
<td class="blog-proxy">
<select name="blog[<?php echo $blog_id; ?>][ssl_proxy]">
- <option value="0"<?php echo ((! $this->getPlugin()->getSetting('ssl_proxy', $blog_id)) ? ' selected="selected"' : ''); ?>>No</option>
- <option value="auto"<?php echo (($this->getPlugin()->getSetting('ssl_proxy', $blog_id) === 'auto') ? ' selected="selected"' : ''); ?>>Auto</option>
- <option value="1"<?php echo (($this->getPlugin()->getSetting('ssl_proxy', $blog_id) == 1) ? ' selected="selected"' : ''); ?>>Yes</option>
+ <option value="0"<?php echo ((! $this->getPlugin()->getSetting('ssl_proxy', $blog_id)) ? ' selected="selected"' : ''); ?>><?php _e('No','wordpress-https'); ?></option>
+ <option value="auto"<?php echo (($this->getPlugin()->getSetting('ssl_proxy', $blog_id) === 'auto') ? ' selected="selected"' : ''); ?>><?php _e('Auto','wordpress-https'); ?></option>
+ <option value="1"<?php echo (($this->getPlugin()->getSetting('ssl_proxy', $blog_id) == 1) ? ' selected="selected"' : ''); ?>><?php _e('Yes','wordpress-https'); ?></option>
</select>
</td>
<td class="blog-admin_menu">
<select name="blog[<?php echo $blog_id; ?>][admin_menu]">
- <option value="side"<?php echo (($this->getPlugin()->getSetting('admin_menu', $blog_id) === 'side') ? ' selected="selected"' : ''); ?>>Sidebar</option>
- <option value="settings"<?php echo (($this->getPlugin()->getSetting('admin_menu', $blog_id) === 'settings') ? ' selected="selected"' : ''); ?>>Settings</option>
+ <option value="side"<?php echo (($this->getPlugin()->getSetting('admin_menu', $blog_id) === 'side') ? ' selected="selected"' : ''); ?>><?php _e('Sidebar','wordpress-https'); ?></option>
+ <option value="settings"<?php echo (($this->getPlugin()->getSetting('admin_menu', $blog_id) === 'settings') ? ' selected="selected"' : ''); ?>><?php _e('Settings','wordpress-https'); ?></option>
</select>
</td>
</tr>
@@ -64,15 +64,15 @@
<td class="blog-debug"><input type="hidden" name="blog_default[debug]" value="0" /><input name="blog_default[debug]" type="checkbox" value="1"<?php echo ($defaults['debug'] ? ' checked="checked"' : ''); ?> /></td>
<td class="blog-proxy">
<select name="blog_default[ssl_proxy]">
- <option value="0"<?php echo (! $defaults['ssl_proxy'] ? ' selected="selected"' : ''); ?>>No</option>
- <option value="auto"<?php echo ($defaults['ssl_proxy'] === 'auto' ? ' selected="selected"' : ''); ?>>Auto</option>
- <option value="1"<?php echo ($defaults['ssl_proxy'] === 1 ? ' selected="selected"' : ''); ?>>Yes</option>
+ <option value="0"<?php echo (! $defaults['ssl_proxy'] ? ' selected="selected"' : ''); ?>><?php _e('No','wordpress-https'); ?></option>
+ <option value="auto"<?php echo ($defaults['ssl_proxy'] === 'auto' ? ' selected="selected"' : ''); ?>><?php _e('Auto','wordpress-https'); ?></option>
+ <option value="1"<?php echo ($defaults['ssl_proxy'] === 1 ? ' selected="selected"' : ''); ?>><?php _e('Yes','wordpress-https'); ?></option>
</select>
</td>
<td class="blog-admin_menu">
<select name="blog_default[admin_menu]">
- <option value="side"<?php echo ($defaults['admin_menu'] === 'side' ? ' selected="selected"' : ''); ?>>Sidebar</option>
- <option value="settings"<?php echo ($defaults['admin_menu'] === 'settings' ? ' selected="selected"' : ''); ?>>Settings</option>
+ <option value="side"<?php echo ($defaults['admin_menu'] === 'side' ? ' selected="selected"' : ''); ?>><?php _e('Sidebar','wordpress-https'); ?></option>
+ <option value="settings"<?php echo ($defaults['admin_menu'] === 'settings' ? ' selected="selected"' : ''); ?>><?php _e('Settings','wordpress-https'); ?></option>
</select>
</td>
</tr>
@@ -83,8 +83,8 @@
<input type="hidden" name="action" value="wphttps-network" />
<p class="button-controls">
- <input type="submit" name="network-settings-save" value="Save Changes" class="button-primary" id="network-settings-save" />
- <img alt="Waiting..." src="<?php echo admin_url('/images/wpspin_light.gif'); ?>" class="waiting submit-waiting" />
+ <input type="submit" name="network-settings-save" value="<?php _e('Save Changes','wordpress-https'); ?>" class="button-primary" id="network-settings-save" />
+ <img alt="<?php _e('Waiting...','wordpress-https'); ?>" src="<?php echo admin_url('/images/wpspin_light.gif'); ?>" class="waiting submit-waiting" />
</p>
</form>
<script type="text/javascript">
@@ -21,8 +21,8 @@
<?php if ( isset($parent_force_ssl_children) ) { ?>
<input type="hidden" value="<?php echo ( $force_ssl ? 1 : 0 ); ?>" name="force_ssl" />
<?php } ?>
- <label<?php echo ( isset($parent_force_ssl_children) ? ' title="This post\'s parent page \'' . $parent_force_ssl_children->post_title . '\' has \'Secure child posts\' enabled."' : '' ); ?>><input type="checkbox" value="1" name="force_ssl" <?php echo ( $force_ssl ? ' checked="checked"' : '' ); ?><?php echo ( isset($parent_force_ssl_children) ? ' disabled="disabled="' : '' ); ?> /> Secure post</label>
+ <label<?php echo ( isset($parent_force_ssl_children) ? ' title="' . printf( __("This post's parent page '%s' has 'Secure child posts' enabled.",'wordpress-https'), $parent_force_ssl_children->post_title) . '"' : '' ); ?>><input type="checkbox" value="1" name="force_ssl" <?php echo ( $force_ssl ? ' checked="checked"' : '' ); ?><?php echo ( isset($parent_force_ssl_children) ? ' disabled="disabled="' : '' ); ?> /> <?php _e('Secure post','wordpress-https'); ?></label>
</div>
<div class="misc-pub-section misc-pub-section-last">
- <label><input type="checkbox" value="1" name="force_ssl_children" <?php echo ( $force_ssl_children ? ' checked="checked"' : '' ); ?> /> Secure child posts</label>
+ <label><input type="checkbox" value="1" name="force_ssl_children" <?php echo ( $force_ssl_children ? ' checked="checked"' : '' ); ?> /> <?php _e('Secure child posts','wordpress-https'); ?></label>
</div>
Oops, something went wrong.

0 comments on commit 59f46a9

Please sign in to comment.