MO::export_translations() WordPress Method
The MO::export_translations() method is used to generate a machine-readable translation file for a given WordPress locale. This file can be used by translation software to help translate WordPress into a new language.
MO::export_translations( Translation_Entry $entry ) #
Parameters
- $entry
(Translation_Entry)(Required)
Return
(string)
Source
File: wp-includes/pomo/mo.php
public function export_translations( $entry ) { // TODO: Warnings for control characters. return $entry->is_plural ? implode( "\0", $entry->translations ) : $entry->translations[0]; }
Expand full source codeCollapse full source codeView on TracView on GitHub