[Kmymoney-devel] csvimport plugin test is translation dependent

Alvaro Soliverez asoliverez at kde.org
Fri Sep 17 00:39:58 CEST 2010

On Thu, Sep 16, 2010 at 6:47 PM, allan <aganderson at ukonline.co.uk> wrote:
> On 16/09/10 18:45, Cristian Oneţ wrote:
>> 2010/9/16 Alvaro Soliverez <asoliverez at kde.org>:
>>> Comment out the short month test for now.
>>> Anyway, the test is inherently translation dependent, but it is
>>> supposed to work ok. That is, until someone screwed up when
>>> translating to Romanian. :/
>> I've done that but if it can't be rewritten in a translation
>> independent manner I would prefer to remove it.
> As I see it, a test on the validity of an alpha month has to reflect the
> current locale, so has to involve translation.  It would seem that the
> test was valid, but the translation was not, if I understand correctly.
>  Presumably in real use, a valid short date month would be rejected, or
> perhaps just the one I chose at random?
> I contemplated leaving the test just commented out, for possible future
> inclusion once the translation is fixed, but the same could happen
> again.  It was meant to be a test of convdate() rather than translation,
> so I'll remove it totally.
> Out of interest, what happens with the later test
> QLatin1String("13-rubbishmonth-2000")?

I agree that the test has to include translation. I'd give time to fix
the issue in Romanian translation, but the test should go in.
If it fails we can check why that is, and report upstream if needed.

Leave it commented for the moment, but IMHO the test is ok and it has to stay.

More information about the KMyMoney-devel mailing list