Skip to content

Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.

Update interface text and layouts, navigation items, and button labels

puji48100ac4c85b4b5b
diff --git a/internal/desktop/desktop.go b/internal/desktop/desktop.go
index 18cda779..9f692973 100644
--- a/internal/desktop/desktop.go
+++ b/internal/desktop/desktop.go
@@ -52,7 +52,7 @@ func Show() {
separator := canvas.NewRectangle(color.NRGBA{R: 209, G: 213, B: 219, A: 255})
separator.SetMinSize(fyne.NewSize(0, 2))
- slogan := canvas.NewText("智能内容创作助手", color.NRGBA{R: 107, G: 114, B: 128, A: 255})
+ slogan := canvas.NewText("AI Video Translation & Dubbing by Krillin AI", color.NRGBA{R: 107, G: 114, B: 128, A: 255})
slogan.TextSize = 12
slogan.Alignment = fyne.TextAlignCenter
@@ -60,7 +60,7 @@ func Show() {
logoContainer.Add(separator)
logoContainer.Add(slogan)
- navItems := []string{"工作台 Workbench", "配置 Config"}
+ navItems := []string{"工作台 Dashboard", "配置 Settings"}
navIcons := []fyne.Resource{theme.DocumentIcon(), theme.SettingsIcon()}
var navButtons []*widget.Button
diff --git a/internal/desktop/ui.go b/internal/desktop/ui.go
index c5de64f4..de809c0f 100644
--- a/internal/desktop/ui.go
+++ b/internal/desktop/ui.go
@@ -75,7 +75,9 @@ func CreateConfigTab(window fyne.Window) fyne.CanvasObject {
func CreateSubtitleTab(window fyne.Window) fyne.CanvasObject {
sm := NewSubtitleManager(window)
- title := TitleText("视频翻译配音Video Translate & Dubbing")
+ title1 := TitleText("视频翻译配音")
+ title2 := TitleText("Video Translate & Dubbing")
+ titleContainer := container.NewVBox(title1, title2)
videoInputContainer := createVideoInputContainer(sm)
subtitleSettingsCard := createSubtitleSettingsCard(sm)
@@ -112,7 +114,7 @@ func CreateSubtitleTab(window fyne.Window) fyne.CanvasObject {
progressArea := container.NewVBox(progress)
mainContent := container.NewVBox(
- container.NewPadded(title),
+ container.NewPadded(titleContainer),
spacer1,
container.NewPadded(videoInputContainer),
container.NewPadded(subtitleSettingsCard),
@@ -389,20 +391,19 @@ func createTtsConfigGroup() *fyne.Container {
// 创建视频输入容器
func createVideoInputContainer(sm *SubtitleManager) *fyne.Container {
- inputTypeRadio := widget.NewRadioGroup([]string{"本地视频 Local video", "视频链接 Video link"}, nil)
+ inputTypeRadio := widget.NewRadioGroup([]string{"本地上传 Upload a file", "输入链接 Paste a link"}, nil)
inputTypeRadio.Horizontal = true
inputTypeContainer := container.NewHBox(
- widget.NewLabel("输入方式 Input type:"),
inputTypeRadio,
)
- urlEntry := StyledEntry("请输入视频链接Please enter the video link")
+ urlEntry := StyledEntry("输入视频链接 Paste a link here")
urlEntry.Hide()
urlEntry.OnChanged = func(text string) {
sm.SetVideoUrl(text)
}
- selectButton := PrimaryButton("选择视频文件 Choose video files", theme.FolderOpenIcon(), sm.ShowFileDialog)
+ selectButton := PrimaryButton("选择视频文件 Select Video Files", theme.FolderOpenIcon(), sm.ShowFileDialog)
selectedVideoLabel := widget.NewLabel("")
selectedVideoLabel.Hide()
@@ -441,9 +442,9 @@ func createVideoInputContainer(sm *SubtitleManager) *fyne.Container {
videoInputContainer := container.NewVBox()
videoInputContainer.Objects = []fyne.CanvasObject{selectButton, selectedVideoLabel}
- inputTypeRadio.SetSelected("本地视频 Local video")
+ inputTypeRadio.SetSelected("本地上传 Upload a file")
inputTypeRadio.OnChanged = func(value string) {
- if value == "本地视频 Local video" {
+ if value == "本地上传 Upload a file" {
urlEntry.Hide()
selectButton.Show()
selectedVideoLabel.Show()
@@ -463,24 +464,24 @@ func createVideoInputContainer(sm *SubtitleManager) *fyne.Container {
container.NewPadded(videoInputContainer),
)
- return GlassmorphismCard("1. 视频源设置 Video Source", "选择视频和语言 Choose video & language", content, GetCurrentThemeIsDark())
+ return GlassmorphismCard("1. 选择视频 Select Video", "", content, GetCurrentThemeIsDark())
}
// 创建字幕设置卡片
func createSubtitleSettingsCard(sm *SubtitleManager) *fyne.Container {
positionSelect := widget.NewSelect([]string{
- "翻译后字幕在上方 Translation subtitle on top",
- "翻译后字幕在下方 Translation subtitle on bottom",
+ "翻译在上 Translation Above",
+ "翻译在下 Translation Below",
}, func(value string) {
- if value == "翻译后字幕在上方 Translation subtitle on top" {
+ if value == "翻译在上 Translation Above" {
sm.SetBilingualPosition(1)
} else {
sm.SetBilingualPosition(2)
}
})
- positionSelect.SetSelected("翻译后字幕在上方 Translation subtitle on top")
+ positionSelect.SetSelected("翻译在上 Translation Above")
- bilingualCheck := widget.NewCheck("启用双语字幕 Enable bilingual subtitles", func(checked bool) {
+ bilingualCheck := widget.NewCheck("启用双语字幕 Bilingual Subtitles", func(checked bool) {
sm.SetBilingualEnabled(checked)
if checked {
positionSelect.Enable()
@@ -502,7 +503,7 @@ func createSubtitleSettingsCard(sm *SubtitleManager) *fyne.Container {
langContainer := container.NewVBox(
container.NewHBox(
- widget.NewLabel("源语言 Origin language:"),
+ widget.NewLabel("源语言 Original Language:"),
StyledSelect([]string{
"简体中文", "English", "日本語", "Türkçe", "Deutsch", "한국어", "Русский язык", "Bahasa Melayu",
}, func(value string) {
@@ -515,7 +516,7 @@ func createSubtitleSettingsCard(sm *SubtitleManager) *fyne.Container {
}),
),
container.NewHBox(
- widget.NewLabel("目标语言 Target language:"),
+ widget.NewLabel("翻译成 Translate To:"),
targetLangSelector,
),
)
@@ -524,7 +525,7 @@ func createSubtitleSettingsCard(sm *SubtitleManager) *fyne.Container {
langContainer.Objects[0].(*fyne.Container).Objects[1].(*widget.Select).SetSelected("English")
langContainer.Objects[1].(*fyne.Container).Objects[1].(*widget.Select).SetSelected("简体中文")
- fillerCheck := widget.NewCheck("启用语气词过滤 Use modal filter", func(checked bool) {
+ fillerCheck := widget.NewCheck("启用语气词过滤 Tone Word Filtering", func(checked bool) {
sm.SetFillerFilter(checked)
})
fillerCheck.SetChecked(true)
@@ -535,7 +536,7 @@ func createSubtitleSettingsCard(sm *SubtitleManager) *fyne.Container {
positionSelect,
)
- return ModernCard("2. 字幕设置 Subtitle setting", content, GetCurrentThemeIsDark())
+ return ModernCard("2. 字幕设置 Subtitle settings", content, GetCurrentThemeIsDark())
}
// 创建配音设置卡片
@@ -548,10 +549,10 @@ func createVoiceSettingsCard(sm *SubtitleManager) *fyne.Container {
voiceCodeEntry.Disable()
// 音色克隆功能 - 当前支持阿里云TTS,未来可扩展其他提供商
- audioSampleButton := SecondaryButton("选择音色克隆样本 Choose voice clone sample (Currently supports Aliyun TTS)", theme.MediaMusicIcon(), sm.ShowAudioFileDialog)
+ audioSampleButton := SecondaryButton("选择音色克隆样本 Select Voice Clone Sample(Aliyun TTS Supported)", theme.MediaMusicIcon(), sm.ShowAudioFileDialog)
audioSampleButton.Disable()
- voiceoverCheck := widget.NewCheck("启用配音 Enable dubbing", func(checked bool) {
+ voiceoverCheck := widget.NewCheck("启用配音 Apply Dubbing", func(checked bool) {
sm.SetVoiceoverEnabled(checked)
if checked {
voiceCodeEntry.Enable()
@@ -567,15 +568,15 @@ func createVoiceSettingsCard(sm *SubtitleManager) *fyne.Container {
container.NewHBox(container.NewBorder(voiceCodeEntry, nil, nil, audioSampleButton)),
)
- return ModernCard("3. 配音设置 Dubbing setting", grid, GetCurrentThemeIsDark())
+ return ModernCard("3. 配音设置 Dubbing settings", grid, GetCurrentThemeIsDark())
}
// 视频合成卡片
func createEmbedSettingsCard(sm *SubtitleManager) *fyne.Container {
- embedCheck := widget.NewCheck("合成视频 Composite video", nil)
+ embedCheck := widget.NewCheck("合成 Composite", nil)
embedTypeSelect := StyledSelect([]string{
- "横屏视频 Landscape video", "竖屏视频 Portrait video", "横屏+竖屏视频 Landscape+Portrait video",
+ "横屏输出 Landscape(16:9)", "竖屏输出 Portrait(9:16)", "横屏+竖屏 (Landscape+Portrait)",
}, nil)
embedTypeSelect.Disable()
@@ -597,7 +598,7 @@ func createEmbedSettingsCard(sm *SubtitleManager) *fyne.Container {
embedCheck.OnChanged = func(checked bool) {
if checked {
embedTypeSelect.Enable()
- embedTypeSelect.SetSelected("横屏视频 Landscape video")
+ embedTypeSelect.SetSelected("横屏输出 Landscape(16:9)")
} else {
embedTypeSelect.Disable()
sm.SetEmbedSubtitle("none")
@@ -606,13 +607,13 @@ func createEmbedSettingsCard(sm *SubtitleManager) *fyne.Container {
embedTypeSelect.OnChanged = func(value string) {
switch value {
- case "横屏视频 Landscape video":
+ case "横屏输出 Landscape(16:9)":
titleInputContainer.Hide()
sm.SetEmbedSubtitle("horizontal")
- case "竖屏视频 Portrait video":
+ case "竖屏输出 Portrait(9:16)":
titleInputContainer.Show()
sm.SetEmbedSubtitle("vertical")
- case "横屏+竖屏视频 Landscape+Portrait video":
+ case "横屏+竖屏 (Landscape+Portrait)":
titleInputContainer.Show()
sm.SetEmbedSubtitle("all")
}
@@ -625,7 +626,7 @@ func createEmbedSettingsCard(sm *SubtitleManager) *fyne.Container {
container.NewPadded(titleInputContainer),
)
- return ModernCard("视频合成设置 Subtitle embed setting", mainContainer, GetCurrentThemeIsDark())
+ return ModernCard("视频合成设置 Composition Settings", mainContainer, GetCurrentThemeIsDark())
}
// 创建进度和下载区域
@@ -692,7 +693,7 @@ func createProgressAndDownloadArea(sm *SubtitleManager) (*widget.ProgressBar, *f
// 开始按钮
func createStartButton(window fyne.Window, sm *SubtitleManager, videoInputContainer *fyne.Container, embedSettingsCard *fyne.Container, progress *widget.ProgressBar, downloadContainer *fyne.Container) *widget.Button {
- btn := widget.NewButtonWithIcon("开始任务 Start task", theme.MediaPlayIcon(), nil)
+ btn := widget.NewButtonWithIcon("开始翻译 Start Translating", theme.MediaPlayIcon(), nil)
btn.Importance = widget.HighImportance
btn.OnTapped = func() {
diff --git a/static/index.html b/static/index.html
index b936789e..45ab75e7 100644
--- a/static/index.html
+++ b/static/index.html
@@ -249,7 +249,7 @@
height: 100vh;
}
.sidebar {
- width: 240px;
+ width: 300px;
background: rgba(255, 255, 255, 0.85);
box-shadow: 2px 0 16px 0 rgba(30, 41, 59, 0.08);
display: flex;
@@ -263,6 +263,7 @@
.logo {
font-size: 2rem;
font-weight: 700;
+ text-align: center;
color: #3b82f6;
margin-bottom: 16px;
letter-spacing: 2px;
@@ -271,6 +272,10 @@
font-size: 1rem;
color: #64748b;
margin-bottom: 32px;
+ text-align: center;
+ word-wrap: break-word;
+ line-height: 1.4;
+ padding: 0 16px;
}
.nav {
width: 100%;
@@ -433,13 +438,13 @@
<div class="sidebar">
<div class="logo">Klic Studio</div>
<div class="slogan">
- 智能内容创作助手
+ AI Video Translation & Dubbing by Krillin AI
</div>
<div class="nav">
<button class="nav-btn active" id="nav-workbench">
- 工作台 Workbench
+ 工作台 Dashboard
</button>
- <button class="nav-btn" id="nav-config">配置 Config</button>
+ <button class="nav-btn" id="nav-config">设置 Settings</button>
</div>
<div class="sidebar-bottom">
<span style="font-size: 13px; color: #94a3b8">v1.0</span>
@@ -457,22 +462,21 @@
margin: 0 0 32px 0;
"
>
- 视频翻译配音 Video Translation & Dubbing
+ 视频翻译配音<br> Video Translation & Dubbing
</h1>
<!-- 视频输入区域 -->
<div class="card">
<h3 class="card-title">1. 视频源设置 Video Source Settings</h3>
<div class="form-group">
- <label class="form-label">输入方式 Input Method:</label>
<div class="radio-group">
<label class="radio-item">
<input type="radio" name="inputType" value="url" checked />
- <span>视频链接 Video URL</span>
+ <span>输入链接 Paste a link</span>
</label>
<label class="radio-item">
<input type="radio" name="inputType" value="file" />
- <span>本地视频 Local Video</span>
+ <span>本地上传 Upload a file</span>
</label>
</div>
</div>
@@ -482,7 +486,7 @@
<input
type="url"
id="urlInput"
- placeholder="请输入有效的视频链接 Please enter a valid video URL"
+ placeholder="输入视频链接 Paste a link here"
class="form-input"
/>
</div>
@@ -507,7 +511,7 @@
<h3 class="card-title">2. 字幕设置 Subtitle Settings</h3>
<div class="form-row">
<div class="form-group">
- <label class="form-label">源语言<br />Source Language:</label>
+ <label class="form-label">源语言<br />Original Language:</label>
<select id="source-language" class="form-select">
<option value="zh_cn">简体中文</option>
<option value="en">English</option>
@@ -521,7 +525,7 @@
</div>
<div class="form-group">
<label class="form-label"
- >目标语言<br />Target Language:</label
+ >翻译成<br />Translate To:</label
>
<select id="target-language" class="form-select">
<option value="zh_cn">简体中文</option>
@@ -632,7 +636,7 @@
<div class="form-group">
<label class="checkbox-item">
<input type="checkbox" id="bilingual-toggle" checked />
- <span>启用双语字幕 Enable Bilingual Subtitles</span>
+ <span>启用双语字幕 Bilingual Subtitles</span>
</label>
<select
id="bilingual-position"
@@ -640,10 +644,10 @@
style="width: 200px; margin-left: 16px"
>
<option value="top">
- 翻译后字幕在上方 Translated Subtitles on Top
+ 翻译在上 Translation Above
</option>
<option value="bottom">
- 翻译后字幕在下方 Translated Subtitles at Bottom
+ 翻译在下 Translation Below
</option>
</select>
</div>
@@ -651,18 +655,18 @@
<div class="form-group">
<label class="checkbox-item">
<input type="checkbox" id="filler-filter-toggle" checked />
- <span>启用语气词过滤 Enable Filler Word Filter</span>
+ <span>启用语气词过滤 Tone Word Filtering</span>
</label>
</div>
</div>
<!-- 配音设置区域 -->
<div class="card">
- <h3 class="card-title">3. 配音设置 Voice Dubbing Settings</h3>
+ <h3 class="card-title">3. 配音设置 Dubbing Settings </h3>
<div class="form-group">
<label class="checkbox-item">
<input type="checkbox" id="voiceover-toggle" />
- <span>启用配音 Enable Voice Dubbing</span>
+ <span>启用配音 Apply Dubbing</span>
</label>
<input
type="text"
@@ -675,7 +679,7 @@
</div>
<div class="form-group">
<label class="form-label"
- >音色克隆样本<br />Voice Clone Sample:</label
+ >选择音色克隆样本<br />Select Voice Clone Sample:</label
>
<input
type="file"
@@ -685,7 +689,7 @@
style="width: 300px"
/>
<span class="hint"
- >仅支持阿里云TTS Only supports Aliyun TTS</span
+ >(Aliyun TTS Supported)</span
>
</div>
</div>
@@ -693,12 +697,12 @@
<!-- 视频合成设置 -->
<div class="card">
<h3 class="card-title">
- 4. 视频合成设置 Video Synthesis Settings
+ 4. 视频合成设置 Composition Settings
</h3>
<div class="form-group">
<label class="checkbox-item">
<input type="checkbox" id="embed-subtitle-toggle" />
- <span>合成视频 Synthesize Video</span>
+ <span>合成 Composite</span>
</label>
<select
id="embed-subtitle"
@@ -706,10 +710,10 @@
style="width: 200px; margin-left: 16px"
disabled
>
- <option value="horizontal">横屏视频 Horizontal Video</option>
- <option value="vertical">竖屏视频 Vertical Video</option>
+ <option value="horizontal">横屏输出 Landscape(16:9)</option>
+ <option value="vertical">竖屏输出 Portrait(9:16)</option>
<option value="all">
- 横屏+竖屏视频 Horizontal + Vertical Video
+ 横屏+竖屏 (Landscape+Portrait)
</option>
</select>
</div>
@@ -738,7 +742,7 @@
<!-- 执行按钮 -->
<div class="action-area">
<button type="button" id="executeButton" class="btn-primary">
- 开始任务 Start Task
+ 开始翻译 Start Translating
</button>
</div>