 i18n            = require 'i18next'
 
 Config          = require './config'
-{Translator}    = require '../core/trans'
 
 class Errors
     # Configure 404.


    # Set the right message and render the internal error page.
    @RenderError : (req, res) ->
        loc = Translator.getDomain req.host
        res.status 500
        options =
            status              : "500"

    # Also used when a wrong browser is use.
    # Set the right message and render the error page.
    @RenderNotFound : (req, res) ->
        res.status 404
        if req.url is "/browser"
            options =
