PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > ReviewPost Pro Support Forums > ReviewPost How do I...?

ReviewPost How do I...? Wondering how to do something in ReviewPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old April 28th, 2006, 04:58 PM   #1 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
RP 3.3: Hardcoded Text

Hi

RP 3.3

showproduct.php

--------------
if ( $recommend == "" || $recommend == "yes" ) {
$recode = "<select name=\"recommend\"><option selected=\"selected\">yes</option><option>no</option></select>";
}
else {
$recode = "<select name=\"recommend\"><option>yes</option><option selected=\"selected\">no</option></select> ";
}
-----------------

If I translate it, it gives me the wrong indication when a users is using it. If they chhos yes, it shows later on "no" (only when I translate it). If it stays in English, it works correctly.

How can I fix this?


Thanks in advance
snoopy5 is offline   Reply With Quote
Old April 28th, 2006, 07:45 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
try this

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old May 1st, 2006, 04:40 PM   #3 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
Quote:
Originally Posted by Chuck S
try this

Code:
Content visible to verified customers only.
Hi

I did that and it works. Now, the only problem left is that the drop-down menu when writing a review, the selection is still showing YES and NO, even after I replaced it with the German words JA and NEIN

I set \"Ja\" instead of \"yes\"

and \"Nein\" instead of \"no\"

But I in the drop down, only the english yes and is visible.

How to correct this?
snoopy5 is offline   Reply With Quote
Old May 1st, 2006, 04:43 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
You do not translate the hardcoded yes and no values in the code I gave you for the options.

You would in your language file that you have made for reviewpost set the language strings yes and no to Ja and Nein.

Haben Sie einen guten Abend
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old May 1st, 2006, 05:33 PM   #5 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
Quote:
Originally Posted by Chuck S
You do not translate the hardcoded yes and no values in the code I gave you for the options.

You would in your language file that you have made for reviewpost set the language strings yes and no to Ja and Nein.

Haben Sie einen guten Abend
I had already in the past in my language file the translation:

$Globals['pp_lang']['yes'] = "Ja";

But nevertheless "yes" and "no" are the options in the drop-down menu...
snoopy5 is offline   Reply With Quote
Old May 1st, 2006, 05:42 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Well the values are suppose to be yes and no in the database and we just change the frontend language display on select boxes but try this.

REMOVED
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; May 1st, 2006 at 06:29 PM.
Chuck S is online now   Reply With Quote
Old May 1st, 2006, 05:58 PM   #7 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
Hi Chuck,

no difference after applying the new code.

Maybe this drop-down menu gets the "yes" and "no" from somewhere else to display it nevertheless?
snoopy5 is offline   Reply With Quote
Old May 1st, 2006, 06:16 PM   #8 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
Quote:
Originally Posted by snoopy5
Hi Chuck,

no difference after applying the new code.

Maybe this drop-down menu gets the "yes" and "no" from somewhere else to display it nevertheless?
Hold on Chuck,

this seems to happen only, when I am logged in as admin!

If I log out and login as a normal user with a different username, the translation appears. I do not mind, if it is in English for the admin

Sorry for the confusion...
snoopy5 is offline   Reply With Quote
Old May 1st, 2006, 06:32 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
No need for any edits but the one provided in post 2

Now if you make the other edit in the other thread you noted then yes or no will appear in the proper language

RP 3.3: Hardcoded Text III
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CL 2.5: hardcoded english text snoopy5 Classifieds Suggestions 0 February 13th, 2006 01:56 PM
BB code for text size in photo upload text? mjm Photopost Pro How Do I...? 7 July 19th, 2005 10:05 AM
[RC1] Hardcoded time format Kirby Bugs From 1.0.0 1 December 9th, 2004 09:50 PM


All times are GMT -5. The time now is 12:19 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0