Ticket #11069 (closed enhancement: worksforme)
Please Add entry (&make_entry) similar in PO object as in MO object
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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
comment:1
nbachiyski — 3 years ago
comment:2
nbachiyski — 3 years ago
- Owner changed from nbachiysk to nbachiyski
- Status changed from new to assigned

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.