add after lang files problem?

Want to share what MODs you've gotten to work with EM? Happy about all the time your're saving? Want to say "thanks"? Here's the place.
Forum rules
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!
Locked
C-3PO
Registered User
Posts: 23
Joined: Mon Aug 25, 2003 9:50 am

add after lang files problem?

Post by C-3PO »

Hey

I was installing the pm on reg mod (not emc) but maybe this problem occurse with emc's also (as I can not verify what the line should read)

I have two lang english and dutch. Now

Code: Select all

#
#-----[ OPEN ]------------------------------------------ 
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------ 
#

$lang['Click_view_privmsg'] = 'Click %sHere%s to visit your Inbox';

#
#-----[ AFTER, ADD ]------------------------------------------ 
#

// START - SEND PM ON REGISTER MOD - AbelaJohnB 
$lang['register_pm_subject'] = 'Welcome to %s'; 
$lang['register_pm'] = 'Hello!<br /><br />Welcome to %s. <br /><br />We hope you enjoy your time at this site! <br /><br />Feel free to join in and share with others or start your own discussion! <br /><br />~Enjoy!<br />%s Staff '; 
// END - SEND PM ON REGISTER MOD - AbelaJohnB
Installs fine on english but not on dutch because em cannot find the line that reads

Code: Select all

$lang['Click_view_privmsg'] = 'Click %sHere%s to visit your Inbox';
as last part is now in dutch.

Using find in-line with an add after? won't em then put the abelaJohnb CODE right after the

Code: Select all

='
?

Nuttzy99
Registered User
Posts: 927
Joined: Fri Aug 03, 2001 7:09 am
Contact:

Re: add after lang files problem?

Post by Nuttzy99 »

Code: Select all

#
#-----[ FIND ]------------------------------------------ 
#

$lang['Click_view_privmsg'] = 'Click %sHere%s to visit your Inbox';
...should be...

Code: Select all

#
#-----[ FIND ]------------------------------------------ 
#

$lang['Click_view_privmsg']
... to prevent lang conflicts ;)

-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
My Other Site

Locked