Skip to content

Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.

Rewrite character library wording: character not person, clearer view labels

Bowen Xue774a585540a5
diff --git a/web/cast_generate.js b/web/cast_generate.js
index e7a7524..c959787 100644
--- a/web/cast_generate.js
+++ b/web/cast_generate.js
@@ -124,7 +124,7 @@ export function mountCastGenerate({container, api, text, t = text, viewURL, onSt
const side = el('div', 'fv-cg-side');
const foot = el('div', 'fv-cg-foot');
const field = el('textarea', 'fv-cg-text');
- field.placeholder = tr('Describe the character', '描述人物');
+ field.placeholder = tr('Describe the character', '描述角色');
field.setAttribute('aria-label', field.placeholder);
field.maxLength = 1000;
const note = el('div', 'fv-cg-note'); note.setAttribute('role', 'status');
@@ -207,7 +207,7 @@ export function mountCastGenerate({container, api, text, t = text, viewURL, onSt
function begin() {
if (!field.value.trim()) {
- attention = tr('Describe the character first.', '请先描述人物。');
+ attention = tr('Describe the character first.', '请先描述角色。');
render(); field.focus();
return;
}
diff --git a/web/cast_library.js b/web/cast_library.js
index 3d94d09..bff17f7 100644
--- a/web/cast_library.js
+++ b/web/cast_library.js
@@ -42,7 +42,7 @@ export function createCastLibrary({api, text, viewURL, uploadOne, onChange = ()
const data = await response.json().catch(() => null);
if (!response.ok) {
const error = new Error(data?.error?.message || (typeof data?.error === 'string' && data.error)
- || data?.message || response.statusText || text('Request failed', '请求失败'));
+ || data?.message || response.statusText || text('Did not finish. Try again.', '没有完成,请重试。'));
error.status = response.status; throw error;
}
return data;
@@ -97,7 +97,7 @@ export function createCastLibrary({api, text, viewURL, uploadOne, onChange = ()
const closeButton = button('fv-cast-close', '×', () => close());
closeButton.setAttribute('aria-label', text('Close', '关闭')); top.append(title, closeButton);
const name = el('input', 'fv-cast-name'); name.type = 'text'; name.maxLength = 120;
- name.placeholder = text('Name', '姓名'); name.setAttribute('aria-label', text('Name', '姓名'));
+ name.placeholder = text('Name', '名字'); name.setAttribute('aria-label', text('Name', '名字'));
name.oninput = () => sync();
name.onkeydown = event => { if (event.key === 'Enter') event.preventDefault(); };
const tabs = el('div', 'fv-cast-tabs'); tabs.setAttribute('role', 'tablist');
@@ -188,7 +188,7 @@ export function createCastLibrary({api, text, viewURL, uploadOne, onChange = ()
for (let index = 0; index < 6; index++) {
const slot = el('div', 'fv-cast-slot' + (index ? '' : ' fv-cast-front'));
const input = el('input'); input.type = 'file'; input.accept = 'image/*'; input.hidden = true;
- const label = index ? text(`View image ${index}`, `视角图片 ${index}`) : text('Front image', '正面图片');
+ const label = index ? text(`View ${index}`, `视角 ${index}`) : text('Front image', '正面图片');
const choose = button('fv-cast-choose', '', () => input.click()); choose.setAttribute('aria-label', label);
const remove = button('fv-cast-remove', '×', () => { release(index); paint(index); });
remove.setAttribute('aria-label', text('Remove image', '移除图片'));
@@ -238,7 +238,7 @@ export function createCastLibrary({api, text, viewURL, uploadOne, onChange = ()
}));
const frontNeeded = active === 'ai' || !frontless;
if (!pictures.length || pictures.length > 6 || (frontNeeded && !pictures.some(picture => picture.label === 'front')))
- throw new Error(text('Choose a front image and up to five views', '请选择正面图片,最多五张视角图片'));
+ throw new Error(text('Choose one front image and up to 5 more angles', '选一张正面图片,再加最多 5 张其他角度的图片'));
const images = [];
for (const picture of pictures) {
if (closed) return;
diff --git a/web/prompt_references.js b/web/prompt_references.js
index a8dda57..e15dae3 100644
--- a/web/prompt_references.js
+++ b/web/prompt_references.js
@@ -199,7 +199,7 @@ export function attachReferencePicker(input, {items, t = en => en, view, host, a
if (!matches.length) {
const empty = document.createElement('div'); empty.className = 'fv-reference-empty';
empty.textContent = invalid ? t('Check your media selection.', '请检查素材用途是否冲突。')
- : available.length || everyone.length ? t('No matching references', '没有匹配的素材') : t('Add reference media to use @', '添加参考素材后即可使用 @');
+ : available.length || everyone.length ? t('No matching characters or media', '没有匹配的角色或素材') : t('Add reference media to use @', '添加参考素材后即可使用 @');
list.append(empty);
if (!available.length && !everyone.length && !invalid && addMedia) {
const add = document.createElement('button'); add.type = 'button'; add.textContent = t('Add media', '添加素材');