Qt Linguist - Same Word but Different Context
-
I must have missed that info in the manual so here we go.
Say i have a Form1 with button "Print"
I copy this button to Form2Then when i extract the texts (with lupdate)
i get
"Print" 2 times in different places. ( Contexts)I want Print" to only exists once but
since it's on different forms, then its seems that the default is to
include it 2 times but that not what we need at all.So how is one to handle this ?
So same word is not translated over and over. -
@mrjj I don't think you can force that, as tr() uses className() to determine the context.
But, if you translate your main class and than run lupdate again, doesn't that fill in dublicated and similar translations - even across classes- , so you only have to press ctrl+Enter in those cases?
-
Hi
I was hoping for something like that - but from my first test, the other "Print" was not translated.
and lookup up in one context, did not give the other contexts version.
so Im not sure how Design is meant to be.
Or maybe my trans was acting up so Im going to try again and
see if translating once is enough.
Else i will collapse the ts my self.Thank you for the input.