Title: textdomain.php
Last modified: August 30, 2016

---

# textdomain.php

 *  Resolved [didax](https://wordpress.org/support/users/didax/)
 * (@didax)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/textdomainphp-1/)
 * Hi,
 * first of all… thank you for this incredible plugin.
 * In my opinion there is an error at /checks/textdomain.php.
    When user has a theme
   without any of the rules declared inside TextDomainCheck class, an error occur(
   you can test it to reproduce warnings). It can be solved declaring $domains before
   the check and altering $domainscount considering 0, 1 and more than 1 occurrences.
 * See you…
 * [https://wordpress.org/plugins/theme-check/](https://wordpress.org/plugins/theme-check/)

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

 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [10 years, 8 months ago](https://wordpress.org/support/topic/textdomainphp-1/#post-6587998)
 * Could you provide an example that would cause this issue, for testing?
 *  Thread Starter [didax](https://wordpress.org/support/users/didax/)
 * (@didax)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/textdomainphp-1/#post-6588137)
 * Hi,
 * it’s quite simple. You must have a theme where no __, _c, … commands are launched.
   
   At this point using WP_DEBUG you can see the warnings.
 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [10 years, 8 months ago](https://wordpress.org/support/topic/textdomainphp-1/#post-6588143)
 * How can you have a theme that does not output anything?
 * Doing translation calls is really not optional. The most likely “fix” for this
   is simply to fail the theme if it lacks any translation calls.
 *  Thread Starter [didax](https://wordpress.org/support/users/didax/)
 * (@didax)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/textdomainphp-1/#post-6588145)
 * Obviously the theme it is not correct if it does not use translation calls.
 * The point is not that!
 * I said that the plugin should output a message to let user know that lack.
    Instead
   the plugin show internal warnings and output a bad message…

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

The topic ‘textdomain.php’ is closed to new replies.

 * ![](https://ps.w.org/theme-check/assets/icon-128x128.png?rev=972579)
 * [Theme Check](https://wordpress.org/plugins/theme-check/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-check/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-check/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-check/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-check/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-check/reviews/)

## Tags

 * [textdomain](https://wordpress.org/support/topic-tag/textdomain/)

 * 4 replies
 * 2 participants
 * Last reply from: [didax](https://wordpress.org/support/users/didax/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/textdomainphp-1/#post-6588145)
 * Status: resolved