Skip to content
Open
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
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The tree often has other people's uncommitted edits. Do not revert or reformat f

## Languages

The window speaks English, zh-TW, zh-CN, French, Spanish and Russian (docs/I18N.md). UI text goes through `t` / `<Trans>` from `@/i18n` with its English in `src/i18n/messages/en/<namespace>.ts` and a translation in every other language; launcher messages that reach the window are marked `msg!` / `msg_str!` in Rust and translated in `src-tauri/locales/*/*.json`. `pnpm i18n:check` and `cargo test` fail on a missing translation or English left in UI code. Logs, problem reports and the agent tool stay English.
The window speaks English, zh-TW, zh-CN, French, Spanish, Russian and Brazilian Portuguese (docs/I18N.md). UI text goes through `t` / `<Trans>` from `@/i18n` with its English in `src/i18n/messages/en/<namespace>.ts` and a translation in every other language; launcher messages that reach the window are marked `msg!` / `msg_str!` in Rust and translated in `src-tauri/locales/*/*.json`. `pnpm i18n:check` and `cargo test` fail on a missing translation or English left in UI code. Logs, problem reports and the agent tool stay English.

## Layout

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ If you change a Tauri command or a settings field, update `src/lib/types.ts` and
- **Respect the safety model.** The launcher runs other people's code, so new features must warn before they run code, change files outside the project's own folder, or act on the player's behalf. Saves must never be read, moved or deleted by update, rollback or cleanup code.
- **Keep warnings honest.** If a feature can cause harm, say what could happen in the UI and in the docs, and require the player to accept it.
- **Keep system differences in one place.** Code that differs between Windows, macOS and Linux goes in `src-tauri/src/platform/` (`mod.rs` dispatches to `windows.rs`, `macos.rs` and `linux.rs`), so other modules need no `#[cfg]`. A change must still build and test on all three.
- **Translate UI text.** The window speaks English, zh-TW, zh-CN, French, Spanish and Russian. New UI text goes through `t` / `<Trans>` from `@/i18n`, and launcher messages that reach the window are marked `msg!` / `msg_str!` in Rust. Every language needs a translation, and `pnpm i18n:check` and `cargo test` fail if one is missing. See [docs/I18N.md](docs/I18N.md).
- **Translate UI text.** The window speaks English, zh-TW, zh-CN, French, Spanish, Russian and Brazilian Portuguese. New UI text goes through `t` / `<Trans>` from `@/i18n`, and launcher messages that reach the window are marked `msg!` / `msg_str!` in Rust. Every language needs a translation, and `pnpm i18n:check` and `cargo test` fail if one is missing. See [docs/I18N.md](docs/I18N.md).
- **Dependencies** need a reason and a licence compatible with GPL-3.0-or-later. Say which in the pull request.
- **Generated files** (`tsconfig.tsbuildinfo`, `.ci/`, build output) do not belong in commits.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ chmod +x VILauncher_*_amd64.AppImage
- **Activity log.** Full Git and Cargo output, copyable and exportable. Each job's log is also kept on disk.
- **AI-agent access (off by default).** Lets an AI agent read logs and, after you confirm, apply a patch and run the project's build. See [Agent tools](#agent-tools).
- **Screenshot mode.** Hides names, paths, notes and logs for sharing pictures.
- **Languages.** English, 繁體中文, 简体中文, Français, Español and Русский: the system's language by default, or your choice under *Settings → Appearance → Language*. Project names and notes, and build logs, stay as written. See [docs/I18N.md](docs/I18N.md) to add or improve a language.
- **Languages.** English, 繁體中文, 简体中文, Français, Español, Русский and Português (Brasil): the system's language by default, or your choice under *Settings → Appearance → Language*. Project names and notes, and build logs, stay as written. See [docs/I18N.md](docs/I18N.md) to add or improve a language.

## Screenshots

Expand Down
34 changes: 32 additions & 2 deletions docs/I18N.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# Languages (i18n)

VILauncher speaks **English** (`en`, the source), **Traditional Chinese** (`zh-TW`),
**Simplified Chinese** (`zh-CN`), **French** (`fr`), **Spanish** (`es`) and **Russian** (`ru`).
**Simplified Chinese** (`zh-CN`), **French** (`fr`), **Spanish** (`es`), **Russian** (`ru`) and
**Brazilian Portuguese** (`pt-BR`).

## Which language is shown

1. The player's choice in **Settings → Appearance → Language**, saved as `language` in
`%APPDATA%\VILauncher\settings.json` (`null`: follow the system).
2. Otherwise the system's: the window sends `navigator.languages` at start
(`set_system_languages`), and the first one VILauncher speaks wins. `zh-TW`, `zh-HK`,
`zh-MO` and `zh-Hant-*` mean Traditional Chinese; other `zh` tags Simplified.
`zh-MO` and `zh-Hant-*` mean Traditional Chinese; other `zh` tags Simplified. Every `pt` tag
means Brazilian Portuguese, the only Portuguese there is.
3. Otherwise English.

The launcher decides (`src-tauri/src/i18n.rs`, `resolve`) and sends the result as the
Expand Down Expand Up @@ -195,3 +197,31 @@ placeholders side by side, and don't build a message from pieces that are transl
| AI agent access | Acceso de agentes IA |
| Screenshot mode | Modo captura |
| legal notice / warning | aviso legal / advertencia |

## Style for the Brazilian Portuguese translations

- Short, plain interface wording; address the player as *você*. Buttons in the infinitive (`Instalar`, `Jogar`).
- Curly quotes `“…”` for quoted names, ellipsis `…`. No article before file names or commands.
- Words Brazilian players use in English stay in English: launcher, save, checkpoint, shader, log, patch, commit, branch, ray tracing, upscaling.
- A label named inside a sentence is written exactly as the button says it (`Corrigir e verificar`, `Obter arquivos da NVIDIA`).
- Keep labels inside fixed-width controls (`shell.filter.tiers`, `settings.disk` table headers) short.
- Same term everywhere:

| English | pt-BR |
| --- | --- |
| project / library | projeto / biblioteca |
| build (verb) / build (noun) | compilar / compilação (`Compilado` in compact table headers) |
| previous build | compilação anterior (`Anterior` in compact table headers) |
| taken down / tracked / watchlist | retirado / seguidos / de olho |
| launch arguments / launch switches | argumentos de inicialização / chaves de inicialização |
| preset | predefinição |
| save (game) / checkpoint | save / checkpoint |
| shader cache / warm up shaders | cache de shaders / preparar shaders |
| graphics card / video memory | placa de vídeo / memória de vídeo |
| frame rate / frame generation | taxa de quadros / geração de quadros |
| memory saver | economia de memória |
| add-on | complemento |
| Fix and verify | Corrigir e verificar |
| Screenshot mode | Modo captura de tela |
| AI agent access | agentes de IA |
| legal notice / warning | aviso legal / aviso |
18 changes: 18 additions & 0 deletions src-tauri/locales/pt-BR/core.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"Unknown language: {tag}": "Idioma não suportado: {tag}",
"Installed {when}": "Instalado {when}",
"Updated {when}": "Atualizado {when}",
"just now": "agora mesmo",
"1 minute ago": "há 1 minuto",
"{minutes} minutes ago": "há {minutes} minutos",
"1 hour ago": "há 1 hora",
"{hours} hours ago": "há {hours} horas",
"1 day ago": "há 1 dia",
"{days} days ago": "há {days} dias",
"New install · Not run yet": "Nova instalação · Ainda não executado",
"Updated · Not run yet": "Atualizado · Ainda não executado",
"C++ build tools": "ferramentas de compilação do C++",
"Xcode Command Line Tools": "Xcode Command Line Tools",
"C compiler": "compilador C",
"VIPortLive team": "equipe VIPortLive"
}
Loading