diff --git a/config.json b/config.json index 7ce909ec..5885cd00 100644 --- a/config.json +++ b/config.json @@ -1,10 +1,10 @@ { "admin_server" : { - "listen_url" : "0.0.0.0:3333", + "listen_url" : "127.0.0.1:3333", "use_tls" : false, "cert_path" : "gophish_admin.crt", "key_path" : "gophish_admin.key", - "languge": "tr-TR" + "languge": "en-US" }, "phish_server" : { "listen_url" : "0.0.0.0:80", diff --git a/controllers/route.go b/controllers/route.go index bced8891..301a319d 100644 --- a/controllers/route.go +++ b/controllers/route.go @@ -313,7 +313,7 @@ func Register(w http.ResponseWriter, r *http.Request) { if succ { session.AddFlash(models.Flash{ Type: "success", - Message: "Registration successful!.", + Message: util.T("Registration successful!."), }) session.Save(r, w) http.Redirect(w, r, "/login", 302) @@ -431,7 +431,7 @@ func Settings(w http.ResponseWriter, r *http.Request) { err := auth.ChangePassword(r) msg := models.Response{Success: true, Message: util.T("Settings Updated Successfully")} if err == auth.ErrInvalidPassword { - msg.Message = "Invalid Password" + msg.Message = util.T("Invalid Password") msg.Success = false JSONResponse(w, msg, http.StatusBadRequest) return diff --git a/gophish.go b/gophish.go index c860ba22..6703059b 100644 --- a/gophish.go +++ b/gophish.go @@ -40,7 +40,6 @@ import ( "github.com/gophish/gophish/models" "./util" "github.com/gorilla/handlers" -// "github.com/nicksnyder/go-i18n/i18n" ) var Logger = log.New(os.Stdout, " ", log.Ldate|log.Ltime|log.Lshortfile) diff --git a/translations/tr-tr.all.json b/translations/tr-tr.all.json index 4eded9af..d70ce49d 100644 --- a/translations/tr-tr.all.json +++ b/translations/tr-tr.all.json @@ -1058,5 +1058,13 @@ { "id": "Template not found", "translation": "Tema bulunamadı" + }, + { + "id": "Invalid Password", + "translation": "Hatalı Şifre" + }, + { + "id": "Registration successful!.", + "translation": "Kayıt başarıyla tamamlandı!" } ]