WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 2 years ago

#11069 closed enhancement (worksforme)

Please Add entry (&make_entry) similar in PO object as in MO object

Reported by: michelwppi Owned by: nbachiyski
Milestone: Priority: normal
Severity: normal Version: 2.9
Component: I18N Keywords: po class mo class
Focuses: Cc:

Description

I just update xili-dictionary 1.0.0 (not yet current version) plugin (which manage translations and .po and .mo files of current theme) - http://wordpress.org/extend/plugins/xili-dictionary/download/ and now I use powerful POMO libraries included in wp-includes. And include_once not yet used po.php.
Very well designed classes : congratulations.
To add entries in a MO object from plugin internal database (based on a reserved taxonomies) , &make_entry is used to fill and after create the .mo file. I hoped to do the same to create PO and .po files... But no &make_entry function in this object... so I need to create a more generic & new Translation_Entry. and more lines (see lines 1050 of version 1.0.0..)

Is it possible to be similar for this function &make_entry between MO and PO class ?

Best regards,
Michel of http://dev.xiligroup.com

Change History (4)

comment:1 nbachiyski4 years ago

What do you expect PO::make_entry() to do?

MO::make_entry() is function, which works on strings, formatted for MO file. PO file has a similar, called read_entry(), but it actually reads from a file.

comment:2 nbachiyski4 years ago

  • Owner changed from nbachiysk to nbachiyski
  • Status changed from new to assigned

comment:3 ryan4 years ago

  • Milestone changed from 2.9 to Future Release

comment:4 nacin2 years ago

  • Keywords changed from po class, mo class to po class mo class
  • Milestone Future Release deleted
  • Resolution set to worksforme
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.