[PATCH 3/6] Create events from mouthpiece position

Dirk Hohndel dirk at hohndel.org
Thu Nov 20 07:45:12 PST 2014


On Thu, Nov 20, 2014 at 07:21:13AM +0100, Anton Lundin wrote:
> On 19 November, 2014 - Dirk Hohndel wrote:
> 
> > Oh the translators will LOVE this. What the HECK is NC and UN?
> > 
> 
> I guess Not Connected and UNdefined.
> 
> I was thinking about keeping the state description out of the string,
> but I thought it would create a even bigger mess.

What about 
Mouth piece position OC
Mouth piece position CC
Mouth piece position unknown
Mouth piese not connected

that is much prettier than the camelCase and is actually understandable
both for the user and the translator.

Hm?

/D

> > On Wed, Nov 19, 2014 at 10:14:21PM +0100, Anton Lundin wrote:
> > > +						//MouthPiece position event: 0=OC, 1=CC, 2=UN, 3=NC
> > > +						switch (value) {
> > > +						case 0:
> > > +							add_event(dc, cur_sampletime, 0, 0, 0,
> > > +									QT_TRANSLATE_NOOP("gettextFromC", "MouthPiece position OC"));
> > > +							break;
> > > +						case 1:
> > > +							add_event(dc, cur_sampletime, 0, 0, 0,
> > > +									QT_TRANSLATE_NOOP("gettextFromC", "MouthPiece position CC"));
> > > +							break;
> > > +						case 2:
> > > +							add_event(dc, cur_sampletime, 0, 0, 0,
> > > +									QT_TRANSLATE_NOOP("gettextFromC", "MouthPiece position UN"));
> > > +							break;
> > > +						case 3:
> > > +							add_event(dc, cur_sampletime, 0, 0, 0,
> > > +									QT_TRANSLATE_NOOP("gettextFromC", "MouthPiece position NC"));
> > > +							break;
> > > +						}


More information about the subsurface mailing list