PHPackages                             tina4stack/tina4php-localization - 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. tina4stack/tina4php-localization

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

tina4stack/tina4php-localization
================================

Tina4 PHP Localization

v2.0.1(4mo ago)00MITPHPPHP &gt;=8.1CI passing

Since Mar 14Pushed 4mo agoCompare

[ Source](https://github.com/tina4stack/tina4php-localization)[ Packagist](https://packagist.org/packages/tina4stack/tina4php-localization)[ RSS](/packages/tina4stack-tina4php-localization/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

tina4php-localization
=====================

[](#tina4php-localization)

### Localization for PHP using GetText

[](#localization-for-php-using-gettext)

We assume that our charset is UTF-8 and the base language is English.

### Installation

[](#installation)

### Useful tools

[](#useful-tools)

msginit - makes a po file

### Locale examples

[](#locale-examples)

LocaleLanguageCountryda\_DKDanishDenmarkde\_ATGermanAustriade\_CHGermanSwitzerlandde\_DEGermanGermanyel\_GRGreekGreeceen\_CAEnglishCanadaen\_GBEnglishUnited Kingdomen\_IEEnglishIrelanden\_USEnglishUnited Stateses\_ESSpanishSpainfi\_FIFinnishFinlandfr\_BEFrenchBelgiumfr\_CAFrenchCanadafr\_CHFrenchSwitzerlandfr\_FRFrenchFranceit\_CHItalianSwitzerlandit\_ITItalianItalyja\_JPJapaneseJapanko\_KRKoreanKoreanl\_BEDutchBelgiumnl\_NLDutchNetherlandsno\_NONorwegian (Nynorsk)Norwayno\_NO\_BNorwegian (Bokmål)Norwaypt\_PTPortuguesePortugalsv\_SESwedishSwedentr\_TRTurkishTurkeyzh\_CNChinese (Simplified)Chinazh\_TWChinese (Traditional)Taiwan### Example of a.pot template file

[](#example-of-apot-template-file)

```
#: modules/user/views_handler_filter_user_name.inc:29
msgid "Enter a comma separated list of user names."
msgstr ""

#: modules/user/views_handler_filter_user_name.inc:112
msgid "Unable to find user: @users"
msgid_plural "Unable to find users: @users"
msgstr[0] ""
msgstr[1] ""

```

### Build a po file

[](#build-a-po-file)

```
msgfmt messages.po -o src/locale/de_DE.mo

```

---

Our Sponsors
------------

[](#our-sponsors)

**Sponsored with 🩵 by Code Infinity**

[![Code Infinity](https://camo.githubusercontent.com/1516fb1662e3486bce77822177a5ea199edc32ea109369812592ec9bca38159a/68747470733a2f2f636f6465696e66696e6974792e636f2e7a612f77702d636f6e74656e742f75706c6f6164732f323032352f30392f6338652d6c6f676f2d6769746875622e706e67)](https://codeinfinity.co.za/about-open-source-policy?utm_source=github&utm_medium=website&utm_campaign=opensource_campaign&utm_id=opensource)

*Supporting open source communities • Innovate • Code • Empower*

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance74

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

146d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/82961293?v=4)[Tina4](/maintainers/tina4stack)[@tina4stack](https://github.com/tina4stack)

---

Top Contributors

[![andrevanzuydam](https://avatars.githubusercontent.com/u/6102941?v=4)](https://github.com/andrevanzuydam "andrevanzuydam (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/tina4stack-tina4php-localization/health.svg)

```
[![Health](https://phpackages.com/badges/tina4stack-tina4php-localization/health.svg)](https://phpackages.com/packages/tina4stack-tina4php-localization)
```

###  Alternatives

[smarty-gettext/smarty-gettext

Gettext plugin enabling internationalization in Smarty Package files

752.5M8](/packages/smarty-gettext-smarty-gettext)[symfony/ux-translator

Exposes Symfony Translations directly to JavaScript.

26779.7k9](/packages/symfony-ux-translator)[mageplaza/magento-2-italian-language-pack

Italian language package for Magento 2

161.4M](/packages/mageplaza-magento-2-italian-language-pack)[renatomarinho/laravel-multi-language

Laravel Multi Language

235.1k](/packages/renatomarinho-laravel-multi-language)

PHPackages © 2026

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