     # Show difference nicely
     if difference is -1
       # Yesterday
-      words = 'dueYesterday'
+      words = $.i18n._ 'due yesterday'
       className = 'overdue'
 
     else if difference < -1


      # Make sure the difference is a positive number
      difference = Math.abs difference
      words = "Overdue " + difference
      className = 'overdue'

    else if difference is 0
      # Due Today
      words = 'dueToday'
      className = 'due'

    else if difference is 1
      # Due Tomorrow
      words = 'due tomorrow'
      className = 'soon'

    else if difference < 15
      # Due in the next 15 days
      words = 'daysLeft' + difference

    else
      words = date.toString()

    {
      words: words

      return matches

  @prettyDate: (date) ->
    # This needs to be translated properly
    month = [
      $.i18n._ "Jan"
      $.i18n._ "Feb"
      $.i18n._ "Mar"
      $.i18n._ "Apr"
      $.i18n._ "May"
      $.i18n._ "Jun"
      $.i18n._ "Jul"
      $.i18n._ "Aug"
      $.i18n._ "Sep"
      $.i18n._ "Oct"
      $.i18n._ "Nov"
      $.i18n._ "Dec"
    ]

    # Create Date
    now = new Date()
    difference = 0
