Title: Make plugin translation ready
Last modified: September 1, 2020

---

# Make plugin translation ready

 *  [thezuberawordpress](https://wordpress.org/support/users/thezuberawordpress/)
 * (@thezuberawordpress)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/make-plugin-translation-ready/)
 * Hey,
    Great plugin but I’ve a hard time to translate all text string after the
   updates because many strings are hard coded.
 * Please add a textdomain and wrap all strings into __() and _e() functions, especially
 * – the placeholder in
 * `<input type="text" name="alert_me_email" class="alertme_input" id="alert_me_email"
   placeholder="email">`
 * – The Subscribe button text
    `<button type="button" id="alert_me_submit" class
   ="alertme_button"> Subscribe</button>`
 * – The content of the $result[‘error’] variables.
 * – The content of the variables $alert_me_email_subject_line, $alert_me_form_success_message
   and $alert_me_form_heading_text.
 * – The content of the unsubscribe link:
    `$unsubscribe_link_html = "<a href='".
   $unsubscribe_link. "' target='_blank'>unsubscribe</a>";`
 * Thank you!

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

 *  Plugin Author [Christopher Raymond](https://wordpress.org/support/users/chrisbloomwp/)
 * (@chrisbloomwp)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/make-plugin-translation-ready/#post-13343800)
 * Hi [@thezuberawordpress](https://wordpress.org/support/users/thezuberawordpress/),
   
   Thanks for the feedback, and sorry for the inconvenience. This was a maintenance
   update, to fix an issue reported by another user. We are activity working on 
   a much larger update that will give you control over those strings mentioned 
   above. Stay tuned.
    -  This reply was modified 5 years, 9 months ago by [Christopher Raymond](https://wordpress.org/support/users/chrisbloomwp/).
 *  Thread Starter [thezuberawordpress](https://wordpress.org/support/users/thezuberawordpress/)
 * (@thezuberawordpress)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/make-plugin-translation-ready/#post-13455048)
 * Hi,
    Thank you for the great update. I’m not sure but I think your plugin doesn’t
   include the textdomain. I think you need to add this code to the main plugin 
   file:
 *     ```
       add_action( 'plugins_loaded', 'alertme_load_textdomain' );
       function alertme_load_textdomain() {
         load_plugin_textdomain( 'alert-me', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 
       }
       ```
   
 *  Plugin Author [Christopher Raymond](https://wordpress.org/support/users/chrisbloomwp/)
 * (@chrisbloomwp)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/make-plugin-translation-ready/#post-13455118)
 * Hi [@thezuberawordpress](https://wordpress.org/support/users/thezuberawordpress/)
   
   Can you explain a little more? Thx.
 *  Thread Starter [thezuberawordpress](https://wordpress.org/support/users/thezuberawordpress/)
 * (@thezuberawordpress)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/make-plugin-translation-ready/#post-13455198)
 * Please see [https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/#loading-text-domain](https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/#loading-text-domain)
 *  Thread Starter [thezuberawordpress](https://wordpress.org/support/users/thezuberawordpress/)
 * (@thezuberawordpress)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/make-plugin-translation-ready/#post-13455236)
 * I also noticed Loco translate returns weird results when I try to generate a 
   pot/po file from your plugin source code. You might want to check this too.
 *  Thread Starter [thezuberawordpress](https://wordpress.org/support/users/thezuberawordpress/)
 * (@thezuberawordpress)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/make-plugin-translation-ready/#post-13455262)
 * Ok, the Loco issue was probably my mistake – it used the wrong textdomain “alertme”
   instead of “alert-me”.
 * I found missing translations – in alertme\inc\front-end\alertme-subscriptions-
   list.php
 * the string “Page” is not translatable in line 72:
 *     ```
       <th scope="col">Page</th>
       ```
   
 * and in 86
 *     ```
       <label class="form-check-label" for="exampleCheck<?php echo $result['id']; ?>">Unsubscribe</label>
       ```
   
 *  Thread Starter [thezuberawordpress](https://wordpress.org/support/users/thezuberawordpress/)
 * (@thezuberawordpress)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/make-plugin-translation-ready/#post-13455305)
 * Also the “Front-End Subscribe Form Settings” do not work properly for me. I added
   custom text into the fields but the form still displays “SUCCESS! You are subscribed
   to alerts anytime this page is updated. To change your subscription preferences,
   click here.! “
 *  Plugin Author [Christopher Raymond](https://wordpress.org/support/users/chrisbloomwp/)
 * (@chrisbloomwp)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/make-plugin-translation-ready/#post-13455640)
 * Thanks [@thezuberawordpress](https://wordpress.org/support/users/thezuberawordpress/)
   will check that out. Couldn’t get everything in this release 🙂

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

The topic ‘Make plugin translation ready’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/alertme_edf0f3.svg)
 * [AlertMe! – Post Update Notifications to Subscribers](https://wordpress.org/plugins/alertme/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/alertme/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/alertme/)
 * [Active Topics](https://wordpress.org/support/plugin/alertme/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/alertme/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/alertme/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Christopher Raymond](https://wordpress.org/support/users/chrisbloomwp/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/make-plugin-translation-ready/#post-13455640)
 * Status: not resolved