Em segunda-feira, 7 de março de 2016, às 19:56:04 PST, Jason H escreveu:
> > If you provide a translation file, the message with %n will be translated
> > according to the language's plural rules. For English, you'll have two
> > translations for the same source message.
> > 
> >     "At least one upper case character is required" (a)
> >     "At least %n upper case characters are required" (b)
> > 
> > QTranslator takes care to apply the correct selection based on the number
> > that you passed.
> 
> Ok I'm getting there, but how do I specify this string (a) or that string
> (b)? What's the qsTr() line look like?
> qsTr( ? )

Answering for C++.

        tr("At least %n uppercase character(s) are required", "", count);

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to