[Gambas-user] Translations - where is *.pot files creator?

Benoit Minisini benoit.minisini at gambas-basic.org
Fri Jan 20 14:19:50 CET 2023


Le 20/01/2023 à 11:42, Martin a écrit :
> Hi,
> I am trying to make a program that will help me to translate all the 
> modules and classes of a gambas project. It goes fine as long as the 
> .pot file exists in the project but if it does not exist I am forced to 
> open the project manually then open the translation module to create it.
> But... I have found in the source code that there is a sentence to join 
> all the *.pot in a single file [1].
> The problem is that I can't find the code that generates all the .por as 
> FMain.pot etc.
> What is that code? where is it?
> 
> [1] Shell "msgcat " & Shell$(sDir) &/ ".lang/*.pot > " & Shell$(sPath) & 
> " 2>/dev/null" Wait
> 
> Thanks
> Martín.
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----

The '*.pot' files are generated by the compiler, by detecting all 
strings between '(' and ')'.

A special '#pot' file is generated from the project configuration by the 
IDE.

All that is explained inside the '*.pot' files, just open them!

Regards,

-- 
Benoît Minisini.



More information about the User mailing list