Title: Feature Request: allow .phtml source files
Last modified: August 22, 2016

---

# Feature Request: allow .phtml source files

 *  Resolved [Maik Penz](https://wordpress.org/support/users/goatherd/)
 * (@goatherd)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/feature-request-allow-phtml-source-files/)
 * Would it be possible to support template source files using the .phtml extension.
   Currently loco translate only parses .php and does not easily allow for modification.
 * In LocoAdmin changing the method to
 *     ```
       public static function find_php( $dir ){
               $files = self::find( $dir, array('php', 'phtml') );
               return array_merge($files['php'], $files['phtml']);
           }
       ```
   
 * fixes it for me.
 * Properly an option to add arbitrary extensions from the backend would be even
   more flexible.
 * [https://wordpress.org/plugins/loco-translate/](https://wordpress.org/plugins/loco-translate/)

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

 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/feature-request-allow-phtml-source-files/#post-5516134)
 * It’s a good idea. Thanks. I’ve added to the dev version, so this should make 
   its way into the next minor release.
 * [https://github.com/loco/wp-loco/commit/eb89a684601582673eeed8c3b042b33f8b9ef1b9](https://github.com/loco/wp-loco/commit/eb89a684601582673eeed8c3b042b33f8b9ef1b9)
 * Future versions will also scan JS files, so there will be some more development
   on these file extensions.
 *  Thread Starter [Maik Penz](https://wordpress.org/support/users/goatherd/)
 * (@goatherd)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/feature-request-allow-phtml-source-files/#post-5516159)
 * Great!
 * Thank you!

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

The topic ‘Feature Request: allow .phtml source files’ is closed to new replies.

 * ![](https://ps.w.org/loco-translate/assets/icon-256x256.png?rev=1000676)
 * [Loco Translate](https://wordpress.org/plugins/loco-translate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/loco-translate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/loco-translate/)
 * [Active Topics](https://wordpress.org/support/plugin/loco-translate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/loco-translate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/loco-translate/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Maik Penz](https://wordpress.org/support/users/goatherd/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/feature-request-allow-phtml-source-files/#post-5516159)
 * Status: resolved