Skip to content

Instantly share code, notes, and snippets.

@mayukojpn
Created July 24, 2017 12:31
Show Gist options
  • Save mayukojpn/ab1f4b58260f1f6a996739a67861e510 to your computer and use it in GitHub Desktop.
Save mayukojpn/ab1f4b58260f1f6a996739a67861e510 to your computer and use it in GitHub Desktop.
Untranslatable string
diff --git a/lib/view/export/find-replace.php b/lib/view/export/find-replace.php
index 5e05918..0b3eb58 100644
--- a/lib/view/export/find-replace.php
+++ b/lib/view/export/find-replace.php
@@ -2,11 +2,11 @@
<li class="ai1wm-query ai1wm-expandable">
<p>
<span>
- <strong><?php _e( 'Find', AI1WM_PLUGIN_NAME ); ?></strong>
- <small class="ai1wm-query-find-text ai1wm-tooltip" title="Search the database for this text"><?php echo esc_html( __( '<text>', AI1WM_PLUGIN_NAME ) ); ?></small>
- <strong><?php _e( 'Replace with', AI1WM_PLUGIN_NAME ); ?></strong>
- <small class="ai1wm-query-replace-text ai1wm-tooltip" title="Replace the database with this text"><?php echo esc_html( __( '<another-text>', AI1WM_PLUGIN_NAME ) ); ?></small>
- <strong><?php _e( 'in the database', AI1WM_PLUGIN_NAME ); ?></strong>
+ <?php printf(
+ __( 'Find %1$s Replace with %2$s in the database', AI1WM_PLUGIN_NAME ),
+ '<small class="ai1wm-query-find-text ai1wm-tooltip" title="Search the database for this text">'. esc_html( __( '<text>', AI1WM_PLUGIN_NAME ) ) .'</small>',
+ '<small class="ai1wm-query-replace-text ai1wm-tooltip" title="Replace the database with this text">'. esc_html( __( '<another-text>', AI1WM_PLUGIN_NAME ) ) .'</small>'
+ ); ?>
</span>
<span class="ai1wm-query-arrow ai1wm-icon-chevron-right"></span>
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment