Parse error

Hello

I have trouble translating a module. When you recompile the language appeared to me to be a mistake. How do I fix this? Please help

Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/areavis/public_html/modules/modzzz/pets/install/langs/pl.php on line 351


Best Regards,

Lucas

Quote · 2 Jan 2012

Please post the file around the error lines.

so much to do....
Quote · 6 Jan 2012

  '_modzzz_pets_block_actions' => 'Akcje',
    '_modzzz_pets_block_rate' => 'Ocena',   
    '_modzzz_pets_block_info' => 'Info',
    '_modzzz_pets_block_desc' => 'Opis',
    '_modzzz_pets_block_photo' => 'Zdjęcia',
    '_modzzz_pets_block_video' => 'Filmy',
    '_modzzz_pets_block_sound' => 'Dźwięki',
    '_modzzz_pets_block_files' => 'Pliki',
    '_modzzz_pets_block_file' => 'Pliki',
    '_modzzz_pets_block_comments' => 'Komentarze',
    '_modzzz_pets_block_latest_featured_pet' => 'Ostatnio najciekawsze zwierzę',
    '_modzzz_pets_block_recent' => 'Najnowsze zwierzęta',
    '_modzzz_pets_block_popular' => 'Popularne zwierzęta',
    '_modzzz_pets_block_top' => 'Najlepiej oceniane zwierzęta',
    '_modzzz_pets_block_search' => 'Szukaj zwierząt',
    '_modzzz_pets_block_pet_categories' => 'Kategorie zwierząt',

    '_modzzz_pets_block_administration_owner' => 'Administration',
    '_modzzz_pets_block_users_pets' => 'Zwierzęta użytkowników',
    '_modzzz_pets_block_my_pets' => 'Moje zwierzęta',
    '_modzzz_pets_block_homepage' => 'Zwierzęta',

    '_modzzz_pets_caption_add' => 'Dodaj zwierzę',
    '_modzzz_pets_caption_share_pet' => 'Podziel się',
    '_modzzz_pets_caption_admin_actions' => 'Linki',
    '_modzzz_pets_caption_pending_approval' => 'Przetwarzane profile zwierząt',

Quote · 7 Jan 2012

Which line is 351?

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 7 Jan 2012

The line 351 is:

'_modzzz_pets_form_info_videos_upload' => ''Film zostanie automatycznie dodane do kategorii "Zwierzęta"',

Quote · 8 Jan 2012

 

The line 351 is:

'_modzzz_pets_form_info_videos_upload' => ''Film zostanie automatycznie dodane do kategorii "Zwierzęta"',

You should make the line look like this:

 

'_modzzz_pets_form_info_videos_upload' => 'Film zostanie automatycznie dodane do kategorii "Zwierzęta"',

 

You had two single quotation marks at the beginning.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 8 Jan 2012

Agreed. The quotes are not proper.

Should be this.

'_modzzz_pets_form_info_videos_upload' => 'Film zostanie automatycznie dodane do kategorii Zwierzęta',


If you need the catagory name of Zwierzęta quoted then do it this way by escaping the quotes.

 

'_modzzz_pets_form_info_videos_upload' => 'Film zostanie automatycznie dodane do kategorii \"Zwierzęta\"',


Edit. Looks like nathan already provided a quoted version. However i am not sure it will work if they are not escaped. I could be wrong. I have not tested it.


https://www.deanbassett.com
Quote · 8 Jan 2012

Hello

Thanks for help but I have now this error:

Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/areavis/public_html/modules/modzzz/pets/install/langs/pl.php on line 355

 

I don`t know why because line 355 looks ok:

 '_modzzz_pets_form_info_sounds_upload' => ''Dźwięk zostanie automatycznie dodane do kategorii Zwierzęta',

 

Please Help

Best Regards,

Lucas

 

 


Quote · 9 Jan 2012

Again. A quoting problem. You have a double quote at the beginning of the string and a single at the and.

Change this.

 '_modzzz_pets_form_info_sounds_upload' => ''Dźwięk zostanie automatycznie dodane do kategorii Zwierzęta',

To This.

 '_modzzz_pets_form_info_sounds_upload' => 'Dźwięk zostanie automatycznie dodane do kategorii Zwierzęta',

https://www.deanbassett.com
Quote · 9 Jan 2012

Thanks so so much! :)

Now the language has been recompiled without problems.

 

Best Regards,

Lucas

Quote · 9 Jan 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.