georgringer/crowdin

Crowdin integration for TYPO3

Installs: 17

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 0

Open Issues: 4

Type:typo3-cms-extension

dev-analysis-qBmpQ6 2019-08-29 03:27 UTC

This package is auto-updated.

Last update: 2021-03-21 13:44:23 UTC


README

Integration of crowdin into TYPO3 with the following features:

  • Inplace editing
  • Fill Crowdin with all translation provided by the translation server
  • Package translations to follow the structure required by TYPO3 sites

Install

Install this extension + akeneo/crowdin-api (dev-master)

Usage

Crowdin In-Context Localization

In-Context Localization

To enable in-context localization: Switch your user to Language Crowdin In-Context Localization

API-Reference / Commands

Convert XML to XLF

# Arguments: file name
./bin/typo3 crowdin:convertXml2Xlf ./path-to-a-xml-file.xml

Set API Key

The API key is added to the registry, so it must only be set once.

# Arguments: project-identifier api-key
./bin/typo3 crowdin:setApiCredentials typo3-cms 123456

By using the following command you can switch between projects without readding the API key again

# Arguments: project-identifier
./bin/typo3 crowdin:switchApiCredentials another-project

Extract core translations + upload to Crowdin

This command will download translations from translation server and upload those to Crowdin

Instead of a single extension name, also '*' can be used!

# Arguments: extension-key language version
./bin/typo3 crowdin:downloadPootleCoreTranslation about de 9

Extract extension translations + upload to Crowdin

This command will download translations from translation server and upload those to Crowdin

# Arguments: extension-key language
./bin/typo3 crowdin:downloadPootleExtTranslation news de

Download languages from Crowdin

Download language packs from Crowdin and create single zip packages

# Arguments: language branch copyToL10n
./bin/typo3 crowdin:downloadCrowdinTranslations de master 0

Status

Get translation status

./bin/typo3 crowdin:status

Result

 ------------------------------- --------------
  name                            Progress (%)
 ------------------------------- --------------
  Croatian - hr                   69
  Czech - cs                      22
  Danish - da                     94
  Dutch - nl                      82
  French - fr                     50 / 49
  German - de                     92
  Greek - el                      5
  Hindi - hi                      50
  Italian - it                    46
  Japanese - ja                   8
  Khmer - km                      40
  Portuguese, Brazilian - pt-BR   0
  Russian - ru                    75
  Spanish - es-ES                 0
  Thai - th                       43
 ------------------------------- --------------

Cleanup

Cleanup the temporary files

./bin/typo3 crowdin:clean