Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

please help to write the code correct ?


Nathali

Recommended Posts

Posted

Hi,

 

When I use my language (from right to left) the output goes wrong for example:

 

Arthur Dear, instead of getting output like Dear Arthur, . In English lang. it is correct !

 

So I need to change the codes of these ouput sentences to show correct in my lang.

 

define('EMAIL_SUBJECT', ' xxxxxxx ' . STORE_NAME);

 

define('EMAILGREET_NONE', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['firstname'] . ' ' . $HTTP_POST_VARS['lastname'].'</b>') . ',' . "\n");

 

define('EMAILGREET_MR', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['lastname'].'</b><br>') . ',' . "\n");

 

define('EMAILGREET_MS', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['lastname'].'</b><br>') . ',' . "\n");

 

define('EMAILWELCOME', 'xxxxxxxxxxx ' . STORE_NAME . '<br><br> '. "\n\n");

 

could someone help please ??

 

Thank you very much !

Best Regards,

Nathali

Posted

Look in /catalog/includes/laguages/PUT_YOUR_LANGUAGE_HERE/create_account.php

 

;)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Look in /catalog/includes/laguages/PUT_YOUR_LANGUAGE_HERE/create_account.php

 

;)

 

Thanks for your reply.

 

It seems that you didn't understand my question !

 

I know where the files, it in /catalog/includes/languages/Hebrew/creat_account.php

 

I need to change these sentences that the output will be right for example:

 

let take the first line: define('EMAIL_SUBJECT', ' xxxxxxx ' . STORE_NAME);

 

I need it to be something like: define('EMAIL_SUBJECT', STORE_NAME . ' xxxxxxx ');

(xxxxx)= is the text letters of my Hebrew lang.

 

 

 

========================================

 

define('EMAIL_SUBJECT', ' xxxxxxx ' . STORE_NAME);

 

define('EMAILGREET_NONE', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['firstname'] . ' ' . $HTTP_POST_VARS['lastname'].'</b>') . ',' . "\n");

 

define('EMAILGREET_MR', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['lastname'].'</b><br>') . ',' . "\n");

 

define('EMAILGREET_MS', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['lastname'].'</b><br>') . ',' . "\n");

 

define('EMAILWELCOME', 'xxxxxxxxxxx ' . STORE_NAME . '<br><br> '. "\n\n");

 

========================================

 

Any help please? Thanks..

Best Regards,

Nathali

Posted

These two should work OK, just replace the xxxxxxx with your language text:

 

define('EMAIL_SUBJECT', ' xxxxxxx ' . STORE_NAME);

define('EMAILWELCOME', 'xxxxxxxxxxx ' . STORE_NAME . '<br><br> '. "\n\n");

 

These, I'm not so sure about:

 

define('EMAILGREET_NONE', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['firstname'] . ' ' . $HTTP_POST_VARS['lastname'].'</b>') . ',' . "\n");

define('EMAILGREET_MR', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['lastname'].'</b><br>') . ',' . "\n");

define('EMAILGREET_MS', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['lastname'].'</b><br>') . ',' . "\n");

 

The syntax looks OK, I'm just not sure you can get those variables like that?

:unsure:

 

Just make a backup before making any edits.

 

If it doesn't work, we'll try something else...

;)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

I am currently working on a site for Israel where we have to edit all the text files. If you could wait till monday I would check with the gentlemen in Israel if he would be willing to share his translation for your site.

 

Maybe I can just introduce you 2 to negotiate amongst each other !!

 

Cheers

GS

Best Regards,
Gaurav

Posted
These two should work OK, just replace the xxxxxxx with your language text:

 

define('EMAIL_SUBJECT', ' xxxxxxx ' . STORE_NAME);

define('EMAILWELCOME', 'xxxxxxxxxxx ' . STORE_NAME . '<br><br> '. "\n\n");

 

These, I'm not so sure about:

 

define('EMAILGREET_NONE', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['firstname'] . ' ' . $HTTP_POST_VARS['lastname'].'</b>') . ',' . "\n");

define('EMAILGREET_MR', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['lastname'].'</b><br>') . ',' . "\n");

define('EMAILGREET_MS', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['lastname'].'</b><br>') . ',' . "\n");

 

The syntax looks OK, I'm just not sure you can get those variables like that?

:unsure:

 

Just make a backup before making any edits.

 

If it doesn't work, we'll try something else...

;)

 

 

Thank you Germ for your reply,

 

This code I have already. What I wanted is to change the output for example from:

 

define('EMAIL_SUBJECT', ' xxxxxxx ' . STORE_NAME);

 

To:

 

define('EMAIL_SUBJECT', . STORE_NAME, ' xxxxxxx '); (Change the places of STORE_NAME & 'xxxxxxx' variables)

 

If I do this, the output in my language will be corrected !

 

I hope you would understand me this time..

 

Thanks again & and great day,

Best Regards,

Nathali

Posted

Seems we're having a slight communication problem.

:blush:

 

The correct syntax for this:

 

define('EMAIL_SUBJECT', . STORE_NAME, ' xxxxxxx ');

Would be:

 

define('EMAIL_SUBJECT', STORE_NAME . ' xxxxxxx');

Now give me another example of how you want something changed, and we'll go from there.

;)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Seems we're having a slight communication problem.

:blush:

 

The correct syntax for this:

 

define('EMAIL_SUBJECT', . STORE_NAME, ' xxxxxxx ');

Would be:

 

define('EMAIL_SUBJECT', STORE_NAME . ' xxxxxxx');

Now give me another example of how you want something changed, and we'll go from there.

;)

 

Thank you very much Jim !

 

Now you understand me.

 

I have some more if you could help me please? here they are:

 

 

define('EMAILGREET_NONE', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['firstname'] . ' ' . $HTTP_POST_VARS['lastname'].'</b>') . ',' . "\n");

should be:

define('EMAILGREET_NONE', . stripslashes($HTTP_POST_VARS['firstname'] . ' ' . $HTTP_POST_VARS['lastname'].'</b>') '<b>xxxxxx '. ',' . "\n");

 

 

 

define('EMAILGREET_MR', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['lastname'].'</b><br>') . ',' . "\n");

should be:

define('EMAILGREET_MR', . stripslashes($HTTP_POST_VARS['lastname'].'</b><br>') . '<b>xxxxxx ' ',' . "\n");

 

 

define('EMAILGREET_MS', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['lastname'].'</b><br>') . ',' . "\n");

should be:

define('EMAILGREET_MS', . stripslashes($HTTP_POST_VARS['lastname'].'</b><br>') .'<b>xxxxxx ' ',' . "\n");

 

 

define('EMAILWELCOME', 'xxxxxxxxxxx ' . STORE_NAME . '<br><br> '. "\n\n");

should be:

define('EMAILWELCOME', . STORE_NAME . .'xxxxxxxxxxx ' '<br><br> ' "\n\n");

 

note:

Please make that all the text in each line will represent in one line. but at the end of each line should be 2 lines break.

 

Thanks for your kind help Jim !

Best Regards,

Nathali

Posted
define('EMAILGREET_NONE', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['firstname'] . ' ' . $HTTP_POST_VARS['lastname'].'</b>') . ',' . "\n");

Correct code:

define('EMAILGREET_NONE', '<b>' . stripslashes($HTTP_POST_VARS['firstname'] . ' ' . $HTTP_POST_VARS['lastname'])  . ' xxxxxx</b>,<br>' . "\n");

 

define('EMAILGREET_MR', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['lastname'].'</b><br>') . ',' . "\n");

Correct code:

define('EMAILGREET_MR',  '<b>' . stripslashes($HTTP_POST_VARS['lastname']) . ' xxxxxx</b>,<br>' . "\n");

 

define('EMAILGREET_MS', '<b>xxxxxx ' . stripslashes($HTTP_POST_VARS['lastname'].'</b><br>') . ',' . "\n");

Correct code:

define('EMAILGREET_MS',  '<b>' . stripslashes($HTTP_POST_VARS['lastname']) .' xxxxxx</b>,<br>' . "\n");

 

define('EMAILWELCOME', 'xxxxxxxxxxx ' . STORE_NAME . '<br><br> '. "\n\n");

Correct code:

define('EMAILWELCOME', STORE_NAME . ' xxxxxxxxxxx <br><br>' .  "\n\n");

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Correct code:

define('EMAILGREET_NONE', '<b>' . stripslashes($HTTP_POST_VARS['firstname'] . ' ' . $HTTP_POST_VARS['lastname'])  . ' xxxxxx</b>,<br>' . "\n");

Correct code:

define('EMAILGREET_MR',  '<b>' . stripslashes($HTTP_POST_VARS['lastname']) . ' xxxxxx</b>,<br>' . "\n");

Correct code:

define('EMAILGREET_MS',  '<b>' . stripslashes($HTTP_POST_VARS['lastname']) .' xxxxxx</b>,<br>' . "\n");

Correct code:

define('EMAILWELCOME', STORE_NAME . ' xxxxxxxxxxx <br><br>' .  "\n\n");

 

Thank you very much Jim for your kind help!

 

I will try that code. Hope that it will work for me good.

 

Have a Wonderful day or evening :-)

Best Regards,

Nathali

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...