Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove remaining Gogs reference on locales and cmd #430

Merged
merged 1 commit into from
Dec 21, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cmd/admin.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please send this line top on the Gogs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lunny the correct is ordered by year asc, not?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thinks it should be ordered by year desc?

Copy link
Contributor Author

@joubertredrat joubertredrat Dec 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lunny on Golang projects I don't know. In PHP and Python projects we put on year asc.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know which habit is correct. But we have many codes order by desc. So I think we should keep it the same style. Maybe we can send another PR to do that after we confirm which style is better.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lunny Okay, I will revert position and after we can talk about this 👍

// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

Expand All @@ -18,7 +19,7 @@ var (
CmdAdmin = cli.Command{
Name: "admin",
Usage: "Preform admin operations on command line",
Description: `Allow using internal logic of Gogs without hacking into the source code
Description: `Allow using internal logic of Gitea without hacking into the source code
to make automatic initialization process more smoothly`,
Subcommands: []cli.Command{
subcmdCreateUser,
Expand Down
2 changes: 1 addition & 1 deletion cmd/cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func runCert(ctx *cli.Context) error {
SerialNumber: serialNumber,
Subject: pkix.Name{
Organization: []string{"Acme Co"},
CommonName: "Gogs",
CommonName: "Gitea",
},
NotBefore: notBefore,
NotAfter: notAfter,
Expand Down
21 changes: 11 additions & 10 deletions cmd/dump.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^

// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

Expand All @@ -21,9 +22,9 @@ import (
// CmdDump represents the available dump sub-command.
var CmdDump = cli.Command{
Name: "dump",
Usage: "Dump Gogs files and database",
Usage: "Dump Gitea files and database",
Description: `Dump compresses all related files and database into zip file.
It can be used for backup and capture Gogs server image to send to maintainer`,
It can be used for backup and capture Gitea server image to send to maintainer`,
Action: runDump,
Flags: []cli.Flag{
cli.StringFlag{
Expand Down Expand Up @@ -55,14 +56,14 @@ func runDump(ctx *cli.Context) error {
if _, err := os.Stat(tmpDir); os.IsNotExist(err) {
log.Fatalf("Path does not exist: %s", tmpDir)
}
TmpWorkDir, err := ioutil.TempDir(tmpDir, "gogs-dump-")
TmpWorkDir, err := ioutil.TempDir(tmpDir, "gitea-dump-")
if err != nil {
log.Fatalf("Fail to create tmp work directory: %v", err)
}
log.Printf("Creating tmp work dir: %s", TmpWorkDir)

reposDump := path.Join(TmpWorkDir, "gogs-repo.zip")
dbDump := path.Join(TmpWorkDir, "gogs-db.sql")
reposDump := path.Join(TmpWorkDir, "gitea-repo.zip")
dbDump := path.Join(TmpWorkDir, "gitea-db.sql")

log.Printf("Dumping local repositories...%s", setting.RepoRootPath)
zip.Verbose = ctx.Bool("verbose")
Expand All @@ -75,18 +76,18 @@ func runDump(ctx *cli.Context) error {
log.Fatalf("Fail to dump database: %v", err)
}

fileName := fmt.Sprintf("gogs-dump-%d.zip", time.Now().Unix())
fileName := fmt.Sprintf("gitea-dump-%d.zip", time.Now().Unix())
log.Printf("Packing dump files...")
z, err := zip.Create(fileName)
if err != nil {
log.Fatalf("Fail to create %s: %v", fileName, err)
}

if err := z.AddFile("gogs-repo.zip", reposDump); err != nil {
log.Fatalf("Fail to include gogs-repo.zip: %v", err)
if err := z.AddFile("gitea-repo.zip", reposDump); err != nil {
log.Fatalf("Fail to include gitea-repo.zip: %v", err)
}
if err := z.AddFile("gogs-db.sql", dbDump); err != nil {
log.Fatalf("Fail to include gogs-db.sql: %v", err)
if err := z.AddFile("gitea-db.sql", dbDump); err != nil {
log.Fatalf("Fail to include gitea-db.sql: %v", err)
}
customDir, err := os.Stat(setting.CustomPath)
if err == nil && customDir.IsDir() {
Expand Down
9 changes: 5 additions & 4 deletions cmd/serve.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^

// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

Expand Down Expand Up @@ -76,7 +77,7 @@ var (
)

func fail(userMessage, logMessage string, args ...interface{}) {
fmt.Fprintln(os.Stderr, "Gogs:", userMessage)
fmt.Fprintln(os.Stderr, "Gitea:", userMessage)

if len(logMessage) > 0 {
if !setting.ProdMode {
Expand Down Expand Up @@ -144,7 +145,7 @@ func runServ(c *cli.Context) error {
setup("serv.log")

if setting.SSH.Disabled {
println("Gogs: SSH has been disabled")
println("Gitea: SSH has been disabled")
return nil
}

Expand All @@ -154,8 +155,8 @@ func runServ(c *cli.Context) error {

cmd := os.Getenv("SSH_ORIGINAL_COMMAND")
if len(cmd) == 0 {
println("Hi there, You've successfully authenticated, but Gogs does not provide shell access.")
println("If this is unexpected, please log in with password and setup Gogs under another user.")
println("Hi there, You've successfully authenticated, but Gitea does not provide shell access.")
println("If this is unexpected, please log in with password and setup Gitea under another user.")
return nil
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ import (
// CmdWeb represents the available web sub-command.
var CmdWeb = cli.Command{
Name: "web",
Usage: "Start Gogs web server",
Description: `Gogs web server is the only thing you need to run,
Usage: "Start Gitea web server",
Description: `Gitea web server is the only thing you need to run,
and it takes care of all the other things for you`,
Action: runWeb,
Flags: []cli.Flag{
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_bg-BG.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=Потребителско име
admin_password=Парола
confirm_password=Потвърждение на паролата
admin_email=Ел. поща
install_gogs=Инсталирай Gitea
install_btn_confirm=Инсталирай Gitea
test_git_failed=Неуспешно тестването на "git" команда: %v
sqlite3_not_available=Вашата версия не поддържа SQLite3, моля, изтеглете официалната двоична версия от %s, а не gobuild версията.
invalid_db_setting=Настройките на базата данни са некоректни: %v
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_cs-CZ.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=Uživatelské jméno
admin_password=Heslo
confirm_password=Potvrdit heslo
admin_email=E-mailová adresa správce
install_gogs=Nainstalovat Gitea
install_btn_confirm=Nainstalovat Gitea
test_git_failed=Chyba při testu příkazu 'git': %v
sqlite3_not_available=Vaše verze vydání Gitea nepodporuje SQLite3, prosíme stáhněte si oficiální binární balíček z %s, ne gobuild verzi.
invalid_db_setting=Nastavení databáze není správné: %v
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_de-DE.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=Benutzername
admin_password=Passwort
confirm_password=Passwort bestätigen
admin_email=Administrator E-Mail
install_gogs=Gitea installieren
install_btn_confirm=Gitea installieren
test_git_failed=Fehler beim Test des 'git' Kommandos: %v
sqlite3_not_available=Ihre Gitea-Version unterstützt SQLite3 nicht. Bitte laden Sie die offizielle binäre Version von %s herunter, NICHT die gobuild-Version.
invalid_db_setting=Datenbankeinstellungen sind nicht korrekt: %v
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_en-US.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name = Username
admin_password = Password
confirm_password = Confirm Password
admin_email = Admin Email
install_gogs = Install Gitea
install_btn_confirm = Install Gitea
test_git_failed = Fail to test 'git' command: %v
sqlite3_not_available = Your release version does not support SQLite3, please download the official binary version from %s, NOT the gobuild version.
invalid_db_setting = Database setting is not correct: %v
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_es-ES.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=Nombre de usuario
admin_password=Contraseña
confirm_password=Confirmar Contraseña
admin_email=Correo electrónico del administrador
install_gogs=Instalar Gitea
install_btn_confirm=Instalar Gitea
test_git_failed=Fallo al probar el comando 'git': %v
sqlite3_not_available=Tu versión no soporta SQLite3, por favor descarga el binario oficial desde %s, NO la versión de gobuild.
invalid_db_setting=La configuración de la base de datos no es correcta: %v
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_fi-FI.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=Käyttäjätunnus
admin_password=Salasana
confirm_password=Varmista salasana
admin_email=Ylläpito sähköposti
install_gogs=Asenna Gitea
install_btn_confirm=Asenna Gitea
test_git_failed=Epäonnistui testata 'git' komentoa: %v
sqlite3_not_available=Julkaisu versiosi ei tue SQLite3, ole hyvä ja lataa virallinen binääri versio osoitteesta %s, EI gobuild versiota.
invalid_db_setting=Tietokanta asetus ei ole oikea: %v
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_fr-FR.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=Nom d'utilisateur
admin_password=Mot de passe
confirm_password=Confirmez le mot de passe
admin_email=E-mail de l'administrateur
install_gogs=Installer Gitea
install_btn_confirm=Installer Gitea
test_git_failed=Le test de la commande "git" a échoué : %v
sqlite3_not_available=Votre version publiée ne prend pas en charge SQLite3. Veuillez télécharger la version binaire officielle à cette adresse %s.
invalid_db_setting=Paramètres de base de données incorrects : %v
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_it-IT.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=Nome utente
admin_password=Password
confirm_password=Conferma Password
admin_email=E-mail dell'Admin
install_gogs=Installare Gitea
install_btn_confirm=Installare Gitea
test_git_failed=Fallito il test del comando git: %v
sqlite3_not_available=Questa versione non supporta SQLite3, si prega di scaricare la versione binaria ufficiale da %s, NON la versione gobuild.
invalid_db_setting=La configurazione del database non è corretta: %v
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_ja-JP.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=ユーザ名
admin_password=パスワード
confirm_password=パスワード確認
admin_email=管理者の電子メール
install_gogs=Gitea をインストール
install_btn_confirm=Gitea をインストール
test_git_failed='Git' コマンドテストに失敗: %v
sqlite3_not_available=このリリース バージョンは SQLite3 をサポートしていません。gobuild バージョンではない、公式のバイナリ バージョンを %s からダウンロードしてください。
invalid_db_setting=データベースの設定が正しくありません: %v
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_lv-LV.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=Lietotājvārds
admin_password=Parole
confirm_password=Apstipriniet paroli
admin_email=Administratora e-pasts
install_gogs=Instalēt Gitea
install_btn_confirm=Instalēt Gitea
test_git_failed=Kļūda pārbaudot 'git' komandu: %v
sqlite3_not_available=Jūsu versija neatbalsta SQLite3, lūdzu lejupielādējiet oficiālo bināro versiju no %s, NEVIS gobuild versiju.
invalid_db_setting=Datu bāzes iestatījums nav pareizs: %v
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_nl-NL.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=Gebruikersnaam
admin_password=Wachtwoord
confirm_password=Verifieer wachtwoord
admin_email=Beheerder E-mail
install_gogs=Installeer Gitea
install_btn_confirm=Installeer Gitea
test_git_failed=Git test niet gelukt: 'git' commando %v
sqlite3_not_available=Uw versie biedt geen ondersteuning voor SQLite3, download de officiële binaire versie van %s, niet de gobuild versie.
invalid_db_setting=Uw database instellingen zijn niet correct: %v
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_pl-PL.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=Nazwa Użytkownika
admin_password=Hasło
confirm_password=Potwierdź hasło
admin_email=E-mail administratora
install_gogs=Zainstaluj Gitea
install_btn_confirm=Zainstaluj Gitea
test_git_failed=Nie udało się przetestować polecenia "git": %v
sqlite3_not_available=Twoje wydanie nie obsługuje SQLite3, proszę pobrać oficjalne wydanie z %s, a NIE wersję z gobuild.
invalid_db_setting=Ustawienia bazy danych nie są poprawne: %v
Expand Down
3 changes: 1 addition & 2 deletions conf/locale/locale_pt-BR.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=Nome de usuário
admin_password=Senha
confirm_password=Confirmar senha
admin_email=E-mail do administrador
install_gogs=Instalar Gitea
install_btn_confirm=Instalar Gitea
test_git_failed=Falha ao testar o comando 'git': %v
sqlite3_not_available=Sua versão não suporta SQLite3, por favor faça o download da versão binária oficial em %s, NÃO da versão gobuild.
invalid_db_setting=Configuração do banco de dados não está correta: %v
Expand Down Expand Up @@ -1197,4 +1197,3 @@ default_message=Arraste e solte arquivos aqui, ou clique para selecioná-los.
invalid_input_type=Você não pode enviar arquivos deste tipo.
file_too_big=O tamanho do arquivo ({{filesize}} MB) excede o limite máximo ({{maxFilesize}} MB).
remove_file=Remover

2 changes: 1 addition & 1 deletion conf/locale/locale_ru-RU.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=Имя пользователя
admin_password=Пароль
confirm_password=Подтвердить пароль
admin_email=Электронная почта администратора
install_gogs=Установить Gitea
install_btn_confirm=Установить Gitea
test_git_failed=Не удалось проверить 'git' команду: %v
sqlite3_not_available=Ваша версия не поддерживает SQLite3, пожалуйста скачайте официальную бинарную версию от %s, а не версию gobuild.
invalid_db_setting=Настройки базы данных не правильные: %v
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_sr-SP.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=Корисничко име
admin_password=Лозинка
confirm_password=Потврдите лозинку
admin_email=Адреса е-поште адмниистратора
install_gogs=Успостави Gitea
install_btn_confirm=Успостави Gitea
test_git_failed=Команда 'git' није успела: %v
sqlite3_not_available=Ваша верзија не подржава SQLite3, молимо вас преузмите званичну бинарну верзију од %s, а не верзију gobuild.
invalid_db_setting=Подешавања базе података су неправилна: %v
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_sv-SE.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=Användarnamn
admin_password=Lösenord
confirm_password=Bekräfta lösenord
admin_email=Administratörs Epost
install_gogs=Installera Gogs
install_btn_confirm=Installera Gogs
test_git_failed=Misslyckades att testa 'git' kommando: %v
sqlite3_not_available=Din release stödjer ej SQLite3, ladda vänligen ner den officiella binären via %s, inte gobuild varianten.
invalid_db_setting=Databas inställningen är inkorrekt: %v
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_tr-TR.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=Kullanıcı Adı
admin_password=Parola
confirm_password=Parolayı Doğrula
admin_email=Yönetici E-Postası
install_gogs=Gogs'u Kur
install_btn_confirm=Gogs'u Kur
test_git_failed='git' komut testi başarısız: %v
sqlite3_not_available=Yayın sürümünüz SQLite3'ü desteklemiyor, lütfen %s'den resmi sürümü (gobuild sürümünü DEĞİL) indirin.
invalid_db_setting=Veritabanı ayarları geçersiz: %v
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_zh-CN.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=管理员用户名
admin_password=管理员密码
confirm_password=确认密码
admin_email=管理员邮箱
install_gogs=立即安装
install_btn_confirm=立即安装
test_git_failed=无法识别 'git' 命令:%v
sqlite3_not_available=您所使用的发行版不支持 SQLite3,请从 %s 下载官方构建版,而不是 gobuild 版本。
invalid_db_setting=数据库设置不正确:%v
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_zh-HK.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=管理員用戶名
admin_password=管理員密碼
confirm_password=確認密碼
admin_email=管理員郵箱
install_gogs=立即安裝
install_btn_confirm=立即安裝
test_git_failed=無法識別 'git' 命令:%v
sqlite3_not_available=您所使用的發行版本不支持 SQLite3,請從 %s 下載官方構建版,而不是 gobuild 版本。
invalid_db_setting=數據庫設置不正確:%v
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/locale_zh-TW.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ admin_name=管理員用戶名
admin_password=管理員密碼
confirm_password=確認密碼
admin_email=管理員郵箱
install_gogs=立即安裝
install_btn_confirm=立即安裝
test_git_failed=無法識別 'git' 命令:%v
sqlite3_not_available=您所使用的發行版本不支持 SQLite3,請從 %s 下載官方構建版,而不是 gobuild 版本。
invalid_db_setting=數據庫設置不正確:%v
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^

// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

Expand Down
486 changes: 243 additions & 243 deletions modules/bindata/bindata.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/install.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
<div class="ui divider"></div>
<div class="inline field">
<label></label>
<button class="ui primary button">{{.i18n.Tr "install.install_gogs"}}</button>
<button class="ui primary button">{{.i18n.Tr "install.install_btn_confirm"}}</button>
</div>
</form>
</div>
Expand Down