@ndy23
Oh. Now we’re reaching into interesting territory.
In the translation call
__('Buy Now','wpowp')
The “wpowp” parameter is the text-domain. So you’d need to create a translation file template wpowt.pot and then translate it into, wpowt-sv_SE.po and compile wpowt-sv_SE.mo, and finally make sure to load this translation domain in the right place…
In this case, it would probably be easier for you to change that parameter to the text-domain of your theme and then use your translation software to scan for strings that need to be translated.
An elegant solution would be to package this snippet into your own little custom plugin, and then with correct header declarations you could convince WordPress to automatically load the text-domain of your custom plugin. You can try and find more details at https://developer.www.ads-software.com/plugins/internationalization/
EditAdd: the sample file names I showed was for Swedish, in case you wonder.