How to do l10n for dynamic strings in KDE4 ?
Nicolas Goutte
nicolasg at snafu.de
Sat Mar 4 14:03:11 GMT 2006
On Saturday 04 March 2006 14:58, Nicolas Goutte wrote:
> On Saturday 04 March 2006 14:14, Christian Esken wrote:
> > Am Samstag, 4. März 2006 13:12 schrieb Nicolas Goutte:
> > > On Saturday 04 March 2006 12:53, Christian Esken wrote:
(...)
> > > Also if you have plenty of generic names, which a high potential
> > > conflict risk with existing messages, please consider use a content for
> > > all these strings. For example, "Master" for sound might not be a
> > > "Master" for something else non-sound (i.e. in Elnglish the name might
> > > be the same, but not in all translations).
> >
> > Yes, I already have thought on that, like prefixing everything with
> > "x-MixDevice:" or similar.
>
> No, need of an x-
>
> You simply give ask for a context in the parameters of extractrc or
> extractattr. (Remember that this information is for the translator, so
> avoid developr-"slang" like prefixing x- and using grouped-together words.)
Of course, using a context means to ue the two parameter version of the i18n
call. Therefore at the end you have something like:
i18n( "context", mixercontrol->getName().utf8() );
where "context" is the name that you have chosen as context.
>
(...)
More information about the kde-core-devel
mailing list