### Setup and Check Translation Source: https://github.com/php/doc-ru/blob/master/CONTRIBUTING.md Clone the necessary repositories and run commands to configure and render the documentation for local viewing. ```bash # Настройка git clone https://github.com/php/phd.git git clone https://github.com/php/doc-base.git git clone https://github.com/php/doc-ru.git ru # Проверка изменений php doc-base/configure.php --with-lang=ru php phd/render.php --docbook doc-base/.manual.xml --package PHP --format xhtml # Откройте output/php-chunked-xhtml/ в браузере. ``` -------------------------------- ### Example Git Diff Output Source: https://github.com/php/doc-ru/blob/master/CONTRIBUTING.md This diff output shows a change in the description of the 'in-array' function, illustrating how to identify and apply translation updates. ```diff --- a/reference/array/functions/in-array.xml +++ b/reference/array/functions/in-array.xml @@ -14,7 +14,7 @@ boolstrict&false; - Searches haystack for needle using loose comparison + Searches for needle in haystack using loose comparison unless strict is set. ``` -------------------------------- ### Directory Structure for Translation Source: https://github.com/php/doc-ru/blob/master/CONTRIBUTING.md To track changes, clone the doc-base repository one level above the doc-en and doc-ru repositories. Ensure language folders do not have the 'doc-' prefix. ```bash ├── doc-base/ ├── en/ └── ru/ ``` -------------------------------- ### View Git Diff for Translation Changes Source: https://github.com/php/doc-ru/blob/master/CONTRIBUTING.md Use this command to view the differences between two specific commit hashes in a file. The first hash is the current EN-Revision, and the second is the latest English version's hash. ```bash git --no-pager diff 8b5940cadeb4f1c8492f4a7f70743a2be807cf39 68a9c82e06906a5c00e0199307d87dd3739f719b reference/array/functions/in-array.xml ``` -------------------------------- ### XML Declaration and Revision Comments Source: https://github.com/php/doc-ru/blob/master/CONTRIBUTING.md Each Russian documentation file must begin with an XML declaration followed by specific comments indicating the EN-Revision hash and review status. ```xml ``` -------------------------------- ### Generate Translation Revision Check Source: https://github.com/php/doc-ru/blob/master/CONTRIBUTING.md Run this command in the terminal to generate an HTML file for checking translation revisions. Open 'revcheck.html' in a browser to view outdated files. ```bash php doc-base/scripts/revcheck.php ru > revcheck.html ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.