Skip to content

Translate guide introduction, getting started, key concepts and application structure to Spanish - #550

Merged
samdark merged 1 commit into
yiisoft:masterfrom
PedroFlores199:es-translation
Nov 22, 2026
Merged

samdark merged 1 commit into
yiisoft:masterfrom
PedroFlores199:es-translation

Conversation

@PedroFlores199

@PedroFlores199 PedroFlores199 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

This translates the first part of the Definitive Guide into Spanish. The Spanish .po files were mostly empty: 43 of 5,216 strings were translated, and 229 entries were fuzzy with unrelated matches. This PR completes one coherent block instead of the whole site.

Changes

  • Translated 29 Spanish .po files in _translations/po/es/ to 100% (1,446 strings, 1,411 of them new or previously fuzzy):
    • index.md (home page), guide/index.md (table of contents) and guide/glossary.md
    • Introduction: intro/what-is-yii.md, intro/upgrade-from-v1.md, intro/upgrade-from-v2.md
    • Getting started: all 9 pages in guide/start/
    • Key concepts: all 6 pages in guide/concept/
    • Application structure and packages: all 8 pages in guide/structure/
  • Fixed a few existing Spanish strings: a translated alert marker ([!Nota] → [!NOTE]), an outdated code block in the aliases page, PSR-0 → PSR-4 in the autoloading page, and some typos.
  • Updated the es locale in src/.vitepress/config.js: the sidebar now matches the English structure and uses the translated page titles. It adds the missing pages and sections and removes links to guide/structure/domain and guide/structure/service, which moved to the Cookbook. It also adds the title, outline, doc footer, last updated and search labels, as other locales do.

Notes

  • Translations are edited in the .po files; src/es is not regenerated here. The Update translations workflow cannot push to a fork branch, so that check is expected to fail on this PR; the workflow regenerates src/es on master after merge.
  • Code blocks are unchanged. Only English comments inside them are translated, and strings printed by the code stay in English.
  • GitHub alert markers ([!NOTE], [!TIP], ...) and the TODO markers in the table of contents are kept as they are.
  • The glossary anchors that point to translated headings are updated (#contenedor-di, #parametros, #proveedores-de-servicios). Anchors to pages that are still untranslated keep their English slugs.
  • The rest of the guide, the Cookbook and Internals are still untranslated in Spanish and can follow in separate PRs.

Summary by Sourcery

Complete the Spanish translation of the first major block of the Yii Definitive Guide and update its localized navigation and interface.

New Features:

  • Complete Spanish translations for the introduction, getting started, key concepts, application structure, glossary, guide index, and home page documentation.
  • Add Spanish navigation and interface labels for the translated documentation and align the locale sidebar with the current site structure.

Bug Fixes:

  • Correct outdated Spanish documentation references, alert markers, anchors, terminology, and typographical errors.

Enhancements:

  • Move domain and service documentation links to their cookbook locations and expand the Spanish sidebar to include current guide, cookbook, helper, testing, tutorial, deployment, and internal documentation sections.

Documentation:

  • Expand Spanish documentation coverage across 29 PO files, completing 1,446 strings in the selected guide sections.

@sourcery-ai

sourcery-ai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Review the Spanish VitePress locale configuration, sidebar structure and translated interface labels.

  • src/.vitepress/config.js L433-451, L464-484, L548-576 (+12 small edits)

Documentation

Review the completed Spanish translations together as one documentation block, including the glossary and guide navigation pages.

  • _translations/po/es/guide_concept_aliases.md.po L75-89, L173-186 (+22 small edits)
  • _translations/po/es/guide_concept_autoloading.md.po L10-76 (6 small edits)
  • _translations/po/es/guide_concept_configuration.md.po L194-247, L595-627, L830-867 (+78 small edits)
  • _translations/po/es/guide_concept_di-container.md.po L76-94, L141-170, L649-670 (+66 small edits)
  • _translations/po/es/guide_concept_events.md.po L175-188, L326-334, L365-377 (+34 small edits)
  • _translations/po/es/guide_concept_immutability.md.po L51-59, L149-220, L289-312 (+16 small edits)
  • _translations/po/es/guide_glossary.md.po L23-29, L34-40, L45-51 (+85 small edits)
  • _translations/po/es/guide_index.md.po L31-37, L114-120, L202-208 (+111 small edits)
  • _translations/po/es/guide_intro_upgrade-from-v1.md.po L633-655, L1027-1046, L1081-1103 (+158 small edits)
  • _translations/po/es/guide_intro_upgrade-from-v2.md.po L891-912, L1232-1259, L1422-1438 (+193 small edits)
  • _translations/po/es/guide_intro_what-is-yii.md.po L100-107 (+23 small edits)
  • _translations/po/es/guide_start_creating-project.md.po L72-75, L91-94 (+18 small edits)
  • _translations/po/es/guide_start_databases.md.po L810-862, L956-1045, L1593-1668 (+104 small edits)
  • _translations/po/es/guide_start_demo-apps.md.po L10-61 (9 small edits)
  • _translations/po/es/guide_start_forms.md.po L297-352, L439-497, L554-582 (+52 small edits)
  • _translations/po/es/guide_start_gii.md.po L10-11, L23, L32-33
  • _translations/po/es/guide_start_hello.md.po L115-141, L188-206, L313-338 (+32 small edits)
  • _translations/po/es/guide_start_looking-ahead.md.po L10-11, L23, L28
  • _translations/po/es/guide_start_prerequisites.md.po L10-98 (16 small edits)
  • _translations/po/es/guide_start_workflow.md.po L62-66, L157-182, L234-247 (+31 small edits)
  • _translations/po/es/guide_structure_action.md.po L96-105, L157-177, L234-257 (+16 small edits)
  • _translations/po/es/guide_structure_application.md.po L10-48 (7 small edits)
  • _translations/po/es/guide_structure_designing-packages.md.po L499-531, L662-683, L826-848 (+88 small edits)
  • _translations/po/es/guide_structure_entry-script.md.po L73-79, L115-144, L197-237 (+19 small edits)
  • _translations/po/es/guide_structure_middleware.md.po L140-155, L219-237, L301-324 (+37 small edits)
  • _translations/po/es/guide_structure_module.md.po L282-304, L347-370, L422-437 (+53 small edits)
  • _translations/po/es/guide_structure_overview.md.po L131-146 (+25 small edits)
  • _translations/po/es/guide_structure_package.md.po L192-196, L208-213, L230-236 (+36 small edits)
  • _translations/po/es/index.md.po L10-98 (15 small edits)

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="src/.vitepress/config.js" line_range="296" />
<code_context>
             }
         },
         es: {
+            title: 'Documentación de Yii3',
             label: 'Español',
             lang: 'es',
</code_context>
<issue_to_address>
**Alert labels remain English**

When a Spanish guide page renders an alert block, the translated guide pages retain alert markers, but no Spanish `blocktypes.json` provides their label translations, so readers see English alert labels on Spanish pages.

Add a Spanish `blocktypes.json` with translations for Note, Tip, Important, Warning, and Caution.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: src/.vitepress/config.js:296


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread src/.vitepress/config.js
}
},
es: {
title: 'Documentación de Yii3',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Medium · Alert labels remain English

When a Spanish guide page renders an alert block, the translated guide pages retain alert markers, but no Spanish blocktypes.json provides their label translations, so readers see English alert labels on Spanish pages.

Add a Spanish blocktypes.json with translations for Note, Tip, Important, Warning, and Caution.

Prompt for AI agents
In `src/.vitepress/config.js` at line 296:

**Alert labels remain English**

When a Spanish guide page renders an alert block, the translated guide pages retain alert markers, but no Spanish `blocktypes.json` provides their label translations, so readers see English alert labels on Spanish pages.

Add a Spanish `blocktypes.json` with translations for Note, Tip, Important, Warning, and Caution.

From src/internals/014-docs.md L74-87:

each guide translation should have a `blocktypes.json` file containing the translations

@samdark
samdark merged commit 15a8129 into yiisoft:master Nov 22, 2026
6 of 7 checks passed
@samdark

samdark commented Nov 22, 2026

Copy link
Copy Markdown
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants