forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Rodinou on October 16, 2003, 01:40:13 am

Title: [Solved] Impossible to create Albums !! (french.php !)
Post by: Rodinou on October 16, 2003, 01:40:13 am
So ...

I go to album

I'm selectif in which category/sub category I want to create

In 1.1.0, when I pushed on "Apply", I had a Javascript alert which said "are you sure to create blabla" ... and the album (and index of it) was created

In 1.2.0, I create the album, I push on "Apply", No javascript content to confirm, I'm on the "continue" page, but ... no album is created !!! :(

Help !
Title: [Solved] Impossible to create Albums !! (french.php !)
Post by: hyperion on October 16, 2003, 01:50:42 am
Rodinou,

Did you press new, then enter the album name, and then hit create album? If so, try it in debug mode and see if any useful data comes back.

-Hyperion
Title: Solution !
Post by: Rodinou on October 16, 2003, 01:59:00 am
I have tested in another language (English) et it works well ... so I have understood the problem came from french.php

Line 284

        'no_change' => 'Vous n'avez effectué aucun changement !',

Remove simply     '

I continue to test to send you a "good" french file, too many errors ...

However, I'd rather this than a problem with php scripts :)
Title: [Solved] Impossible to create Albums !! (french.php !)
Post by: hyperion on October 16, 2003, 02:10:22 am
Thanks, Rodinou!

BTW, you can keep the apostrophe if it should be there by escaping it like so:

Code: [Select]

'no_change' => 'Vous n\'avez effectué aucun changement !',


-Hyperion
Title: [Solved] Impossible to create Albums !! (french.php !)
Post by: Rodinou on October 16, 2003, 02:18:50 am
You have right ... but the problem comes from here !!!

In the original code, we have

        'no_change' => 'Vous n\'avez effectué aucun changement !'

But when php code becomes html code, the \ disappears ... and finally we have

Vous n'avez effectué aucun changement ! > and then ... BUG :)

I have tested to put 2 \\ ... One disappears with php > html, and the other stays ... but it bugs, too :)

So not put        '            is (for the moment), the easiest solution.
Title: [Solved] Impossible to create Albums !! (french.php !)
Post by: Joachim Müller on October 16, 2003, 08:53:00 am
3 suggested fixes for such issues:
Title: [Solved] Impossible to create Albums !! (french.php !)
Post by: Rodinou on October 16, 2003, 09:43:16 am
It seems with 3 slashes it works :) First time I see it, why not :)

So I have made the changements about french errors

Line 323, find
Code: [Select]
'restore_cfg' => 'Restorer les paramètres d\'origine',

Replace Restorer by Restaurer

Line 324, find
Code: [Select]
'save_cfg' => 'Sauvergarder la nouvelle configuration',

Replace sauvergarder by sauvegarder



Line 347, find
Code: [Select]

array('Largeur du talbeau principal (pixels ou %)', 'main_table_width', 0),


Replace talbeau by tableau



Line 362, find
Code: [Select]

array('Nombre minimum de votes nécessaires pour qu\'une image apparaissent dans la liste des images les mieux notées', 'min_votes_for_rating', 0),


Replace apparaissent by apparaisse



Line 383, find
Code: [Select]
array('Longueur ou hauteur maximale pour les images uploadées (en pixels)', 'max_upl_width_height', 0),

Replace maximale by maximal


french.zip with this modifications is downloadable at http://www.sortons.net/photos/french.zip Thanx to the Dev Team to put it on your site :)
Title: [Solved] Impossible to create Albums !! (french.php !)
Post by: Titooy on October 16, 2003, 04:16:23 pm
Sauf votre respect, maître Rodinou, longueur et largeur sont féminins.

So "maximale" is correct. You don't have to change it.
Title: [Solved] Impossible to create Albums !! (french.php !)
Post by: Rodinou on October 16, 2003, 05:11:36 pm
Encore meme plus fort, Monseigneur : maximale doit prendre un S

quoique la de toute facon, la c toi ki a raison (on peut singulariser ou plurieliser)

Bravo :)

je fais la modif : merci.