What's the best way to translate words from Wodrpress template?

Tell me, please. Added a thread a few private words for translation. But there is a problem. The theme itself is constantly updated and thus updates the file transfers. If I add in his own words, each razv all reset is necessary.

Is there any easier way to get into the translation file of the theme?
July 8th 19 at 12:08
1 answer
July 8th 19 at 12:10
1) Expression in the pattern must be enclosed in localization functions.
2) In function file to specify the connection feature localization.
3) And the file is updated after updating the template by scanning the template files. For example, with the help of the program Poedit or the plugin Codestyling Localization.

Find more questions by tags WordPress