Follow-up to https://github.com/backdrop/backdrop/pull/2397#discussion_r244554774
Because we have both $active_config and $staging_config, and you've passed in $context above... we could delete the out-of-date strings that are no longer used from the locale table when a string changes. For example if the translation for the registration email changes (or the content of the registration email changes), we don't need to be keeping all the old copies of that translated string in the database, just delete them all with that context key.
Recent comments
Thanks Alejandro. That was the clues I needed.
Ubercart - Programmatically add product to cart and straight to Checkout
Have you tried uc_cart_add_item()? You need to provide the nid of the product. Then you can use backdrop_goto('cart/checkout'); to send the user to the checkout screen. uc_cart_add_item...
Ubercart - Programmatically add product to cart and straight to Checkout
No problem, let's see how it evolves. I'd be happy to provide a suggested version if i could. I will keep that in mind and try learn this hook chain hopefully very soon. I will...
File hashing uploads made through TinyMCE