SilverCart Forum

We moderate this Forum and we're here to help. Have you already run a forum search to check if your problem has already been solved?

You can help us helping you by providing detailed error messages, screenshots and logfile entries.

SebastianRamon

Page: 1
Topic Translation errors 3101 Views

Translation errors

22 November 2011 at 9:11am

I noticed a few translation errors while testing yesterday.

I'm gonna take a look at it and fix them (hopefully :P ).

Re: Translation errors

22 November 2011 at 1:33pm

Hello Sphere,

we are looking forward to your feedback.

Cheers,

Roland

Re: Translation errors

22 November 2011 at 1:44pm

On another note, it's good practice to give every translatable a default.

_t($this->class . '.TITLE', 'ClassName Title');

That way, there won't appear something useless on screen when there's completely no translation found. ;)

p.s.
Yes, I often use $this->class . '.NAME', works perfect. Except in the __construct

Re: Translation errors

22 November 2011 at 7:22pm

we decided not to use a second parameter in the _t() function. it often hides that the translation is missing. further we never use the text collector, which would use the second parameter.

Re: Translation errors

22 November 2011 at 7:35pm

That kinda depends on how you use the second option ;)

For myself, I default to adding *NYT* (short for "Not Yet Translated), to the second parameter.

Besides that, I use a translation-module... which pre-gives the second option so you know what it's supposed to mean ;)

It's a matter of habit as well I guess :) I can see your point :).

Fixed four translation-issues and some datetime issues btw. Will get back on that asap, when I think I got them all covered.