Page 1 of 1
[solved] problem with "resize image" in the librar
Posted: Tue Apr 25, 2006 12:17 pm
by .g@sp.
it just doesn't work...
javascript is enabled, but when i click on the button, nothing happens...
here is the code
Code: Select all
<input type="button" name="scale" value="resize this picture" onclick="if (confirm('really resize this picture ? be carefull, it's a one way funtion!')) document.serendipityScaleForm.submit();" class="serendipityPrettyButton" />
and the javascript function seems to be ok...
does anyone has seen this trouble ??
what can i do to solve it ?
thanks
Re: problem with "resize image" in the library
Posted: Tue Apr 25, 2006 1:50 pm
by garvinhicking
Hi!
Where does this code come from that you pasted? It does not look like serendipity output.
Regards,
Garvin
Posted: Tue Apr 25, 2006 1:51 pm
by .g@sp.
hm yes i know, i just take in in the "show source" page of my browser...
Posted: Tue Apr 25, 2006 2:02 pm
by garvinhicking
Hi!
The string "really resize this picture ? be carefull, it's a one way funtion!" is not contained in the serendipity language file; it cannot come from Serendipity.
Where does the code come from, exactly?
Regards,
Garvin
Posted: Tue Apr 25, 2006 2:23 pm
by .g@sp.
yeah, coz i've this line in french... i've translated the best way i could
so it's not the real words in language file...
i've that :
Code: Select all
<input type="button" name="scale" value="Redimensionner cette image" onclick="if (confirm('Réellement redimensionner l'image? Attention: cette opération est irréversible!')) document.serendipityScaleForm.submit();" class="serendipityPrettyButton" />
</div>
here's the real english code :
Code: Select all
<input type="button" name="scale" value="Resize this image" onclick="if (confirm('Really scale the image? This operation cannot be undone!')) document.serendipityScaleForm.submit();" class="serendipityPrettyButton" />
</div>
(i could have done this before... sorry for this wrong translation

)
wow... in english, it works

Posted: Tue Apr 25, 2006 3:09 pm
by garvinhicking
Ah!
The problem is in the french translation. No "'" are allowed to occur within the javascript, since it breaks out of the javascript there.
Do you have a suggestion for a french translation without this "'"?
Regards,
Garvin
Posted: Tue Apr 25, 2006 3:13 pm
by .g@sp.
Réellement redimensionner l'image? Attention: cette opération est irréversible!
maybe trying : Réellement redimensionner cette image? Attention: cette opération est irréversible!
are the é, è, ê are also a problem ?
Posted: Tue Apr 25, 2006 3:19 pm
by .g@sp.
ok, i've tested it and it works...
d'u want me to send a mail to the original translator ? so he could modify the original page...
[EDIT] it's done

Posted: Tue Apr 25, 2006 3:37 pm
by garvinhicking
Hi!
Great! I'll also change it right now, since I think 'cetter' works flawlessly there. MAny thanks!
Regards,
Garvin
Posted: Tue Jul 18, 2006 11:59 am
by ivlivs
Same happens with Italian, same solution can be implemented.
Solve replacing "l\'immagine" with "questa immagine".
Regards,
Giulio
Posted: Tue Jul 18, 2006 12:17 pm
by garvinhicking
Hi!
Thanks a lot fro telling me, I just committed that change.
Best regards,
Garvin