Skip to content

docs: update translations#2216

Open
github-actions[bot] wants to merge 1 commit intomainfrom
translations/22276497197
Open

docs: update translations#2216
github-actions[bot] wants to merge 1 commit intomainfrom
translations/22276497197

Conversation

@github-actions
Copy link

Translation updates for: extension-workers.md .

Copy link
Contributor

@henderkes henderkes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@AlliBalliBaba
Copy link
Contributor

Thinking about adding german or italian docs, so I can also give a LGMT 😅

@henderkes
Copy link
Contributor

Yes, yes I absolutely speal all (or any) of the translated languages 😄

It looks fine in structure, the rest we can't really verify anyhow. I've thought about adding German, but I know myself well-enough that I wouldn't maintain it.

@AlliBalliBaba
Copy link
Contributor

AlliBalliBaba commented Feb 24, 2026

I tried generating the German docs locally. The translations look largely fine to me. It's a bit weird sometimes on technical terms and literal translations of English phrases, but it's worlds better than no or outdated docs.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds localized documentation pages for “Extension Workers” and normalizes a formatting issue in existing translated config docs.

Changes:

  • Add new translated extension-workers.md pages for TR/RU/PT-BR/JA/FR/CN.
  • Fix the first-line header formatting in docs/tr/config.md and docs/ru/config.md (removes an odd leading character / restores normal heading).

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
docs/tr/extension-workers.md New Turkish translation of Extension Workers documentation
docs/tr/config.md Normalizes the top-level heading formatting
docs/ru/extension-workers.md New Russian translation of Extension Workers documentation
docs/ru/config.md Normalizes the top-level heading formatting
docs/pt-br/extension-workers.md New Brazilian Portuguese translation of Extension Workers documentation
docs/ja/extension-workers.md New Japanese translation of Extension Workers documentation
docs/fr/extension-workers.md New French translation of Extension Workers documentation
docs/cn/extension-workers.md New Chinese translation of Extension Workers documentation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +156 to +171
func init() {
workerHandle = frankenphpCaddy.RegisterWorkers(
"my-worker", "worker.php", 2,

// 服务器启动(全局)
frankenphp.WithWorkerOnServerStartup(func() {
fmt.Println("扩展:服务器正在启动...")
}),

// 线程就绪(每线程)
// 注意:此函数接受一个表示线程 ID 的整数
frankenphp.WithWorkerOnReady(func(id int) {
fmt.Printf("扩展:Worker 线程 #%d 已就绪。\n", id)
}),
)
}
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this example, workerHandle is assigned but not declared anywhere in the snippet, while earlier examples use the global worker variable. This makes the example inconsistent and non-compilable as written; either declare workerHandle (with the correct type) or reuse the existing worker handle consistently.

Copilot uses AI. Check for mistakes.
Comment on lines +156 to +170
func init() {
workerHandle = frankenphpCaddy.RegisterWorkers(
"my-worker", "worker.php", 2,

// Sunucu Başlatma (Genel)
frankenphp.WithWorkerOnServerStartup(func() {
fmt.Println("Uzantı: Sunucu başlıyor...")
}),

// İş Parçacığı Hazır (İş Parçacığı Başına)
// Not: Fonksiyon, İş Parçacığı Kimliğini temsil eden bir tamsayı kabul eder
frankenphp.WithWorkerOnReady(func(id int) {
fmt.Printf("Uzantı: İşçi iş parçacığı #%d hazır.\n", id)
}),
)
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this example, workerHandle is assigned but not declared anywhere in the snippet, while earlier examples use the global worker variable. This makes the example inconsistent and non-compilable as written; either declare workerHandle (with the correct type) or reuse the existing worker handle consistently.

Copilot uses AI. Check for mistakes.
Comment on lines +156 to +171
func init() {
workerHandle = frankenphpCaddy.RegisterWorkers(
"my-worker", "worker.php", 2,

// Запуск сервера (Глобальный)
frankenphp.WithWorkerOnServerStartup(func() {
fmt.Println("Extension: Server starting up...")
}),

// Поток готов (Для каждого потока)
// Примечание: Функция принимает целое число, представляющее ID потока
frankenphp.WithWorkerOnReady(func(id int) {
fmt.Printf("Extension: Worker thread #%d is ready.\n", id)
}),
)
}
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this example, workerHandle is assigned but not declared anywhere in the snippet, while earlier examples use the global worker variable. This makes the example inconsistent and non-compilable as written; either declare workerHandle (with the correct type) or reuse the existing worker handle consistently.

Copilot uses AI. Check for mistakes.
Comment on lines +156 to +171
func init() {
workerHandle = frankenphpCaddy.RegisterWorkers(
"my-worker", "worker.php", 2,

// Inicialização do Servidor (Global)
frankenphp.WithWorkerOnServerStartup(func() {
fmt.Println("Extensão: Servidor iniciando...")
}),

// Thread Pronta (Por Thread)
// Nota: A função aceita um inteiro representando o ID do Thread
frankenphp.WithWorkerOnReady(func(id int) {
fmt.Printf("Extensão: Thread worker #%d está pronta.\n", id)
}),
)
}
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this example, workerHandle is assigned but not declared anywhere in the snippet, while earlier examples use the global worker variable. This makes the example inconsistent and non-compilable as written; either declare workerHandle (with the correct type) or reuse the existing worker handle consistently.

Copilot uses AI. Check for mistakes.
Comment on lines +156 to +171
func init() {
workerHandle = frankenphpCaddy.RegisterWorkers(
"my-worker", "worker.php", 2,

// サーバー起動時 (グローバル)
frankenphp.WithWorkerOnServerStartup(func() {
fmt.Println("Extension: Server starting up...")
}),

// スレッド準備完了時 (スレッドごと)
// 注: この関数はスレッドIDを表す整数を受け入れます
frankenphp.WithWorkerOnReady(func(id int) {
fmt.Printf("Extension: Worker thread #%d is ready.\n", id)
}),
)
}
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this example, workerHandle is assigned but not declared anywhere in the snippet, while earlier examples use the global worker variable. This makes the example inconsistent and non-compilable as written; either declare workerHandle (with the correct type) or reuse the existing worker handle consistently.

Copilot uses AI. Check for mistakes.
Comment on lines +156 to +171
func init() {
workerHandle = frankenphpCaddy.RegisterWorkers(
"my-worker", "worker.php", 2,

// Démarrage du Serveur (Global)
frankenphp.WithWorkerOnServerStartup(func() {
fmt.Println("Extension : Démarrage du serveur...")
}),

// Thread Prêt (Par Thread)
// Note : La fonction accepte un entier représentant l'ID du Thread
frankenphp.WithWorkerOnReady(func(id int) {
fmt.Printf("Extension : Le thread worker #%d est prêt.\n", id)
}),
)
}
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this example, workerHandle is assigned but not declared anywhere in the snippet, while earlier examples use the global worker variable. This makes the example inconsistent and non-compilable as written; either declare workerHandle (with the correct type) or reuse the existing worker handle consistently.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants