It's an online service, so we can integrate non-coders more easily into the translation workflow. If you are interested, best to contact gezza directly. I'm not really up to date on the effort.
Tiki in arabic - w00t! :)
polom
quick question about jquery and fixing issues when using French, Dutch, Catalan langs etc. (see Re: http://sourceforge.net/p/tikiwiki/code/57056/ )
I see that addreference.tpl uses also single quotes in the jquery code.
jQuery('#e_status').html('{tr}Saving...{/tr}');
(from line 41)
Shouldn't that be replaced to double quotes? I.e.:
jQuery('#e_status').html("{tr}Saving...{/tr}");
I mean, in jquery, is there any reason why not using double quotes around strings?
(I can't test that myself now, I did run out of time of testing this thing ... still have to do the backport of r57056 to 14.x)
another potential issue: at rebuild.tpl, line 23: onsubmit="$(this).parent().tikiModal('{tr}Rebuilding index...{/tr}')"
could (shall) the single quotes there be converted to escaped double quotes? e.g. onsubmit="$(this).parent().tikiModal("{tr}Rebuilding index...{/tr}")">
I don't see any single quotes there... but either you do it the way you just posted it or you use single quotes as the outermost ones and then do not escape the inner ones iirc
ah, right, now I got it... you were changing the line above...
... so: no, when you use double quotes as the outermost ones, you can use the single quotes and don't have to change them to double quotes.
afaik in JavaScript neither way is better... it boils down to personal preference.
So I would go with the first version, as there is no escaping necessary and it makes it more readable.
hi amette_. thanks for your feedback. I wonder if you realize that with this syntax:
onsubmit="$(this).parent().tikiModal('{tr}Rebuilding index...{/tr}')"
whenever that string gets translated to a language that uses single quotes inside the translations, then tiki can produce a fatal error, afaik
Ah, nope, didn't realise that... make quite some sense though... better use double quotes then. ;)
And hope that no language uses double quotes in its strings. *g*