I need to programmatically add string translation (for example to translate taxonomy terms). Is there some function like add_translation($my_term_name, $language, $translation)?
I need to programmatically add string translation (for example to translate taxonomy terms). Is
Share
Unfortunately, there is no nice function in core. You can check how the locale menu does it by directly writing to the database:
Don’t forget validation if your text comes from an untrusted source (such as user input).