Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
elnegro
Hangin' Around



Joined: Aug 25, 2006
Posts: 34
Location: Verona (ITALY)

PostPosted: Mon Dec 07, 2009 9:05 am Reply with quote

While I was translating "NSN Groups" module I noticed that I an not able to to see the new translation regarding this module. So I changed language (german and then spanish) but al words remain in english. Then I cheched the code but I wasn't able to see the call to the lang file.

Is it a bug or am I doing something wrong?

TIA

_________________
Bye, Luca 
View user's profile Send private message
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Mon Dec 07, 2009 3:32 pm Reply with quote

I'm looking into this. I'll get back to you.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
Palbin







PostPosted: Mon Dec 07, 2009 5:23 pm Reply with quote

Open mainfile.php and find this around line 199:
Code:


// NSN Groups
require_once INCLUDE_PATH . 'modules/Groups/includes/nsngr_func.php';

Move the above to approximately line 310 as shown below:
Code:


   } else {
      setcookie('lang', $language, time()+31536000);
      include_once 'language/lang-' . $language . '.php';
      $currentlang = $language;
   }
}

// NSN Groups
// This must come after $currentlang is defined
require_once INCLUDE_PATH . 'modules/Groups/includes/nsngr_func.php';

/**
 * CSRF Protection for POST/GET forms and potentially "dangerous" links
 */
require_once INCLUDE_PATH . 'includes/csrf-magic.php';
 
elnegro







PostPosted: Mon Dec 07, 2009 6:33 pm Reply with quote

It works. Thanks Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©