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 |
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tauri-plugin-opener = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
ron = "0.8"
ureq = { version = "2.10", features = ["json"] }
ureq = { version = "2.10", features = ["json", "proxy-from-env"] }
url = "2"
ring = "0.17"
zip = { version = "9.8.2", default-features = false, features = ["deflate"] }
Expand Down
7 changes: 6 additions & 1 deletion src-tauri/locales/es/launcher.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"Enter an HTTP proxy URL with a host and port, such as http://127.0.0.1:7890, without credentials.": "Introduce una URL de proxy HTTP con host y puerto, como http://127.0.0.1:7890, sin credenciales.",
"This project was taken down, so it cannot be installed or updated. An installed copy can still be played.": "Este proyecto fue retirado, así que no puede instalarse ni actualizarse. Una copia ya instalada aún se puede jugar.",
"The game was not found on any drive. Choose its folder with Browse.": "No se encontró el juego en ninguna unidad. Elige su carpeta con Examinar.",
"{name} could not be reached: {error}.": "No se pudo conectar con {name}: {error}.",
Expand Down Expand Up @@ -166,5 +167,9 @@
"CrossOver was not found in Applications.": "No se encontró CrossOver en Aplicaciones.",
"The CrossOver bottle {bottle} was not found.": "No se encontró la botella de CrossOver {bottle}.",
"The Wine program {wine} is not there.": "El programa Wine {wine} no está ahí.",
"{program} is a Windows program. Choose a runner (CrossOver or Wine) in Settings under Windows builds on this Mac, or build the project from source on macOS.": "{program} es un programa de Windows. Elige un entorno (CrossOver o Wine) en Configuración, bajo Compilaciones de Windows en este Mac, o compila el proyecto desde el código fuente en macOS."
"{program} is a Windows program. Choose a runner (CrossOver or Wine) in Settings under Windows builds on this Mac, or build the project from source on macOS.": "{program} es un programa de Windows. Elige un entorno (CrossOver o Wine) en Configuración, bajo Compilaciones de Windows en este Mac, o compila el proyecto desde el código fuente en macOS.",
"No project was chosen.": "No se eligió ningún proyecto.",
"It is not installed by VILauncher.": "No está instalado por VILauncher.",
"There is no update for it.": "No hay ninguna actualización.",
"It has no shaders to warm up.": "No tiene shaders que precompilar."
}
7 changes: 6 additions & 1 deletion src-tauri/locales/fr/launcher.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"Enter an HTTP proxy URL with a host and port, such as http://127.0.0.1:7890, without credentials.": "Saisissez une URL de proxy HTTP avec un hôte et un port, comme http://127.0.0.1:7890, sans identifiants.",
"This project was taken down, so it cannot be installed or updated. An installed copy can still be played.": "Ce projet a été retiré : il ne peut être ni installé ni mis à jour. Une copie déjà installée reste jouable.",
"The game was not found on any drive. Choose its folder with Browse.": "Le jeu est introuvable sur tous les disques. Choisissez son dossier avec Parcourir.",
"{name} could not be reached: {error}.": "{name} est injoignable : {error}.",
Expand Down Expand Up @@ -166,5 +167,9 @@
"CrossOver was not found in Applications.": "CrossOver est introuvable dans Applications.",
"The CrossOver bottle {bottle} was not found.": "La bouteille CrossOver {bottle} est introuvable.",
"The Wine program {wine} is not there.": "Le programme Wine {wine} est introuvable.",
"{program} is a Windows program. Choose a runner (CrossOver or Wine) in Settings under Windows builds on this Mac, or build the project from source on macOS.": "{program} est un programme Windows. Choisissez un runner (CrossOver ou Wine) dans les réglages, sous « Fichiers Windows sur ce Mac », ou compilez le projet depuis les sources sous macOS."
"{program} is a Windows program. Choose a runner (CrossOver or Wine) in Settings under Windows builds on this Mac, or build the project from source on macOS.": "{program} est un programme Windows. Choisissez un runner (CrossOver ou Wine) dans les réglages, sous « Fichiers Windows sur ce Mac », ou compilez le projet depuis les sources sous macOS.",
"No project was chosen.": "Aucun projet n’a été choisi.",
"It is not installed by VILauncher.": "Il n’est pas installé par VILauncher.",
"There is no update for it.": "Aucune mise à jour n’est disponible.",
"It has no shaders to warm up.": "Il n’a pas de shaders à précompiler."
}
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