Title: [Plugin: Codestyling Localization] warning about ambiguous language directory
Last modified: August 20, 2016

---

# [Plugin: Codestyling Localization] warning about ambiguous language directory

 *  Resolved [pgn4web](https://wordpress.org/support/users/pgn4web/)
 * (@pgn4web)
 * [14 years ago](https://wordpress.org/support/topic/plugin-codestyling-localization-warning-about-ambiguous-language-directory/)
 * when I try Codestyling Localization on my plugin, I get a warning that the language
   folder is ambiguous and I get prompted to pick the language folder from a list.
 * How can I avoid that warning?
 * the textdomain is defined in the plugin with
    `load_plugin_textdomain( 'embedchess',
   null, dirname(plugin_basename(__FILE__)) . '/lang' );`
 * the lang folder is currently empty, does this matter?
 * [http://wordpress.org/extend/plugins/codestyling-localization/](http://wordpress.org/extend/plugins/codestyling-localization/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [codestyling](https://wordpress.org/support/users/codestyling/)
 * (@codestyling)
 * [14 years ago](https://wordpress.org/support/topic/plugin-codestyling-localization-warning-about-ambiguous-language-directory/#post-2771783)
 * Yes, you can prevent it even if my plugin can’t evaluate the correct folder. 
   This can be done by placing a translation template inside the language folder.
   The name of the file should be:
 * `embedchess-xx_XX.pot`
 * The files content should be the result of a fresh scan process, so only the untranslated
   full content should be inside. But it’s also enough, if the file only contains
   a valid pot header like this taken from the WordPress Importer’s *.pot file:
 *     ```
       # Copyright (C) 2011 WordPress Importer
       # This file is distributed under the same license as the WordPress Importer package.
       msgid ""
       msgstr ""
       "Project-Id-Version: WordPress Importer 0.5\n"
       "Report-Msgid-Bugs-To: http://wordpress.org/tag/wordpress-importer\n"
       "POT-Creation-Date: 2011-07-16 15:45:12+00:00\n"
       "MIME-Version: 1.0\n"
       "Content-Type: text/plain; charset=UTF-8\n"
       "Content-Transfer-Encoding: 8bit\n"
       "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
       "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
       "Language-Team: LANGUAGE <LL@li.org>\n"
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Codestyling Localization] warning about ambiguous language directory’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/codestyling-localization_e6e1e3.svg)
 * [Codestyling Localization](https://wordpress.org/plugins/codestyling-localization/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/codestyling-localization/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/codestyling-localization/)
 * [Active Topics](https://wordpress.org/support/plugin/codestyling-localization/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/codestyling-localization/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/codestyling-localization/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [codestyling](https://wordpress.org/support/users/codestyling/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-codestyling-localization-warning-about-ambiguous-language-directory/#post-2771783)
 * Status: resolved