PHPackages                             petehouston/translation-model - 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. petehouston/translation-model

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

petehouston/translation-model
=============================

The update Language model to fix the default Waavi Language model compatibility issue in Laravel 4.2.

1476[1 issues](https://github.com/petehouston/translation-model/issues)PHP

Since Dec 16Pushed 11y ago1 watchersCompare

[ Source](https://github.com/petehouston/translation-model)[ Packagist](https://packagist.org/packages/petehouston/translation-model)[ RSS](/packages/petehouston-translation-model/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Translation Model
=================

[](#translation-model)

The [Waavi/translation](https://github.com/Waavi/translation) package is outdated and the author doesn't seem to work on it. So I make this package in order to fix the problem when use this in Laravel 4.2.

**Note**: This should only works for Laravel 4.2 version, not for Laravel 5 since the **SoftDeletingTrait** is removed.

Usage
-----

[](#usage)

Add this into your **composer.json**,

```
"require": {
    "petehouston/translation-model": "dev-master"
}

```

and run composer command to update the package.

```
$ composer update

```

You probably need to publish the configuration file from **Waavi/translation** package,

```
$ php artisan config:publish waavi/translation

```

Now edit the following part in **app/config/packages/waavi/translation/config.php**

```
/*
|--------------------------------------------------------------------------
| Language
|--------------------------------------------------------------------------
|
| Configuration specific to the language management component. You may extend
| the default models or implement their corresponding interfaces if you need to.
|
*/
'language'              =>  array(
    'model'     =>  'Language',
),

```

into this

```
/*
|--------------------------------------------------------------------------
| Language
|--------------------------------------------------------------------------
|
| Configuration specific to the language management component. You may extend
| the default models or implement their corresponding interfaces if you need to.
|
*/
'language'              =>  array(
    'model'     =>  'Petehouston\Models\Language',
),

```

Alright! You're ready to go.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

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

---

Top Contributors

[![petehouston](https://avatars.githubusercontent.com/u/9006720?v=4)](https://github.com/petehouston "petehouston (5 commits)")

### Embed Badge

![Health badge](/badges/petehouston-translation-model/health.svg)

```
[![Health](https://phpackages.com/badges/petehouston-translation-model/health.svg)](https://phpackages.com/packages/petehouston-translation-model)
```

###  Alternatives

[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1927.0k1](/packages/smmoosavi-php-gettext)

PHPackages © 2026

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