I have a one page, where I must perform translation. At first I was thinking of translating with JS, to do something dynamic, that is, the person would click the button, I would call a .json file and perform the translation.
But then I found the php-gettext
library, which performs what I want to do, but passing the parameter through the URL, as I use iframe, complicates the manual change to the language the person wants, in the given situation.
I have tested the library and it works well, and the important thing is that there is the poedit program that facilitates the translation. But I have a problem, I make new updates in time. That way I will have to update the main files and the rest.
1st - Is there a button in poedit for me to update the whole .pot file, without losing the existing functionality, as well as the .po of the translations already done?
* Checking poedit, it has an option where I can update the .po file through the updated .pot without losing translations.
2º - If you do not have it, what indication would you make so that I can translate my site, what do you think of the option with javascript. Do you think it's feasible?
3rd - Is there any easier way?