PHPackages                             neiluj/ez-translations-helper - 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. neiluj/ez-translations-helper

ActiveLibrary[Localization &amp; i18n](/categories/localization)

neiluj/ez-translations-helper
=============================

Migrate eZ Publish Legacy Translations files (.ts) to Symfony

00PHP

Since Oct 7Pushed 10y ago1 watchersCompare

[ Source](https://github.com/neiluJ/ez-translations-helper)[ Packagist](https://packagist.org/packages/neiluj/ez-translations-helper)[ RSS](/packages/neiluj-ez-translations-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

TranslationsHelper
==================

[](#translationshelper)

This is a small utility that helps to migrate eZ Publish Legacy (4.x) translations files (.ts) into Symfony-compatibles ones.

Note: Generated files should ALWAYS be checked by the developer as some errors are possible depending on the complexity of the original translations, CDATAs and Html entities. You can check the validity of your file within your eZ/Symfony installation:

```
php ezpublish/console debug:translation

```

Installation
------------

[](#installation)

```
php composer.phar require neiluj/ez-translations-helper

```

Usage
-----

[](#usage)

```
php bin/tr-helper.php migrate  --lang= >>

```

Note: If you have `short_open_tag` set to `On` (which is deprecated btw) you might run the script like this:

```
php -dshort_open_tag=Off bin/tr-helper.php migrate  --lang= >>

```

### Examples

[](#examples)

```
php bin/tr-helper.php migrate /path/to/ezpublish_legacy/extension/mysite/translations/fre-FR/translation.ts --lang=fr >> src/MySite/SiteBundle/Resources/translations/messages.fr.xlf

```

or with Phar:

```
php tr-helper.phar migrate /path/to/ezpublish_legacy/extension/mysite/translations/fre-FR/translation.ts --lang=fr >> src/MySite/SiteBundle/Resources/translations/messages.fr.xlf

```

Parameters
----------

[](#parameters)

Output format:

```
--format (xliff default, yaml or php)

```

Note that XLIFF is recommended as it'll prevent a lot of conversion errors (duplicate keys for example).

Defines the input language (2 chars: fr, de, en ...). Mostly required for XLIFF.

```
--lang (language identifier - 2 chars)

```

Build a Phar
------------

[](#build-a-phar)

You can compile this tool into a simple Phar archive to be executed wherever you need it:

```
php -dphar.readonly=0 vendor/neiluj/phactory/bin/phactory.phar make . tr-helper  --vendors --stub=src/neiluJ/TranslationsHelper/stub.php

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef65c23f2f7fc1bfa82555aaead48e0d984b3ace47f41c2f8867872f3fcfdb6f?d=identicon)[neiluJ](/maintainers/neiluJ)

### Embed Badge

![Health badge](/badges/neiluj-ez-translations-helper/health.svg)

```
[![Health](https://phpackages.com/badges/neiluj-ez-translations-helper/health.svg)](https://phpackages.com/packages/neiluj-ez-translations-helper)
```

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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