[wp-trac] [WordPress Trac] #15858: Twenty Ten i18n - translated strings not visible

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 21 20:11:59 UTC 2012


#15858: Twenty Ten i18n - translated strings not visible
--------------------------+--------------------------
 Reporter:  pavelevap     |       Owner:  brocheafoin
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  3.4
Component:  I18N          |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+--------------------------

Comment (by nacin):

 [attachment:15858.diff] is the beginnings of a fix for #15858 and #6007. I
 started by adding TextDomain and DomainPath, then fixed up
 _get_plugin_data_markup_translate() and added a corresponding function for
 themes. Page templates were translated.

 Then it went downhill. (Or down a rabbit hole, you might say.)

  1. get_file_description() is passed an absolute path to a file. Figuring
 out what theme it belongs to (to ascertain the textdomain) is harder than
 one might expect.

  2. get_themes() should burn in hell and will likely give me night terrors
 for the rest of the week. Seriously. I struggled with this mess two years
 ago during GSoC, and returning to it now makes me want to stab my eyes
 with a pencil.

 Other than that, things are peachy.

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


More information about the wp-trac mailing list