Skip to main content
Home

Translation

Translating strings programmatically

Submitted by Lucas Nesci on Wed, 09/19/2018 - 09:32

Have you ever been in the situation where you had to add [a few] translations on a hook_update instead of importing them from a .po file?

It happened to me several times where I wanted them to be added as part of the database updates, so I found out I could do it using _locale_import_one_string_db().

  • Read more about Translating strings programmatically
Tags
Drupal 7
Translation
INDIUZ