QuantEcon / QuantEcon/lecture-python-programming.fa

_admonition/gpu.md is present but untranslated (still English)

未关闭 适合新手
#138 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Python
星标
1
派生
1
平均合并
10 小时 5 分钟
30 天内合并 PR
5

描述

lectures/_admonition/gpu.md in this repo is byte-identical to the English source — it was seeded but never translated. It is included by three lectures (autodiff, jax_intro, numpy_vs_numba_vs_jax), so the English GPU admonition renders inside three otherwise-Persian pages.

For comparison, .zh-cn has a properly translated copy, and .fr was missing the file entirely (fixed in .fr#14).

Why this needs its own issue

A strict build will not catch it. The include resolves, so there is no warning and no error — -W (added to this repo's ci.yml in #137) only catches the missing-file case, not the untranslated-content case. Nothing in the current pipeline flags an asset that exists but was never translated.

That is worth noting beyond this one file: shared assets under lectures/_admonition/ sit outside the set that translation sync moves, so they are neither synced nor reviewed. See action-translation#117 for the same class on quant-econ.bib.

Fix

Translate the admonition body into Persian, keeping the directive header and :class: warning option line unchanged, and keeping the Google Colab URL and the literal UI label intact.

Current content:

:class: warning

This lecture was built using a machine with access to a GPU --- although it will also run without one.

[Google Colab](https://colab.research.google.com/) has a free tier with GPUs
that you can access as follows:

1. Click on the "play" icon top right
2. Select Colab
3. Set the runtime environment to include a GPU

Found while enabling strict builds across the programming trio (QuantEcon/project-translation#9).

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

打开 lectures/_admonition/gpu.md,并将其与英文源文件和已翻译的 .zh-cn 副本进行比较。将 admonition 正文翻译成波斯语,同时保留 directive header、warning class、Google Colab URL 和字面 UI 标签;验证结果在 autodiff、jax_intro 和 numpy_vs_numba_vs_jax 中能够正确渲染。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
documentation, localization
Issue 类型
文档
难度
2/5
预计耗时
1-3 小时
活跃度
冷清
描述清晰度
描述清楚
新手友好度
78/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。