Changeset 535165
- Timestamp:
- 04/23/2012 05:57:05 PM (14 years ago)
- File:
-
- 1 edited
-
wpmathpublisher/trunk/wpmathpublisher.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpmathpublisher/trunk/wpmathpublisher.php
r535156 r535165 56 56 ! fixed things this f*cking svn gui messed with 57 57 ! woring up to Wordpress 2.8.6 58 v 0.6.4 [2012-04-23]58 v 0.6.4 59 59 ! fixed activation problem 60 60 ! fixed tinyMCE integration (language issue) 61 61 + added romanian translation (since this update not complete) by Alexander Ovsov [ http://webhostinggeeks.com/ ] 62 ! updated german translation s62 ! updated german translation 63 63 64 64 Roadmap: … … 165 165 $message = ''; $failed = false; 166 166 if(!is_dir(WPMP_BASEDIR.'/img/')) { 167 $message .= 'Image directory does not exist. Trying to create it...';167 $message .= __('Image directory does not exist. Trying to create it...'); 168 168 if((substr(sprintf('%o', fileperms(WPMP_BASEDIR)), -4) != "0777") or (!@mkdir(WPMP_BASEDIR.'/img/', 0777))){ 169 $message .= 'creating failed, permission denied. Please do the following steps manually:';169 $message .= __('creating failed, permission denied. Please do the following steps manually:'); 170 170 $message .= ' 171 171 <ol> 172 <li> Use a FTP-Client to access your wordpress installation and go to the WpMathPublisher-Plugin directory ('.WPMP_BASEDIR.')</li>173 <li> Create a subdirectory "img"</li>174 <li> Grant full write access to the image directory (<i>chmod 777</i>)</li>172 <li>'.sprintf(__('Use a FTP-Client to access your wordpress installation and go to the WpMathPublisher-Plugin directory %s'), WPMP_BASEDIR).'</li> 173 <li>'.__('Create a subdirectory "img"').'</li> 174 <li>'.__('Grant full write access to the image directory (<i>chmod 777</i>)').'</li> 175 175 </ol> 176 176 '; … … 180 180 $failed = true; 181 181 } else { 182 $message .= 'succesfull';182 $message .= __('successfull'); 183 183 } 184 184 } elseif(substr(sprintf('%o', fileperms(WPMP_BASEDIR.'/img/')), -4) != "0777") { 185 $message .= 'Permission to write to image directory has been denied. Trying to set permissions...';185 $message .= __('Permission to write to image directory has been denied. Trying to set permissions...'); 186 186 if((substr(sprintf('%o', fileperms(WPMP_BASEDIR)), -4) != "0777") or (!@chmod(WPMP_BASEDIR.'/img/', 0777))){ 187 $message .= 'failed to set permissions. Please do the following steps manually:';187 $message .= __('failed to set permissions. Please do the following steps manually:'); 188 188 $message .= ' 189 189 <ol> 190 <li> Use a FTP-Client to access your wordpress installation and go to the WpMathPublisher-Plugin directory ('.WPMP_BASEDIR.')</li>191 <li> Grant full write access to the image directory (<i>chmod 777</i>)</li>190 <li>'.sprintf(__('Use a FTP-Client to access your wordpress installation and go to the WpMathPublisher-Plugin directory %s'), WPMP_BASEDIR).'</li> 191 <li>'.__('Grant full write access to the image directory (<i>chmod 777</i>)').'</li> 192 192 </ol> 193 193 '; … … 196 196 $failed = true; 197 197 } else { 198 $message .= 'successfull';198 $message .= __('successfull'); 199 199 } 200 200 }
Note: See TracChangeset
for help on using the changeset viewer.