PHPackages                             markocupic/contao-php2xliff - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. markocupic/contao-php2xliff

ActiveContao-bundle[Localization &amp; i18n](/categories/localization)

markocupic/contao-php2xliff
===========================

Create XLIFF files from contao php language files

1.1.2(3y ago)21541GPL-3.0-or-laterPHPPHP ^8.1

Since Dec 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/markocupic/contao-php2xliff)[ Packagist](https://packagist.org/packages/markocupic/contao-php2xliff)[ RSS](/packages/markocupic-contao-php2xliff/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (7)Versions (21)Used By (0)

[![](docs/logo.png)](https://github.com/markocupic)

Generate "XLIFF translation files" from "PHP array translation files"
=====================================================================

[](#generate-xliff-translation-files-from-php-array-translation-files)

This little handy Contao backend extension simply converts contao php translation files into their xliff (\*.xlf) pendants. The newly generated files will be stored side by side to the already existing php files. Already existing \*.xlf files will be overwritten.

[![Backend](docs/screenshot_backend_2.png)](docs/screenshot_backend_2.png)[![Backend](docs/screenshot_backend_1.png)](docs/screenshot_backend_1.png)

Changing the source language
============================

[](#changing-the-source-language)

The source language for all Contao Core XLIFF files is English (en). If you like to change this setting you have to do this in your project config in `config/config.yml`.

```
# config/config.yml
markocupic_contao_php2xliff:
  sourceLanguage: it # Switch the source language to Italian
```

Transifex hints
===============

[](#transifex-hints)

### Install

[](#install)

Navigate to your project root. Then run:

```
git clone http://code.transifex.com/transifex-client

```

Navigate to newly created transifex-client directory and install [transifex-client](https://docs.transifex.com/client/installing-the-client#installing-the-client-from-source).

```
cd transifex-client
py setup.py install

```

### Initialize and config

[](#initialize-and-config)

Navigate to the repository root e.g. `cd vendor/vendorname/bundlename`Init transifex `tx init`. Transifex will create a basic config file in `vendor/vendorname/bundlename/.tx`Edit the config file and add entries for each translation file.

Use `markocupic/contao-php2xliff` to generate xliff translation files from Contao PHP array translation files.

### Push

[](#push)

Upload/Update source files (force overriding): `tx push -s -f`

Upload/Update translations files (force overriding): `tx push -t -f`

Or upload/update both (force overriding): `tx push -s -t -f`

[Transifex Push Documentation](https://docs.transifex.com/client/push)

### Pull

[](#pull)

Pull source and translation files (force overriding): `tx pull -s -f`

Pull translation files only (force overriding): `tx pull -t -f`

[Transifex Pull Documentation](https://docs.transifex.com/client/pull)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~24 days

Recently: every ~76 days

Total

20

Last Release

1127d ago

PHP version history (2 changes)1.0PHP ^7.4||^8.0

1.0.16PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1525166?v=4)[Marko Cupic](/maintainers/markocupic)[@markocupic](https://github.com/markocupic)

---

Top Contributors

[![markocupic](https://avatars.githubusercontent.com/u/1525166?v=4)](https://github.com/markocupic "markocupic (30 commits)")

---

Tags

translationcontaoxliff converterxlf converter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/markocupic-contao-php2xliff/health.svg)

```
[![Health](https://phpackages.com/badges/markocupic-contao-php2xliff/health.svg)](https://phpackages.com/packages/markocupic-contao-php2xliff)
```

###  Alternatives

[terminal42/contao-changelanguage

ChangeLanguage extension for Contao Open Source CMS

47240.6k16](/packages/terminal42-contao-changelanguage)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[terminal42/contao-node

Node bundle for Contao Open Source CMS

3172.5k4](/packages/terminal42-contao-node)[terminal42/dcawizard

dcaWizard extension for Contao Open Source CMS

10370.7k15](/packages/terminal42-dcawizard)[terminal42/dc_multilingual

A multilingual DC driver storing the translations in the same table for Contao Open Source CMS

1787.2k14](/packages/terminal42-dc-multilingual)[terminal42/contao-mp_forms

An extension for Contao Open Source CMS to create multi steps forms using the form generator

2633.7k5](/packages/terminal42-contao-mp-forms)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
