[solved] problem with "resize image" in the librar

Having trouble installing serendipity?
Post Reply
.g@sp.
Regular
Posts: 50
Joined: Thu Apr 20, 2006 2:01 pm
Location: Brussels, Belgium

[solved] problem with "resize image" in the librar

Post 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
Last edited by .g@sp. on Tue Apr 25, 2006 5:43 pm, edited 1 time in total.
Sorry for my poor english ;)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: problem with "resize image" in the library

Post by garvinhicking »

Hi!

Where does this code come from that you pasted? It does not look like serendipity output.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
.g@sp.
Regular
Posts: 50
Joined: Thu Apr 20, 2006 2:01 pm
Location: Brussels, Belgium

Post by .g@sp. »

hm yes i know, i just take in in the "show source" page of my browser...
Sorry for my poor english ;)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
.g@sp.
Regular
Posts: 50
Joined: Thu Apr 20, 2006 2:01 pm
Location: Brussels, Belgium

Post by .g@sp. »

yeah, coz i've this line in french... i've translated the best way i could :D
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 :D :?
Sorry for my poor english ;)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
.g@sp.
Regular
Posts: 50
Joined: Thu Apr 20, 2006 2:01 pm
Location: Brussels, Belgium

Post 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 ?
Sorry for my poor english ;)
.g@sp.
Regular
Posts: 50
Joined: Thu Apr 20, 2006 2:01 pm
Location: Brussels, Belgium

Post 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 ;)
Sorry for my poor english ;)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Great! I'll also change it right now, since I think 'cetter' works flawlessly there. MAny thanks!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ivlivs
Posts: 3
Joined: Fri Jan 06, 2006 6:48 pm

Post by ivlivs »

Same happens with Italian, same solution can be implemented.
Solve replacing "l\'immagine" with "questa immagine".

Regards,
Giulio
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Thanks a lot fro telling me, I just committed that change.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply