[PyQt] Strings with variables in TS-File can not be loaded

Phil Thompson phil at riverbankcomputing.com
Tue Sep 16 09:31:09 BST 2008


On Tue, 16 Sep 2008 02:20:53 +0200, Sergio Jovani <lesergi at gmail.com>
wrote:
> Hello all!
> 
> I have a project and his respective translations in TS files. All work
> fine 
> except strings that contain %s, they aren't loaded, source-code strings
> are 
> loaded.
> 
> For example,
> 
> Source code:
> DurationMsg=self.tr("Duration: %s min" % duration)
> 
> Translation:
> Duració: %s min
> 
> 
> App loads for example "Duration: 4 min"

Can you send me a short, complete example that demonstrates the problem.

Phil



More information about the PyQt mailing list