Skip to content

Commit

Permalink
i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmikita committed Jun 9, 2018
1 parent 166befe commit 040e632
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions class/Admin/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,15 +339,15 @@ public function notifications_settings( $settings ) {
'default' => '',
'render' => array( new CoreFields\Text(), 'input' ),
'sanitize' => array( new CoreFields\Text(), 'sanitize' ),
'description' => sprintf( __( 'Leave blank to use default value: %s' ), '<code>WordPress</code>' ),
'description' => sprintf( __( 'Leave blank to use default value: %s', 'notification' ), '<code>WordPress</code>' ),
) )
->add_field( array(
'name' => __( 'From Email', 'notification' ),
'slug' => 'from_email',
'default' => '',
'render' => array( new CoreFields\Text(), 'input' ),
'sanitize' => array( new CoreFields\Text(), 'sanitize' ),
'description' => sprintf( __( 'Leave blank to use default value: %s' ), '<code>' . $default_from_email . '</code>' ),
'description' => sprintf( __( 'Leave blank to use default value: %s', 'notification' ), '<code>' . $default_from_email . '</code>' ),
) );

$notifications->add_group( __( 'Webhook', 'notification' ), 'webhook' )
Expand Down
18 changes: 9 additions & 9 deletions views/story.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,28 @@

<h1>Wait a moment...</h1>

<p><?php _e( 'I know you\'ve been using the Notification plugin for a while. That makes me very proud of my work.' ); ?></p>
<p><?php _e( 'I know you\'ve been using the Notification plugin for a while. That makes me very proud of my work.', 'notification' ); ?></p>

<p><?php _e( 'The biggest problem is the plugin popularity. While I truly believe it\'s a very good software, still not to many people know that it exists.' ); ?></p>
<p><?php _e( 'The biggest problem is the plugin popularity. While I truly believe it\'s a very good software, still not to many people know that it exists.', 'notification' ); ?></p>

<p><?php _e( 'You can help me change that.' ); ?></p>
<p><?php _e( 'You can help me change that.', 'notification' ); ?></p>

<p><?php _e( 'Think about just one person who would be interested in this plugin.' ); ?></p>
<p><?php _e( 'Think about just one person who would be interested in this plugin.', 'notification' ); ?></p>

<p><?php _e( 'Then, send this person a link to this plugin:' ); ?></p>
<p><?php _e( 'Then, send this person a link to this plugin:', 'notification' ); ?></p>

<p><code data-clipboard-text="https://wordpress.org/plugins/notification/">https://wordpress.org/plugins/notification/<span><?php esc_html_e( 'copy' ); ?></span></code></p>
<p><code data-clipboard-text="https://wordpress.org/plugins/notification/">https://wordpress.org/plugins/notification/<span><?php esc_html_e( 'copy', 'notification' ); ?></span></code></p>

<p><?php _e( 'Thanks for making things happen!' ); ?></p>
<p><?php _e( 'Thanks for making things happen!', 'notification' ); ?></p>

<div class="founder">
<?php echo get_avatar( 'jakub@underdev.it', 80 ); ?>
<div class="name">Jakub Mikita</div>
<div class="title"><?php _e( 'Founder of the Notification plugin' ); ?></div>
<div class="title"><?php _e( 'Founder of the Notification plugin', 'notification' ); ?></div>
</div>

<div class="skip">
<a href="<?php echo admin_url( 'edit.php?post_type=notification&notification-story-skip=true' ); ?>"><?php esc_html_e( 'Skip this screen' ); ?></a>
<a href="<?php echo admin_url( 'edit.php?post_type=notification&notification-story-skip=true' ); ?>"><?php esc_html_e( 'Skip this screen', 'notification' ); ?></a>
</div>

</div>

0 comments on commit 040e632

Please sign in to comment.