Skip to content

Commit 4e3eafe

Browse files
authored
Merge pull request #10 from ramiy/patch-2
i18n: use capitalized letters
2 parents 22ad365 + 5a51596 commit 4e3eafe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

admin/class-plugin-notes-plus-admin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ public function enqueue_scripts() {
9090
$params = array (
9191
'ajaxurl' => admin_url( 'admin-ajax.php' ),
9292
'ajax_nonce' => wp_create_nonce( 'pnp_add_plugin_note_form_nonce' ), // this is a unique token to prevent form hijacking
93-
'edit_text' => esc_html__( 'edit', $this->plugin->get_plugin_name() ),
94-
'delete_text' => esc_html__( 'delete', $this->plugin->get_plugin_name() ),
93+
'edit_text' => esc_html__( 'Edit', $this->plugin->get_plugin_name() ),
94+
'delete_text' => esc_html__( 'Delete', $this->plugin->get_plugin_name() ),
9595
'confirm_delete' => esc_html__( 'Are you sure you want to delete this note?', $this->plugin->get_plugin_name() ),
9696
'needs_content' => esc_html__( 'The note must contain content.', $this->plugin->get_plugin_name() ),
9797
);
@@ -281,4 +281,4 @@ public function get_notes_for_plugin_updates_page() {
281281
'dashicons-warning' => esc_html__( 'Warning', Plugin_Notes_Plus::get_plugin_name() ),
282282
'dashicons-admin-network' => esc_html__( 'Key', Plugin_Notes_Plus::get_plugin_name() ),
283283
'dashicons-yes' => esc_html__( 'Checkmark', Plugin_Notes_Plus::get_plugin_name() ),
284-
);
284+
);

admin/partials/plugin-note-markup.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
<span class="dashicons <?php echo $the_plugin_note['icon'] ?>"></span><?php echo nl2br( $the_plugin_note[ 'note' ] ); ?>
2525
<p class="pnp-note-meta"><?php echo $the_plugin_note['user'] ?> | <span class="pnp-note-time"></span></p>
2626
</div>
27-
<a href="#" class="pnp-edit-note"><?php esc_html_e( 'edit', $this->plugin->get_plugin_name() ) ?></a> |
28-
<a href="#" class="pnp-delete-note"><?php esc_html_e( 'delete', $this->plugin->get_plugin_name() ) ?></a>
27+
<a href="#" class="pnp-edit-note"><?php esc_html_e( 'Edit', $this->plugin->get_plugin_name() ) ?></a> |
28+
<a href="#" class="pnp-delete-note"><?php esc_html_e( 'Delete', $this->plugin->get_plugin_name() ) ?></a>
2929
<span class="pnp-spin dashicons dashicons-update"></span>
3030
</div>
3131
<script>
@@ -71,4 +71,4 @@
7171
?>
7272
<p> <?php esc_html__( "You are not authorized to perform this operation.", $this->plugin->get_plugin_name() ) ?> </p>
7373
<?php
74-
}
74+
}

0 commit comments

Comments
 (0)