 | |  | | | ReviewPost How do I...? Wondering how to do something in ReviewPost? |
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
|
| |
April 28th, 2006, 07:45 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
try this Code: Content visible to verified customers only.
|
| |
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?
|
| |
May 1st, 2006, 04:43 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
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 |
| |
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...
|
| |
May 1st, 2006, 05:42 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
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
Last edited by Chuck S; May 1st, 2006 at 06:29 PM.
|
| |
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?
|
| |
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...
|
| |
May 1st, 2006, 06:32 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
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 |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 12:19 PM. | |