Author |
Message |
sixonetonoffun
Spouse Contemplates Divorce
![](modules/Forums/images/avatars/d1ecfa674c890aee2698b.jpg)
Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Fri Feb 25, 2005 12:28 pm |
|
The languag should b pulled from the directory its in now. With this code
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
The links are all wired to $module_name so I would guess there is something interfering with the variable $module_name?? |
_________________ [b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sixonetonoffun
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Feb 25, 2005 1:04 pm |
|
In the language files did you prefix the defines to be different from the original ones then propagate the changes in the files?
Because a define can only be made once so there cannot be 2 defines the same.
define("_URL","URL");
would have to be
define("_NewURL","My URL");
or
define("_URL","URL");
Will always be URL. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
TheShniz
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Jan 27, 2004
Posts: 65
|
Posted:
Fri Feb 25, 2005 1:10 pm |
|
Ok, figured out the linx not working properly... basically, I didn't go through & update all of the case.php in module/admin/ reason B'ing I updated the 1st 'downloads' function, went on 2 do all the others in the main index.php & 4got 2 go back & tell case.php they were there. W-H-O-O-P-S-!
As 4 the language not kicking in, it makes sense what U said but I don't C how it would B...
Again in case.php:
Code:
$module_name = "Media_Library";
include_once("modules/$module_name/admin/language/lang-".$currentlang.".php");
|
I'm going through the index.php but am not really sure what 2 B looking 4, hope 2 stumble on it...
- J |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
TheShniz
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Feb 25, 2005 1:12 pm |
|
No, I did NOT change the variable, only what it's defined as...
Xample:
define("_DOWNLOADSWAITINGVAL","Media Waiting for Validation");
I changed 'Downloads' to 'Media' in the description, not the variable representing/equaling it.
- J
:: edited ::
How come $module_name has 2 B set manually 4 the admin/index.php, but can B defined as 'basename(dirname(__FILE__));' in the module/index.php? I'm assuming it's just how the Module Administration was written, but would think it'd B better 2 get rid of a point for error.
:: edited ::
I should note that the entire module is working just as it should, both user-side & admin-side. The user-side language file IS working Xactly as it should. The admin-side is STILL affected somehow & is showing the old 'Downloads' language. Again, not sure Y or how... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
TheShniz
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 01, 2005 2:40 pm |
|
What is the nuke_modules table for? There's no entry for the module there, not sure if I should enter 1x manually... I'm a bit stumped and don't really know what 2 do 2 get this language file working right. Any suggestions?
Back after a nice long weekend
- J |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sixonetonoffun
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 01, 2005 3:29 pm |
|
Modules are read into the table (if something not wrong) do other new modules show up? If not the number of fields may not match the insert statement for the /admin/modules/modules.php |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
TheShniz
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 01, 2005 3:48 pm |
|
I'm not quite sure what U're asking, but this is what IS in the table...
1 AvantGo AvantGo 1 0 1 0
2 Content Content 0 0 1 0
3 Downloads Downloads 0 0 1 0
4 Encyclopedia Encyclopedia 0 0 1 0
5 FAQ FAQ 0 0 1 0
6 Feedback Feedback 1 0 1 0
7 Forums Forums 1 0 1 0
8 Journal Journal 0 0 1 0
9 Members_List Members List 0 1 1 0
10 News News 1 0 1 0
11 Private_Messages Private Messages 1 0 1 0
12 Recommend_Us Recommend Us 1 0 1 0
13 Reviews Reviews 0 0 1 0
14 Search Search 1 0 1 0
15 Statistics Statistics 1 0 1 0
16 Stories_Archive Stories Archive 1 0 1 0
17 Submit_News Submit News 1 0 1 0
18 Surveys Surveys 1 0 1 0
19 Top Top 10 1 0 1 0
20 Topics Topics 1 0 1 0
21 Web_Links Web Links 1 0 1 0
22 Your_Account Your Account 1 0 1 0
23 Blocked_IPs Blocked IPs 0 0 1 0
24 Blocked_Ranges Blocked Ranges 0 0 1 0
25 Blocked_Referers Blocked Referers 0 0 1 0
26 IP_to_Country IP to Country 0 0 1 0
27 About_Us About Us 1 0 1 0
28 coppermine Image Gallery 1 0 1 0
29 Calvary_Kids Calvary_Kids 1 0 1 0
30 Fellowship Fellowship 1 0 1 0
Note that 'Media_Library' is NOT in there... it DOES however show up in the module administration & I DID activate it (& shows active).
Me thinx me lost :S
- J |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|