クラス Translations::add_entry()
クラス Translations::add_entry()
定義ファイル :/blog/wp-includes/pomo/translations.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | /** * Add entry to the PO structure * * @param object &$entry * @return bool true on success, false if the entry doesn't have a key */ function add_entry($entry) { if (is_array($entry)) { $entry = new Translation_Entry($entry); } $key = $entry->key(); if (false === $key) return false; $this->entries[$key] = &$entry; return true; } |