phpScheduleIt
May 24, 2013, 02:14:54 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: notification of permission changes  (Read 591 times)
runaway34
Newbie
*

Karma: 0
Posts: 36


« on: March 07, 2012, 03:35:15 PM »

couldn't find this in the search.

I want to change the text of the email that is send to users when I change their resourse permissions.
I see the text in admin_update.php  line 611.

But when I change that text I get just a ?  in the email .. and no text at all.  Basically I just changed "resources" to "sailboats"

I don't understand all the code, but it seems that the "translate" function does not understand my new text.

am I missing something, or is there an alternative?

thx
Dave
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: March 12, 2012, 04:13:07 PM »

To change the text, you'll want to open up /lang/en_US.lang.php and replace the text there.
Logged
runaway34
Newbie
*

Karma: 0
Posts: 36


« Reply #2 on: March 12, 2012, 08:51:21 PM »

Thanks for the reply Nick .. but I couldn't get that to work.

I changed the text in /lang/en_US.lang.php  on lines  907, 983, 1033, and 1035  to reflect "sailboats" instead of "resources".

I tried it two ways .. with the original text in admin_update.php and with the text also changed in admin_update.php.   Both ways .. in the resulting email .. the resource names show up correctly but the line of text is replaced by a ?

did I miss something?  Does the text in admin_update.php have to be exactly the same as the text in the /lang/ file? 

version 1.2.7

thx
Dave
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #3 on: March 19, 2012, 02:38:51 PM »

Sorry, I wasn't very clear. You'll want to change the contents of the lang file, but not any of the other code. Any call to translate() should stay the same.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!