[wp-trac] [WordPress Trac] #21524: No translation in ajax file

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 10 15:45:40 UTC 2012


#21524: No translation in ajax file
-------------------------------+------------------------------
 Reporter:  Ninos Ego          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.4.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by Ninos Ego):

 sure, for example in the TEMPLATE_DIRECTORY/ajax/testfile.php

 {{{
 <?php
 require_once('../../../../wp-blog-header.php');
 header("HTTP/1.1 200 OK");

 _e('Is it translated?', 'Buddyoffr');

 ?>
 }}}

 In the .po and .mo file the string is translated, also I get an translated
 output by copying this line into the function or somewhere else. Only the
 ajax files put the original string out..

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21524#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list