From 8a255090197655f06a0460dc46b2b8348f357283 Mon Sep 17 00:00:00 2001 From: McMatts Date: Tue, 1 Mar 2022 20:01:06 -0500 Subject: [PATCH] Implement basic i18n client-side foundation --- domain/setting/smtp.go | 2 +- edition/community.go | 2 +- gui/app/pods/auth/forgot/template.hbs | 2 +- gui/app/pods/auth/reset/template.hbs | 2 +- gui/app/pods/folders/template.hbs | 14 ++++++------ gui/app/services/app-meta.js | 2 +- gui/app/services/i18n.js | 22 +++++++++++++++---- .../components/setup/documize-setup.hbs | 4 ++-- model/org/meta.go | 1 + 9 files changed, 33 insertions(+), 18 deletions(-) diff --git a/domain/setting/smtp.go b/domain/setting/smtp.go index 8803afac..66ca3222 100644 --- a/domain/setting/smtp.go +++ b/domain/setting/smtp.go @@ -36,7 +36,7 @@ func GetSMTPConfig(s *store.Store) (c smtp.Config) { c.SenderEmail, _ = s.Setting.Get("SMTP", "sender") c.SenderName, _ = s.Setting.Get("SMTP", "senderName") if c.SenderName == "" { - c.SenderName = "Documize" + c.SenderName = "Documize Community" } // anon auth? diff --git a/edition/community.go b/edition/community.go index cc70fca0..27f44cf0 100644 --- a/edition/community.go +++ b/edition/community.go @@ -41,7 +41,7 @@ func main() { rt.Product.Major = "4" rt.Product.Minor = "2" rt.Product.Patch = "3" - rt.Product.Revision = "220214141054" + rt.Product.Revision = "220301191336" rt.Product.Version = fmt.Sprintf("%s.%s.%s", rt.Product.Major, rt.Product.Minor, rt.Product.Patch) rt.Product.Edition = domain.CommunityEdition rt.Product.Title = "Community" diff --git a/gui/app/pods/auth/forgot/template.hbs b/gui/app/pods/auth/forgot/template.hbs index eb97bb25..73672284 100644 --- a/gui/app/pods/auth/forgot/template.hbs +++ b/gui/app/pods/auth/forgot/template.hbs @@ -2,7 +2,7 @@