parsing error when installing ads module

When I try install ads module I got:Parse error: syntax error, unexpected T_VARIABLE in /home/XXX/public_html/XXX.com/modules/boonex/ads/install/langs/cz.php on line 1

xxx and xxx.com are just substitutions to hide my site...

Any idea whats wrong ? I looked to translated file cz.php and its same as english file - only difference is translation otherwise there seems to be nothing wrong with it...

thanks in advance

Quote · 12 Feb 2010

you've probably done something wrong in translation, post your file modules/boonex/ads/install/langs/cz.php here

Quote · 12 Feb 2010

Hi okweb,

 

you are right - I tried to just rename non translated en.php to cz.php and than it works but translated file dont work. I compared code line by line but so far I didnt found any errors in it. I also wrote translation in php edit software which checked file as OK. Here is file:

 

 

 

<?php

 

/***************************************************************************

*                            Dolphin Smart Community Builder

*                              -------------------

*     begin                : Mon Mar 23 2006

*     copyright            : (C) 2007 BoonEx Group

*     website              : http://www.boonex.com

* This file is part of Dolphin - Smart Community Builder

*

* Dolphin is free software; you can redistribute it and/or modify it under

* the terms of the GNU General Public License as published by the

* Free Software Foundation; either version 2 of the

* License, or  any later version.

*

* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;

* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

* See the GNU General Public License for more details.

* You should have received a copy of the GNU General Public License along with Dolphin,

* see license.txt file; if not, write to marketing@boonex.com

***************************************************************************/

 

$aLangContent = array(

    '_bx_ads_added_spy' => '<a href="{profile_link}">{profile_nick}</a> vložil nový inzerát <a href="{ads_url}">{ads_caption}</a>',

    '_bx_ads_rated_spy' => '<a href="{profile_link}">{profile_nick}</a> ohodnotil inzerát <a href="{ads_url}">{ads_caption}</a>',

    '_bx_ads_last_featured' => 'Latest featured ad',

    '_bx_ads_last_ads' => 'Nejnovější Inzeráty',

    '_bx_ads_Ads' => 'Inzeráty',

    '_bx_ads_Ad' => 'Inzerát',

    '_bx_ads_Buy_Now' => 'Koupit',

    '_bx_ads_wholesale' => 'velkoobchod',

    '_bx_ads_BuyMsg1' => 'Vybrali jste "Koupit Hned" pro nákup . Pokud chcete pokračovat a dokončit nákup klikněte na  "Pokračovat". Aukce bude uzavřena a dokončíte transakci.',

    '_bx_ads_BuyDetails1' => 'Details:',

    '_bx_ads_BuyMsg2' => 'Váš požadavek na "Koupit Hned" byl přijat. Kontaktujte prodejce.',

    '_bx_ads_Unit' => 'Unit',

    '_bx_ads_Users_other_listing' => 'Nabídka dalšího uživatele',

    '_bx_ads_Manage_ads' => 'Spravovar inzeráty',

    '_bx_ads_Browse_All_Ads' => 'Procházet všechny inzeráty',

    '_bx_ads_My_Ads' => 'Moje Inzeráty',

    '_bx_ads_Categories' => 'Kategorie',

    '_bx_ads_Keywords' => 'Klíčová Slova',

    '_bx_ads_Posted_by' => 'Zadáno od',

    '_bx_ads_Details' => 'Detaily',

    '_bx_ads_Life_Time' => 'Doživotně',

    '_bx_ads_Filtered_ads' => 'Filtrované Inzeráty',

    '_bx_ads_Sub_Categories' => 'Sub Kategorie',

    '_bx_ads_Add' => 'Zadat inzerát',

    '_bx_ads_Description' => 'Popis',

    '_bx_ads_CustomField1' => 'Custom Field 1',

    '_bx_ads_CustomField2' => 'Custom Field 2',

    '_bx_ads_Apply' => 'Aplikovat',

    '_bx_ads_Activate' => 'Aktivovat',

    '_bx_ads_Back' => 'Zpět',

    '_bx_ads_equal' => 'Je Rovno',

    '_bx_ads_bigger' => 'Max',

    '_bx_ads_smaller' => 'Min',

    '_bx_ads_Warn_max_live_days' => 'Váš inzerát bude aktivní po dobu {0} dní',

    '_bx_ads_Warn_max_file_size' => 'Soubor: {0} je moc velký pro nahrání.<br>',

    '_bx_ads_Ad_succ_added' => 'Inzerát úspěšně vložen',

    '_bx_ads_Ad_succ_deleted' => 'Inzerát úspěšně smazán',

    '_bx_ads_Ad_fail_delete' => 'Selhalo Mazání Inzerátu',

    '_bx_ads_Moderating' => 'Moderace (nové inzeráty)',

    '_bx_ads_Ad_succ_updated' => 'Inzerát úspěšně aktualizován',

    '_bx_ads_Filter' => 'Filtr',

    '_bx_ads_Offer_Details' => 'Detaily Nabídky',

    '_bx_ads_Main_category_successfully_added' => 'Hlavní kategorie úspěšně vložena',

    '_bx_ads_Main_category_successfully_deleted' => 'Hlavní kategorie úspěšně smazána',

    '_bx_ads_Main_category_failed_add' => 'Selhalo přidání Hlavní kategorie',

    '_bx_ads_Sub_category_successfully_added' => 'Sub kategorie úspěšně vložena',

    '_bx_ads_Sub_category_failed_add' => 'Selhalo vložení sub kategorie',

    '_bx_ads_Main_category_failed_delete' => 'Selhalo mazání Hlavní kategorie',

    '_bx_ads_Sub_category_successfully_delete' => 'Sub kategorie úspěšně smazána',

    '_bx_ads_Sub_category_failed_deleted' => 'Selhalo mazání Sub kategorie',

    '_bx_ads_All_ads' => 'Všechny Inzeráty',

    '_bx_ads_Ad_photos' => 'Všechny Fotky',

    '_bx_ads_user_posted_ad_comment' => '{0} okomentoval váš inzerát',

    '_bx_ads_user_bought_ad' => '{0} má zájem o koupi',

    '_bx_ads_Custom_Values' => 'Custom Values',

    '_bx_ads_Top_Rated' => 'Nejvíce Hodnocené',

    '_bx_ads_Popular' => 'Populární',

    '_bx_ads_Calendar' => 'Kalendář',

    '_bx_ads_Featured' => 'Featured',

    '_bx_ads_Under_Development' => 'Under Development',

    '_bx_ads_Ads_Home' => 'Home Inzeráty',

    '_bx_ads_Feature_it' => 'Feature it',

    '_bx_ads_De-Feature_it' => 'De-Feature it',

    '_bx_ads_msg_access_denied' => 'Přístup Zamítnut',

    '_bx_ads_pending_approval' => 'Čeká na Schválení',

    '_bx_ads_Disapproved' => 'Neschváleno',

    '_bx_ads_admin_box_desc' => '<div style="text-align: center;margin:10px;">Máte {0} <a href="{1}">inzerátů</a>. <a href="{2}">Klikněte zde</a> pro přidání.</div>',

    '_bx_ads_privacy_comment' => 'Povolit komentování',

    '_bx_ads_privacy_rate' => 'Povolit hodnocení',

    '_bx_ads_privacy_view' => 'Povolit zobrazení',

    '_bx_ads_Existed_images' => 'Existující obrázky',

    '_bx_ads_Manage_categories_form' => 'Manage categories form',

    '_bx_ads_Administration' => 'Administrace',

    '_bx_ads_Add_ad' => 'Přidat Inzerát',

    '_bx_ads_Caption_error' => 'please specify caption from 3 to 255 characters',

    '_bx_ads_Text_error' => 'please specify post text from 3 to 65535 characters',

    '_bx_ads_RSS' => 'RSS',

    '_bx_ads_post_text' => 'Post text',

 '_bx_ads_sbs_main' => 'Nové aktualizace pro <b>{0}</b> ad',

 '_bx_ads_sbs_comments' => 'Nové komentáře pro <b>{0}</b> ad',

 '_bx_ads_sbs_rates' => 'Nové hlasy pro <b>{0}</b> ad',

    '_bx_ads_caption_browse_by_day' => 'Procházet Inzeráty Dle Dní: ',

    '_sbs_txt_title_bx_ads' => 'Ads subscriptions',

    '_mma_ads_view' => 'zobrazit inzeráty',

    '_mma_ads_browse' => 'procházet inzeráty',

    '_mma_ads_search' => 'hledat inzeráty',

    '_mma_ads_add' => 'přidat inzeráty',

    '_mma_ads_edit_any_ad' => 'ads edit any ad',

    '_mma_ads_delete_any_ad' => 'ads delete any ad',

    '_mma_ads_approving' => 'schvalování inzerátů',

    '_bx_ads_caption_city' => 'Město',

    '_bx_ads_caption_country' => 'Země',

    '_bx_ads_err_city' => 'napište název města',

    '_bx_ads_err_country' => 'specifikujte zemi',

    '_bx_ads_add_main_category' => 'Přidat hlavní kategorii',

    '_bx_ads_you_have_purchased_an_item' => 'Zakoupili jste položku',

    '_bx_ads_someone_wants_to_purchase' => 'Máte zájemce o koupi položky kterou nabízíte k prodeji',

    '_bx_ads_title_error_desc' => 'Název by měl být max {0} znaků',

    '_bx_ads_description_error_desc' => 'Popis by měl být max {0} znaků',

    '_bx_ads_custom_error_desc' => 'CustomFieldName{0} should be {1} symbols max',

    '_bx_ads_choose_custom_action' => 'Choose custom action',

    '_bx_ads_category_manager' => 'Manager Kategorií',

    '_bx_ads_add_subcategory' => 'Přidat subkategorii',

    '_bx_ads_parent_category' => 'Mateřská kategorie',

    '_bx_ads_root' => 'Root',

    '_bx_ads_search_results_by_tag' => 'Výsledky hledání dle',

    '_bx_ads_customFieldName1' => 'Custom field 1 name',

    '_bx_ads_customFieldName2' => 'Custom field 2 name',

 

);

 

?>

Quote · 12 Feb 2010

does somebody see why this language file gives out parsing error  ? I cant find any errors in that or difference with en.php file..

Quote · 13 Feb 2010

this is really weird problem - I have been intensively testing this and found following:

* if I translate even one string (doesnt matter which one) in language file it gives out parsing error  unexpected T_VARIABLE on line 1 while trying install ads module

*if I only load original en.php file to text editor - doesnt translate anything - only save it with my language name cz.php in UTF8 and than try install ads mod same error again

* if I only load original en.php file to text editor - doesnt translate anything - only save it with my language name cz.php but this time leave original windows 1250 ISO than Im NOT getting any error

* If try translate file and trying save in original ISO windows 1250 ( as this is only instance I had NOT error while testing with original en.php ) again error

 

 

Can I send a file to somebody so u can test it if u will have same problem or just make cz.php from what I posted above ...

Any info whaz can be possibly problem on this will be great as Im going really mad from this ...

Quote · 19 Feb 2010

an idea guys what can be wrong here ?

Quote · 20 Feb 2010
 
 
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.