Mercurial > wow > mailopener
comparison Modules/Collected.lua @ 57:8d1a34cec258
Any English professors near? ?2 mail? vs ?2 mails?.
| author | Zerotorescue |
|---|---|
| date | Sun, 12 Sep 2010 22:20:55 +0200 |
| parents | 75c36b3d5443 |
| children | eadff31e61e8 |
comparison
equal
deleted
inserted
replaced
| 56:b2d685b3ac9d | 57:8d1a34cec258 |
|---|---|
| 237 -- Time Spent | 237 -- Time Spent |
| 238 if timeSpent and timeSpent > 0 then | 238 if timeSpent and timeSpent > 0 then |
| 239 local timeSpentMinutes = floor( timeSpent / 60 ); | 239 local timeSpentMinutes = floor( timeSpent / 60 ); |
| 240 local timeSpentSeconds = ( timeSpent % 60 ); | 240 local timeSpentSeconds = ( timeSpent % 60 ); |
| 241 if timeSpentMinutes ~= 0 then | 241 if timeSpentMinutes ~= 0 then |
| 242 printMessage = printMessage .. format("Collected a total of %d mails within %d minutes and %d seconds. ", mailOpened, timeSpentMinutes, timeSpentSeconds); | 242 printMessage = printMessage .. format("Collected a total of %d mail within %d minutes and %d seconds. ", mailOpened, timeSpentMinutes, timeSpentSeconds); |
| 243 else | 243 else |
| 244 printMessage = printMessage .. format("Collected a total of %d mails within %d seconds. ", mailOpened, timeSpentSeconds); | 244 printMessage = printMessage .. format("Collected a total of %d mail within %d seconds. ", mailOpened, timeSpentSeconds); |
| 245 end | 245 end |
| 246 else | 246 else |
| 247 printMessage = printMessage .. format("Collected a total of %d mails. ", mailOpened); | 247 printMessage = printMessage .. format("Collected a total of %d mail. ", mailOpened); |
| 248 end | 248 end |
| 249 elseif timeSpent and timeSpent > 0 then | 249 elseif timeSpent and timeSpent > 0 then |
| 250 local timeSpentMinutes = floor( timeSpent / 60 ); | 250 local timeSpentMinutes = floor( timeSpent / 60 ); |
| 251 local timeSpentSeconds = ( timeSpent % 60 ); | 251 local timeSpentSeconds = ( timeSpent % 60 ); |
| 252 if timeSpentMinutes ~= 0 then | 252 if timeSpentMinutes ~= 0 then |
| 279 -- Time Spent | 279 -- Time Spent |
| 280 if sessionTimeSpent and sessionTimeSpent > 0 then | 280 if sessionTimeSpent and sessionTimeSpent > 0 then |
| 281 local timeSpentMinutes = floor( sessionTimeSpent / 60 ); | 281 local timeSpentMinutes = floor( sessionTimeSpent / 60 ); |
| 282 local timeSpentSeconds = ( sessionTimeSpent % 60 ); | 282 local timeSpentSeconds = ( sessionTimeSpent % 60 ); |
| 283 if timeSpentMinutes ~= 0 then | 283 if timeSpentMinutes ~= 0 then |
| 284 printMessage = printMessage .. format("Collected a total of %d mails within %d minutes and %d seconds this session. ", mailOpened, timeSpentMinutes, timeSpentSeconds); | 284 printMessage = printMessage .. format("Collected a total of %d mail within %d minutes and %d seconds this session. ", mailOpened, timeSpentMinutes, timeSpentSeconds); |
| 285 else | 285 else |
| 286 printMessage = printMessage .. format("Collected a total of %d mails within %d seconds this session. ", mailOpened, timeSpentSeconds); | 286 printMessage = printMessage .. format("Collected a total of %d mail within %d seconds this session. ", mailOpened, timeSpentSeconds); |
| 287 end | 287 end |
| 288 else | 288 else |
| 289 printMessage = printMessage .. format("Collected a total of %d mails this session. ", sessionMailOpened); | 289 printMessage = printMessage .. format("Collected a total of %d mail this session. ", sessionMailOpened); |
| 290 end | 290 end |
| 291 elseif sessionTimeSpent then | 291 elseif sessionTimeSpent then |
| 292 local timeSpentMinutes = floor( sessionTimeSpent / 60 ); | 292 local timeSpentMinutes = floor( sessionTimeSpent / 60 ); |
| 293 local timeSpentSeconds = ( sessionTimeSpent % 60 ); | 293 local timeSpentSeconds = ( sessionTimeSpent % 60 ); |
| 294 if timeSpentMinutes ~= 0 then | 294 if timeSpentMinutes ~= 0 then |
