Author |
Message |
benson
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/d565e607446586bbb82ae.jpg)
Joined: May 15, 2004
Posts: 119
Location: Germany
|
Posted:
Fri Apr 21, 2006 4:20 am |
|
Hello,
after update the Recommend_Us is not working correctly anymore:
If I click to that module the first 2 fields are filled with my user data, that's ok, but if I press send without adding a friends name or address, the module is sending (or it says it is sending ...).
Try to clear all fields, it shows alway successful sending ...
regards, Benson |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Susann
Moderator
![](modules/Forums/images/avatars/4e3210db4efb891870d79.gif)
Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support
|
Posted:
Fri Apr 21, 2006 5:57 am |
|
Thanks for the information. Please could you try it again but add the last line from the lang-english.php into the lang-german.php
Code:
define("_RU_NO","no");
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Fri Apr 21, 2006 7:49 am |
|
Is this the latest 2.02.02 release or earlier? |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Susann
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 21, 2006 8:19 am |
|
The earlier version was slightly different. So it´s in this release and upgrade patch.
The line is only in the Recommend-Us/language/lang-english.php file definend. I would like to know from Benson if this fixed his problem completely. |
Last edited by Susann on Fri Apr 21, 2006 8:31 am; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 21, 2006 8:23 am |
|
Ok. I am moving to the appropriate Forum then so we can track better. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
benson
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 21, 2006 10:06 am |
|
Hi,
it is the newes version and the addition in the language file seams to work ! Thanks!
Regards, Norbert |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Susann
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 21, 2006 6:36 pm |
|
Thank you for your feedback. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Fri Apr 21, 2006 9:57 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
benson
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Apr 22, 2006 12:29 am |
|
Hello,
since I am note allowed to post in the other thread, I will ask it here.
What is the reason for defining $RU_NO = _RU_NO; ?
For me it makes no difference if my php script calculates in english e.g. if ($send != "no") or in german e.g. if ($send != "nein") ? Therefor it makes no sence to me to define that variable in the language file ... It should also work if we change all $RU_NO back to 'no' or '0' ? Than no language files have to be changed.
Regards, Benson ![Question](modules/Forums/images/smiles/icon_question.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Apr 22, 2006 12:45 am |
|
You cannot compare $send != _RU_NU which means each language would have to hardcode no, nein, nada, etc. So, to make it universal with no hard coding, you have to set a $variable = CONSTANT and then do the compare. You, of all people, are now condoning the hard coding of words in scripts instead of a language file I find that rather hypocritical, wouldn't you say , since your posts of late are hammering us about moving hard coded terms to the language files . |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
benson
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Apr 22, 2006 1:04 am |
|
Hello Raven,
you are right! We, the non english ones, do have problems if text is hardcoded. We can change it, but the next update will overwrite it ...
In that Recommend_Us module the _RU_NO is only used to calculate internal rules. The text (no, nein, nada, etc.) is not shown anywhere to the user, just to the php interpreter And I think apache is not very interested in no, nein, nada etc .... ?
So, sorry for my problems to explain it corretly, I just wanted to give you the hint to avoid language file changes for all languages if they are no neccessary (as I think).
P.S.: Please keap on moving hardcoded terms into the language files ![Very Happy](modules/Forums/images/smiles/icon_biggrin.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Apr 22, 2006 1:12 am |
|
This one IS necessary to remove hard coding from the index file. There is no other way. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|