Title: Generating a Localization File &#8211; Error
Last modified: August 22, 2016

---

# Generating a Localization File – Error

 *  Resolved [X-Raym](https://wordpress.org/support/users/x-raym/)
 * (@x-raym)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/generating-a-localization-file-error/)
 * Hi !
 * I wanted to share with you a French version of the plugin, but I couldn’t generate
   the .po file.
    I use Codestyling Localization plugin, which is very good for 
   generated localization file. The thing is that this plugin as a very precise 
   Scripting Guard, which blocks translation for plugins wich cause problem.
 * Here is the message error I get :
 *     ```
       Malfunction at 3rd party Plugin detected!
       Name: WP Support Plus | Author: pradeepmakone
       Below listed scripts has been automatically stripped because of injection:
   
           ../plugins/wp-support-plus-responsive-ticket-system/asset/js/admin.js
       ```
   
 * Accordingly to the Codestyling Localization author, I have to contact you for
   this 😛
 * > What can I do, if I get this protection message alert?
   >  If your Installation has this kind of problems, please contact the author 
   > of theme or plugin(s) which inject their script code either accidentally or
   > intentionally (click message details). He/she must repair the affected theme/
   > plugin to play nicely with other plugins at WordPress backend and/or restrict
   > its scripts to the 3rd party theme/plugin pages only.
 * So it appears it is just the way admin is loaded that cause problem, so it make
   me unable to generate a translation file.
 * I hope this report can help !
    and thank you again for your support 🙂
 * Cheers !
 * [https://wordpress.org/plugins/wp-support-plus-responsive-ticket-system/](https://wordpress.org/plugins/wp-support-plus-responsive-ticket-system/)

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

 *  Plugin Author [Pradeep Makone](https://wordpress.org/support/users/pradeepmakone07/)
 * (@pradeepmakone07)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/generating-a-localization-file-error/#post-5272837)
 * Hi X-Raym,
 * admin.js file was empty. That was the reasone it couldn’t generate the .po file.
 * Now it has been removed in version 2.2. Hope this will work out for you. Please
   update your plugin and check back.
 * Upgrade to pro for more features and quality support,
 * Thanks for reporting!
 *  Thread Starter [X-Raym](https://wordpress.org/support/users/x-raym/)
 * (@x-raym)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/generating-a-localization-file-error/#post-5272844)
 * Hi !
    Thank you so much for you very quick answers 🙂
 * On that particular problem, it appears that 2.2 has the same problem.
    The problem
   is in admin.php. It is not because the js was empty, but because it was called
   on admin side. Deleting this line resolve the problem :
 *     ```
       Line 18 : wp_enqueue_script('wpce_admin', WCE_PLUGIN_URL . 'asset/js/admin.js');
       ```
   
 * Thanks again for listening 🙂
 * EDIT : Unfortunatly, it appears Codestyling Localisation still isn’t able to 
   recognize your plugin as transltable. I don’t know from where the problem come.
   
   Do your plugin is capable of localization ?
 *  Plugin Author [Pradeep Makone](https://wordpress.org/support/users/pradeepmakone07/)
 * (@pradeepmakone07)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/generating-a-localization-file-error/#post-5272846)
 * Yes, It was missed by mistake from me. But you are good on it!
 * Thanks for getting back again!
 *  Thread Starter [X-Raym](https://wordpress.org/support/users/x-raym/)
 * (@x-raym)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/generating-a-localization-file-error/#post-5272852)
 * You are welcome 🙂
 * But your plugin doesn’t seem localizable. It can’t be recognize by the translation
   plugin.
 * I take a look into the source code and confirm that texts are hard written directly
   in html.
    for eg
 *     ```
       <option value="high">High</option>
       ```
   
 * instead of
 *     ```
       <option value="high"<?php _e('High',plugin_name_domain); ?></option>
       ```
   
 * (as seen on [Make A WordPress Plugin – Translations – FooPlugins Blog](http://fooplugins.com/make-a-wordpress-plugin-translations/))
   
   I know it took a lot of work and patience – perhaps there is tools for that(I
   know better translators tools than developers one), but if you plan to get the
   plugin localizable, I would be the first one to translate it 🙂
 * Once again, thanks for listening 🙂
 *  Plugin Author [Pradeep Makone](https://wordpress.org/support/users/pradeepmakone07/)
 * (@pradeepmakone07)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/generating-a-localization-file-error/#post-5272858)
 * Sure, I will plan for this.
    Also I will be in contact with you if I need any
   help.
 * Thanks for you deep review and testing. It was realy helpfull.
 *  Thread Starter [X-Raym](https://wordpress.org/support/users/x-raym/)
 * (@x-raym)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/generating-a-localization-file-error/#post-5272863)
 * I’m happy to help you on this great plugin 🙂
 * It feels good to be listen !
 * Cheers 😛
 *  Plugin Author [Pradeep Makone](https://wordpress.org/support/users/pradeepmakone07/)
 * (@pradeepmakone07)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/generating-a-localization-file-error/#post-5273143)
 * Hi X-Raym,
 * Plugin is now translation ready. This feature is available in pro version only.
 * [Click Here](http://wpsuportplus.byethost7.com/) to download pro version.
 * Please share french language .po and .mo files after translation.
 * Please note that you will have to use poedit for editing translation.
 * [Click here](http://doc.osclass.org/Translating_and_editing_language_files_%28.po_and_.mo%29)
   how to edit using poedit.
 * Thanks,
    Pradeep
 *  Thread Starter [X-Raym](https://wordpress.org/support/users/x-raym/)
 * (@x-raym)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/generating-a-localization-file-error/#post-5273144)
 * Hi !
 * I did the french version based on 3.4.
 * You will have a zip soon !
 * I know poedit very well, I translated thousands of line already 😛
 * For you next release, maybe you can take advantage on [crowd-translation](http://extremraym.com/en/crowd-translation-developers/)?
 * Just an idea !
 * Cheers !
 *  Thread Starter [X-Raym](https://wordpress.org/support/users/x-raym/)
 * (@x-raym)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/generating-a-localization-file-error/#post-5273145)
 * Some strings doesn’t show the translation, just as
    - Statistics
    - Open/Pending/Closed Tickets
    - for help to create App
 * This strings are present in the translated file.
 * the other things are ok !
 *  Plugin Author [Pradeep Makone](https://wordpress.org/support/users/pradeepmakone07/)
 * (@pradeepmakone07)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/generating-a-localization-file-error/#post-5273150)
 * Hi X-Raym,
 * I need your help to explain how to make localization working!
 * I mean till now I know how to make plugin localizable, how to create .po and .
   mo files, editing .po file and translating in any language and let wordpress 
   know where to find translation files using load_plugin_textdomain function!
 * But how can I test this is working or not? Do I have to change wordpress language
   e.g if I install wordpress in french, and I have plugin who has this translation
   present will automatically get translated?
 * Please give your explanation [here](https://wordpress.org/support/topic/attachment-file-types?replies=8#post-6071886),
   So that both of us will know!
 * Thanks in advance!

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

The topic ‘Generating a Localization File – Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-support-plus-responsive-ticket-
   system_868078.svg)
 * [WP Support Plus Responsive Ticket System](https://wordpress.org/plugins/wp-support-plus-responsive-ticket-system/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-support-plus-responsive-ticket-system/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-support-plus-responsive-ticket-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-support-plus-responsive-ticket-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-support-plus-responsive-ticket-system/reviews/)

## Tags

 * [Backend](https://wordpress.org/support/topic-tag/backend/)
 * [generating](https://wordpress.org/support/topic-tag/generating/)
 * [Localization](https://wordpress.org/support/topic-tag/localization/)

 * 10 replies
 * 2 participants
 * Last reply from: [Pradeep Makone](https://wordpress.org/support/users/pradeepmakone07/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/generating-a-localization-file-error/#post-5273150)
 * Status: resolved