Ticket #11069 (closed enhancement: worksforme)

Opened 3 years ago

Last modified 7 weeks ago

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

Reported by: michelwppi Owned by: nbachiyski
Priority: normal Milestone:
Component: I18N Version: 2.9
Severity: normal Keywords: po class mo class
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

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.

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

comment:3   ryan3 years ago

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