How to update or fix translations that no longer work

WordPress’ translations system is based on a direct strings replacing system. When the translation files and the actual extension code get out of sync some existing translations can become obsolete while other texts may start showing up non-translated because they are not included in translations. This is when the the translation files need to be updated to account for texts changes and new translations need to be added.