Версия 0.4.0. #5
11
README.md
11
README.md
@ -11,11 +11,11 @@
|
||||
|
||||
## Установка через fyne:
|
||||
1. go install fyne.io/fyne/v2/cmd/fyne@latest
|
||||
2. fyne get git.kor-elf.net/kor-elf/gui-for-ffmpeg/src
|
||||
2. fyne get git.kor-elf.net/kor-elf/gui-for-ffmpeg
|
||||
|
||||
## Скомпилировать через исходники:
|
||||
1. git clone https://git.kor-elf.net/kor-elf/gui-for-ffmpeg.git
|
||||
2. Переходим в папку проекта и там переходим в папку src: **cd gui-for-ffmpeg/src**
|
||||
2. Переходим в папку проекта и там переходим в папку src: **cd gui-for-ffmpeg**
|
||||
3. Ознакамливаемся, что нужно ещё установить для Вашей ОС для простого запуска (через go run) тут: https://docs.fyne.io/started/
|
||||
4. *(не обязательный шаг)* Просто запустить можно так: **go run main.go**
|
||||
5. go install github.com/fyne-io/fyne-cross@latest
|
||||
@ -35,9 +35,8 @@
|
||||
|
||||
## Работа с переводами:
|
||||
1. go install -v github.com/nicksnyder/go-i18n/v2/goi18n@latest
|
||||
2. Переходим в папке проекта в папку src: **cd ./src**
|
||||
3. goi18n merge -sourceLanguage ru -outdir languages languages/active.\*.toml languages/translate.\*.toml
|
||||
4. В файлах **languages/translate.\*.toml** переводим текст на нужный язык
|
||||
5. goi18n merge -sourceLanguage ru -outdir languages languages/active.\*.toml languages/translate.\*.toml
|
||||
2. goi18n merge -sourceLanguage ru -outdir languages languages/active.\*.toml languages/translate.\*.toml
|
||||
3. В файлах **languages/translate.\*.toml** переводим текст на нужный язык
|
||||
4. goi18n merge -sourceLanguage ru -outdir languages languages/active.\*.toml languages/translate.\*.toml
|
||||
|
||||
Более подробно можно почитать тут: https://github.com/nicksnyder/go-i18n
|
@ -1,7 +1,7 @@
|
||||
package convertor
|
||||
|
||||
import (
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/setting"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/setting"
|
||||
)
|
||||
|
||||
type RepositoryContract interface {
|
@ -2,7 +2,7 @@ package convertor
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/helper"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/helper"
|
||||
"io"
|
||||
"os/exec"
|
||||
"regexp"
|
@ -8,8 +8,8 @@ import (
|
||||
"fyne.io/fyne/v2/dialog"
|
||||
"fyne.io/fyne/v2/storage"
|
||||
"fyne.io/fyne/v2/widget"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/helper"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/localizer"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/helper"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/localizer"
|
||||
"github.com/nicksnyder/go-i18n/v2/i18n"
|
||||
"image/color"
|
||||
"path/filepath"
|
@ -7,7 +7,7 @@ import (
|
||||
"fyne.io/fyne/v2/dialog"
|
||||
"fyne.io/fyne/v2/storage"
|
||||
"fyne.io/fyne/v2/widget"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/helper"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/helper"
|
||||
"github.com/nicksnyder/go-i18n/v2/i18n"
|
||||
"image/color"
|
||||
"net/url"
|
0
src/data/.gitignore → data/.gitignore
vendored
0
src/data/.gitignore → data/.gitignore
vendored
@ -4,7 +4,7 @@ import (
|
||||
"fyne.io/fyne/v2"
|
||||
"fyne.io/fyne/v2/container"
|
||||
"fyne.io/fyne/v2/widget"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/localizer"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/localizer"
|
||||
"github.com/nicksnyder/go-i18n/v2/i18n"
|
||||
)
|
||||
|
@ -1,4 +1,4 @@
|
||||
module git.kor-elf.net/kor-elf/gui-for-ffmpeg/src
|
||||
module git.kor-elf.net/kor-elf/gui-for-ffmpeg
|
||||
|
||||
go 1.21
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"bufio"
|
||||
"errors"
|
||||
"fyne.io/fyne/v2/widget"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/convertor"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/helper"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/localizer"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/convertor"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/helper"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/localizer"
|
||||
"github.com/nicksnyder/go-i18n/v2/i18n"
|
||||
"io"
|
||||
"regexp"
|
@ -6,7 +6,7 @@ package handler
|
||||
import (
|
||||
"fyne.io/fyne/v2/canvas"
|
||||
"fyne.io/fyne/v2/widget"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/convertor"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/convertor"
|
||||
)
|
||||
|
||||
func getPathsToFF() []convertor.FFPathUtilities {
|
@ -1,7 +1,7 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/localizer"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/localizer"
|
||||
)
|
||||
|
||||
type MainHandler struct {
|
@ -2,8 +2,8 @@ package handler
|
||||
|
||||
import (
|
||||
"fyne.io/fyne/v2"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/localizer"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/menu"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/localizer"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/menu"
|
||||
"github.com/nicksnyder/go-i18n/v2/i18n"
|
||||
)
|
||||
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
@ -1,7 +1,7 @@
|
||||
package localizer
|
||||
|
||||
import (
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/setting"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/setting"
|
||||
)
|
||||
|
||||
type RepositoryContract interface {
|
@ -6,13 +6,13 @@ import (
|
||||
"fyne.io/fyne/v2/app"
|
||||
"fyne.io/fyne/v2/container"
|
||||
"fyne.io/fyne/v2/widget"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/convertor"
|
||||
error2 "git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/error"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/handler"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/localizer"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/menu"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/migration"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/setting"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/convertor"
|
||||
error2 "git.kor-elf.net/kor-elf/gui-for-ffmpeg/error"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/handler"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/localizer"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/menu"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/migration"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/setting"
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
"golang.org/x/text/language"
|
||||
"gorm.io/driver/sqlite"
|
@ -5,7 +5,7 @@ import (
|
||||
"fyne.io/fyne/v2/canvas"
|
||||
"fyne.io/fyne/v2/container"
|
||||
"fyne.io/fyne/v2/widget"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/localizer"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/localizer"
|
||||
"github.com/nicksnyder/go-i18n/v2/i18n"
|
||||
"golang.org/x/image/colornames"
|
||||
"net/url"
|
@ -1,7 +1,7 @@
|
||||
package migration
|
||||
|
||||
import (
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/src/setting"
|
||||
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/setting"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user