Title: Missing translation strings
Last modified: September 27, 2018

---

# Missing translation strings

 *  Resolved [Bonaldi](https://wordpress.org/support/users/bonaldi/)
 * (@bonaldi)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/missing-translation-strings-4/)
 * Hi,
    Missing `, 'wp-members'` in translations are:
 * **tab-options.php**,
 * lines 66 and 67
 *     ```
       'post' => __( 'Posts' ),
       'page' => __( 'Pages' ),
       ```
   
 * line 185
    `array(__('Enable Products', 'wp-members'),'wpmem_settings_products',
   __('Enables creation of different membership products'),'enable_products'),`
 * **post.php**,
 * line 158
 *     ```
       'post' => __( 'Posts' ),
       'page' => __( 'Pages' ),
       ```
   
 * line 214
    `_e( 'Status:', 'wp-members' ); ?> <span id="wpmem_post_block_status"
   ><?php echo $post_meta_settings[ $post_meta_value ]['text']; ?></span> <a href
   ="#" class="hide-if-no-js" id="wpmem_edit_block_status"><?php _e( 'Edit' ); ?
   ></a>`
 * line 228
    `<p><a href="#" class="hide-if-no-js button" id="wpmem_ok_block_status"
   ><?php echo _e( 'OK' ); ?></a> <!--<a href="#" class="hide-if-no-js" id="wpmem_cancel_block_status"
   ><?php _e( 'Cancel' ); ?></a>--></p>`
 * Hope you will make change on next update…
    Regards.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/missing-translation-strings-4/#post-10730508)
 * Thanks for your message. I’ll get the text domain added to the “Enables creation
   of different membership products” string. However, the remaining strings here
   that do not have a text domain are WP strings, which is why the text domain is
   omitted.
 *  Thread Starter [Bonaldi](https://wordpress.org/support/users/bonaldi/)
 * (@bonaldi)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/missing-translation-strings-4/#post-10730561)
 * It’s a mistake: strings are not translated without text domain.
    Even if they
   are WP strings…
 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/missing-translation-strings-4/#post-10731118)
 * Not trying to be argumentative, but that’s not correct.
 * The text domain argument in all of WP’s I18n functions is an optional argument.
   If not passed, it defaults to “default” which identifies it as the WP default
   text domain, which is loaded by load_default_textdomain().
 * Functionally, there is no difference between `__( 'Pages', 'default' )` and `
   __( 'Pages' )` because ‘default’ is the default value of the second argument (
   see: [__()](https://developer.wordpress.org/reference/functions/__/)).
 * If this were not the case, then no default WP strings in core would be translated
   as they all omit the text domain (because they are default strings).
 *  Thread Starter [Bonaldi](https://wordpress.org/support/users/bonaldi/)
 * (@bonaldi)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/missing-translation-strings-4/#post-10737457)
 * You are right Chad, but in post.php, line 157 and 158 you wrote this hard string:
 *     ```
       	$post_arr = array(
       		'post' => 'Posts',
       		'page' => 'Pages',
       	);
       ```
   
 * will this be translated ? 😉
 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/missing-translation-strings-4/#post-10737680)
 * Absolutely! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Missing translation strings’ is closed to new replies.

 * ![](https://ps.w.org/wp-members/assets/icon-256x256.png?rev=1226414)
 * [WP-Members Membership Plugin](https://wordpress.org/plugins/wp-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-members/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-members/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/missing-translation-strings-4/#post-10737680)
 * Status: resolved