Hi, When new users register and get emails, the source code shows up like this: LANG_WELCOME_HEAD EMAIL_HI CastorTroy, LANG_WELCOME_MSG LANG_WELCOME_DETAILS.. I found this on the forum: http://www.68classifieds.com/forums/threads/dutch-translation-on-4-14.8087/#post-41395 Look at the bottom of the page! Is that code is what needs to be added to solve this problem? I know the code shows up, because the language definition is missing, thus text is not translated. Anyone knows the solution?? Where is the file that you need to put this "Define language" script in? I can't find where! Thanksnin advance!
First, that post is 3 years old. Second it is for a Dutch translation. Are you running a dutch site? If not then, NO. You need to provide pertinent information regarding your issue and as I've asked you before to specify your version, just like in the link to the post that you found, you will notice it says, version 4.1.4. When I asked last time in one of your several posts, you said, the latest version. When someone reads this 3 years from now, what version would this be? I would AGAIN suggest you put this information in your signature if you aren't going to include this in your posts individually. You're referring to an issue "caused by a missing language translation/definition", yet you don't even say WHAT LANGUAGE you are using. Do you see this type of code elsewhere on the site or only in emails? Have you made any changes to the unknown to us language file? Have you made any changes to the email templates? Do a find in whatever language file that you are using for your site and look for each of those language defines to see if they ARE there. I'm not trying to get on your case. We are here to try to help, but it is frustrating to attempt to assist people that won't provide information to enable us to help. We can't solve issues by "telepathy". That would be telepathetic support!
Hello Mike, Here's some more info: YES, I am running a Dutch website, otherwise I will not refer to that post. I referred to it, because it is the only one that has discussed this issue. I know it is an old post, but it seems that the problem still exists, noticing it happens now, even though I got the latest version 4.2.4. I cannot find the language files, I wish I could, so I can at least know if it is translated. I can see this type of code when entering wrong information or uploading images, like this: LANG_REQUIRED Have you made any changes to the unknown to us language file? No Have you made any changes to the email templates? No I hope this is enough information, if not, please let me know. I will go find where I can update my signature with info etc. Regards
All of the language files are in the language folder in the root of your classifieds installation. Thank you for putting your information in your signature.
The Dutch language definitions don't exist in the current file (in other words "The problem still exists") because no one on the support team speaks Dutch and we can't add the definitions. If you see a missing language definition, you can add the definitions to the pertinent language file, in this case, language/dutch.php For example: PHP: define('LANG_REQUIRED', 'Nodig'); Hope this helps.
Thanks Blair! I will use the definitions posted in that old post, but I am having a hard time finding the location of the language file!!!! Where is it?
By the way, all files are '.tpl' files, still can't find the language files At least, not using the Administration Control Panel. Will this mean that I must edit the files on the webspace, uploaded via FTP? I prefer not to touch them to be honest.
Yes, you will need to ftp into your hosting account, download the language/dutch.php file, edit it, save the changes and then upload the file back to the server. You will overwrite the file that's there. I realize that editing files can cause some anxiety if not done properly but think of the satisfaction you get once the changes are correctly applied!
Ok guys, I had the guts to update the file after locating it. I made a backup first, then uploaded the new one with the new definitions! Thank you for helping guys, you rock! By the way, Blair, how can I make a backup of my website just in case, for the future? Tips?
Shit, now when i go to the website, I get only this message: Parse error: syntax error, unexpected T_STRING in /home/content/94/9196794/html/language/dutch.php on line 73
In the Dutch.php language file, these lines/definitions are missing: LANG_WELCOME_HEAD EMAIL_HI LANG_WELCOME_MSG LANG_WELCOME_DETAILS So I added them with the definitions, like this: /////////////////////////////////////////////////////////////////////////////////added v4.2.4/////////////////////////////////////////////////////////////////////////////// define('LANG_WELCOME_SUBJ', 'Dank u voor het registreren');define('LANG_WELCOME_HEAD', 'Welkom bij '.$sitetitle);define('LANG_WELCOME_MSG', 'Dank u voor het registreren!');define('LANG_WELCOME_DETAILS', 'Uw login gegevens zijn als volgt:');/////////////////////////////////////////////////////////////////////////////// Should this be on top, or bottom of page? Does it make any difference? If not, then why is the change causing the crash? I just restored the old file, untill I can get help on this issue! Need your expertise guys
I figured it out, I just need to add it to the bottom of the page! Now I will add some more definitions that are missing, like: EMAIL_HI language MAIL_VALIDATE_SUBJ MAIL_VALIDATE_MSG
I can't get those ones to work. Everytime I add them with definition, I keep getting errors like: Parse error: syntax error, unexpected '<' in /home/content etc.... Then I have to upload the original file, then edit a copy of it, then add only: define('LANG_WELCOME_SUBJ', 'Dank u voor het registreren');define('LANG_WELCOME_HEAD', 'Welkom bij '.$sitetitle);define('LANG_WELCOME_MSG', 'Dank u voor het registreren!');define('LANG_WELCOME_DETAILS', 'Uw login gegevens zijn als volgt:'); And not more than that, otherwise the whole process must be repeated! Do you guys know why this happens??? Everytime I add definitions for those lines: EMAIL_HI MAIL_VALIDATE_SUBJ MAIL_VALIDATE_MSG This is where I get stuck! Can anyone help?
Troy - Be careful with PHP Syntax It is very important to remember to keep your " and ( and ) and : and ' and ; where they should go. Here is a sample: PHP: define("LANG_THANK_YOU_MSG", "Bedankt voor het plaatsen van een advertentie op onze website.");define("LANG_BILLING_SAME", "Factuuradres hetzelfde als klantinformatie");define("LANG_ORDER_STATUS_NOT_COMPLETED", "Niet volledig");define("LANG_ORDER_STATUS_COMPLETED", "Volledig");define("LANG_ORDER_STATUS_PENDING_APPROVAL", "Goedgekeurd");define("LANG_ORDER_STATUS_PENDING_PAYMENT", "Betaling is onderweg");define("LANG_ORDER_STATUS_CANCELLED", "Geannuleerd"); So...... When you need to add a definition for EMAIL_HI, you do this: PHP: define("EMAIL_HI", "Hi"); Do you recognize the pattern? Define("DEFINED_WORD_OR_PHRASE","Definition"); Define is the PHP command. Then you have an opening parentheses ( The defined word or phrase is within the first double quotes " A comma separates the word or phrase from the definition. The definition is within the second double quotes " A closing parentheses ) And PHP's closing semicolon ; Hope this helps.
Hi Blair, Thank you for the explanation. I really appreciate it! I figured this out since I added this one before: define('LANG_WELCOME_SUBJ', 'Dank u voor het registreren');define('LANG_WELCOME_HEAD', 'Welkom bij '.$sitetitle);define('LANG_WELCOME_MSG', 'Dank u voor het registreren!');define('LANG_WELCOME_DETAILS', 'Uw login gegevens zijn als volgt:'); The weird thing is that double quotes were not necessary, only this: ' Above one works fine. But I already tried both for the following, still cannot get these to work, altough I used the same structure as you stated above: EMAIL_HI MAIL_VALIDATE_SUBJ MAIL_VALIDATE_MSG I did it like this for example: define("EMAIL_HI", "Hallo"); Still cannot understand why it causes errors! I even trioed this one too: define('EMAIL_HI', 'Hallo'); Hope you can help me..?
That code is perfectly fine either way. It doesn't really matter to php whether you use ' or " as long as you don't mix them (with some exceptions, but this isn't one of them). So you can't do this: define("EMAIL_HI', 'Hallo"); What are you using to edit the file with? Are you saving the file in a strict text only format? If not that could cause issues as word processors save files with extra code and/or formats. It must be saved as a plain jane text only file.