PHPackages                             nedryse/simple-translator - 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. nedryse/simple-translator

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

nedryse/simple-translator
=========================

Simple implementation of \\Nette\\Localization\\ITranslator interface. Just print the key as is. Usefull when you have no time for managing gettext translation but want translatable application in the future.

v1.1.0(9y ago)03.8kWTFPLPHPPHP &gt;=5.3.1

Since Dec 25Pushed 9y ago2 watchersCompare

[ Source](https://github.com/nedryse/simple-translator)[ Packagist](https://packagist.org/packages/nedryse/simple-translator)[ Docs](https://github.com/nedryse/simple-translator)[ RSS](/packages/nedryse-simple-translator/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

\#nedryse/simple-translator (cc)# Pavel Železný (2bfree), 2014 ([pavelzelezny.cz](http://pavelzelezny.cz))

Requirements
------------

[](#requirements)

[Nette Framework 2.4.0](http://nette.org) or higher

Documentation
-------------

[](#documentation)

Simple implementation of [\\Nette\\Localization\\ITranslator](http://api.nette.org/2.2/Nette.Localization.ITranslator.html) interface. Just print the key as is. Usefull when you have no time for managing gettext translation but want translatable application in the future.

Instalation
-----------

[](#instalation)

Prefered way to install is by [Composer](http://getcomposer.org)

```
composer require nedryse/simple-translator:~1.1

```

Or by manualy adding into the [composer.json](https://getcomposer.org/doc/04-schema.md#json-schema)

```
{
	"require":{
		"nedryse/simple-translator": "~1.1"
	}
}

```

Setup
-----

[](#setup)

Add following code into the [config.neon](http://doc.nette.org/en/2.2/configuring#toc-framework-configuration)

```
common:
	extensions:
		translator: Nedryse\Nette\Localization\SimpleTranslatorExtension

```

Usage
-----

[](#usage)

In Latte templates of presenters and components you can use standard [tlanslator macro](http://doc.nette.org/cs/2.2/default-macros#toc-preklady)

```
{_'Translatable text'}
{_'We have %d translatable text', $count}
{_'Field %s have to be translated', $fieldName}
{_'Field %s with %d letter have to be translated', $fieldName, $count}

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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 ~699 days

Total

2

Last Release

3499d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88c4f8c7289f097b6a5bc380407eac7369976484e5d071352686e764be13b8c8?d=identicon)[zeleznypa](/maintainers/zeleznypa)

---

Top Contributors

[![zeleznypa](https://avatars.githubusercontent.com/u/1191472?v=4)](https://github.com/zeleznypa "zeleznypa (2 commits)")

---

Tags

nettetranslatordrylattenedryse

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nedryse-simple-translator/health.svg)

```
[![Health](https://phpackages.com/badges/nedryse-simple-translator/health.svg)](https://phpackages.com/packages/nedryse-simple-translator)
```

###  Alternatives

[contributte/translation

Symfony/Translation integration for Nette Framework.

771.8M49](/packages/contributte-translation)[kdyby/translation

Integration of Symfony/Translation into Nette Framework

891.2M24](/packages/kdyby-translation)

PHPackages © 2026

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