function stringoverrides_admin_export_text in String Overrides 6
Returns the exported *.po text from the given language.
1 call to stringoverrides_admin_export_text()
- stringoverrides_admin_export_submit in ./
stringoverrides.admin.inc - Submit-handler for stringoverrides_admin_export.
File
- ./
stringoverrides.admin.inc, line 344 - Admin page callbacks for the String Overrides module.
Code
function stringoverrides_admin_export_text($lang = 'en') {
$export = "# String Overrides Export\n";
$overrides = variable_get('locale_custom_strings_' . $lang, array());
foreach ($overrides as $override => $string) {
$export .= 'msgid "' . $override . "\"\nmsgstr \"{$string}\"\n";
}
return $export;
}