update locale and mirror code format
This commit is contained in:
parent
d01e7b0173
commit
b231b8c927
|
@ -75,8 +75,8 @@ func checkVersion() {
|
||||||
// Check dependency version.
|
// Check dependency version.
|
||||||
checkers := []VerChecker{
|
checkers := []VerChecker{
|
||||||
{"github.com/Unknwon/macaron", macaron.Version, "0.4.7"},
|
{"github.com/Unknwon/macaron", macaron.Version, "0.4.7"},
|
||||||
{"github.com/macaron-contrib/binding", binding.Version, "0.0.2"},
|
{"github.com/macaron-contrib/binding", binding.Version, "0.0.3"},
|
||||||
{"github.com/macaron-contrib/i18n", i18n.Version, "0.0.3"},
|
{"github.com/macaron-contrib/i18n", i18n.Version, "0.0.4"},
|
||||||
{"github.com/macaron-contrib/session", session.Version, "0.0.5"},
|
{"github.com/macaron-contrib/session", session.Version, "0.0.5"},
|
||||||
}
|
}
|
||||||
for _, c := range checkers {
|
for _, c := range checkers {
|
||||||
|
|
|
@ -377,29 +377,29 @@ diff.stats_desc=<strong> %d fichiers modifiés</strong> avec <strong>%d ajouts</
|
||||||
diff.bin=BIN
|
diff.bin=BIN
|
||||||
diff.view_file=Voir le fichier
|
diff.view_file=Voir le fichier
|
||||||
|
|
||||||
release.releases=Releases
|
release.releases=Versions
|
||||||
release.new_release=New Release
|
release.new_release=Nouvelle version
|
||||||
release.draft=Draft
|
release.draft=Brouillon
|
||||||
release.prerelease=Pre-Release
|
release.prerelease=Pré-publication
|
||||||
release.stable=Stable
|
release.stable=Stable
|
||||||
release.edit=edit
|
release.edit=Éditer
|
||||||
release.ahead=<strong>%d</strong> commits to %s since this release
|
release.ahead=<strong>%d</strong> commissions à %s depuis cette publication
|
||||||
release.source_code=Source Code
|
release.source_code=Code Source
|
||||||
release.tag_name=Tag name
|
release.tag_name=Nom du tag
|
||||||
release.target=Target
|
release.target=Cible
|
||||||
release.tag_helper=Choose an existing tag, or create a new tag on publish.
|
release.tag_helper=Choisissez un tag existant ou créez-en un nouveau à publier.
|
||||||
release.release_title=Release title
|
release.release_title=Titre de la publication
|
||||||
release.content_with_md=Content with <a href="%s">Markdown</a>
|
release.content_with_md=Contenu avec <a href="%s">Démarque(s)</a>
|
||||||
release.write=Write
|
release.write=Écrire
|
||||||
release.preview=Preview
|
release.preview=Prévisualiser
|
||||||
release.content_placeholder=Write some content
|
release.content_placeholder=Rédiger du contenu
|
||||||
release.loading=Loading...
|
release.loading=Chargement…
|
||||||
release.prerelease_desc=This is a pre-release
|
release.prerelease_desc=Il s'agit d'une version préliminaire
|
||||||
release.prerelease_helper=We’ll point out that this release is identified as non-production ready.
|
release.prerelease_helper=Nous soulignerons que cette version est considérée comme non prête pour la production.
|
||||||
release.publish=Publish Release
|
release.publish=Publier
|
||||||
release.save_draft=Save Draft
|
release.save_draft=Sauvegarder le Brouillon
|
||||||
release.edit_release=Edit Release
|
release.edit_release=Éditer la publication
|
||||||
release.tag_name_already_exist=Release with this tag name has already existed.
|
release.tag_name_already_exist=Une publication avec ce nom de tag a déjà existée.
|
||||||
|
|
||||||
[org]
|
[org]
|
||||||
org_name_holder=Nom d'organisation
|
org_name_holder=Nom d'organisation
|
||||||
|
|
|
@ -82,35 +82,35 @@ func sendMail(settings *setting.Mailer, from string, recipients []string, msgCon
|
||||||
ServerName: host,
|
ServerName: host,
|
||||||
}
|
}
|
||||||
|
|
||||||
var conn net.Conn
|
conn, err := net.Dial("tcp", net.JoinHostPort(host, port))
|
||||||
if conn, err = net.Dial("tcp", net.JoinHostPort(host, port)); err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
defer conn.Close()
|
defer conn.Close()
|
||||||
|
|
||||||
connection_secure := false
|
isSecureConn := false
|
||||||
// Start TLS directly if the port ends with 465 (SMTPS protocol)
|
// Start TLS directly if the port ends with 465 (SMTPS protocol)
|
||||||
if strings.HasSuffix(port, "465") {
|
if strings.HasSuffix(port, "465") {
|
||||||
conn = tls.Client(conn, tlsconfig)
|
conn = tls.Client(conn, tlsconfig)
|
||||||
connection_secure = true
|
isSecureConn = true
|
||||||
}
|
}
|
||||||
|
|
||||||
var client *smtp.Client
|
client, err := smtp.NewClient(conn, host)
|
||||||
if client, err = smtp.NewClient(conn, host); err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// If not using SMTPS, alway use STARTTLS if available
|
// If not using SMTPS, alway use STARTTLS if available
|
||||||
has_starttls, _ := client.Extension("STARTTLS")
|
hasStartTLS, _ := client.Extension("STARTTLS")
|
||||||
if !connection_secure && has_starttls {
|
if !isSecureConn && hasStartTLS {
|
||||||
if err = client.StartTLS(tlsconfig); err != nil {
|
if err = client.StartTLS(tlsconfig); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auth_available, options := client.Extension("AUTH")
|
canAuth, options := client.Extension("AUTH")
|
||||||
|
|
||||||
if auth_available && len(settings.User) > 0 {
|
if canAuth && len(settings.User) > 0 {
|
||||||
var auth smtp.Auth
|
var auth smtp.Auth
|
||||||
|
|
||||||
if strings.Contains(options, "CRAM-MD5") {
|
if strings.Contains(options, "CRAM-MD5") {
|
||||||
|
|
Loading…
Reference in New Issue