Replies: 0
I have developed a plugin for my personal use, to handle page localization this way.
Each word or sentence which needs to be translated in a page must be enclosed in a shortcode such as [locale text=”text to translate”].
My plugin then provides a utility to extract all these shortcodes in a page and generates a po file, with one po file for each page.
So I can then build one po file for each language I want to be supported on a page.
I have setup a language selector on the frontend, and once a locale is selected, each page is displayed in the selected language, using the mo file associated to that page.
Currently I use POEdit to manage translation, but your plugin could be a brilliant alternative, by enabling translators to work online.
But my po files are not associated to theme, nor plugin, they are associated to pages.
So, how to proceed to have all these po files displayed in loco, so loco can be used to translate them?