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


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

i18n            = require 'i18next'

Config          = require './config'

class Errors
    # Configure 404.
