2017 © Pedro Peláez
 

library localize

Localize - Internationalization Toolbox with Gettext wrapper, Extractors, Unicode Common Locale Data Repository

image

redcatphp/localize

Localize - Internationalization Toolbox with Gettext wrapper, Extractors, Unicode Common Locale Data Repository

  • Wednesday, November 30, 2016
  • by surikat
  • Repository
  • 2 Watchers
  • 4 Stars
  • 719 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

No longer actively maintained. I work now with NodeJS and I recommand you to take a look at globalize, (*1)

Localize

Localize is an internationalization toolbox with Gettext wrapper, Extractors, Unicode CLDR.
and some internationalization ISO codes., (*2)

Gettext wrapper

Translator and GettextEmulator are RedCat's OOP adapation of php-gettext library.
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.
The structure of locales is $projectHome/langs/$lang/LC_MESSAGES/messages.mo, eg: www/langs/fr/LC_MESSAGES/messages.mo. It support cache regeneration without restart apache by dint of use a copy of MO file named with timestamp suffix. To enable look for last message.$time.mo set dev to true. You'll have to create this file manualy or with other i18n tool., (*3)

Translator::getInstance()->dev = true;  
            

You can include "__.php" to use procedural function based on RedCat\Localize\Translator static current instance., (*4)

echo \_\_($msgid);  
echo n\_\_($singular,$plural,$number);  
            

CLDR - Punic

Punic - PHP translation and localization made easy. It contain internationalization data for language, calendar, territory, number, unit, phone, currency, plural and misc. Punic is a third party CLDR. library. See the official Punic documentation., (*5)

The Versions

30/11 2016

dev-master

9999999-dev http://redcatphp.com/localize-i18n

Localize - Internationalization Toolbox with Gettext wrapper, Extractors, Unicode Common Locale Data Repository

  Sources   Download

LGPL-3.0+ CC0-1.0

The Requires

 

i18n internationalization localization gettext l10n localize cldr common locale data repository

27/02 2016

v1.5

1.5.0.0 http://redcatphp.com/localize-i18n

Localize - Internationalization Toolbox with Gettext wrapper, Extractors, Unicode Common Locale Data Repository

  Sources   Download

LGPL-3.0+ CC0-1.0

The Requires

 

i18n internationalization localization gettext l10n localize cldr common locale data repository

08/11 2015

v1.4

1.4.0.0 https://github.com/redcatphp/Localize

Localize - Internationalization Toolbox with Gettext wrapper, Extractors, Unicode Common Locale Data Repository

  Sources   Download

LGPL-3.0+ CC0-1.0

The Requires

  • php >=5.4.0

 

i18n internationalization localization gettext l10n localize cldr common locale data repository

22/10 2015

v1.3

1.3.0.0 https://github.com/surikat/Localize

Localize - Internationalization Toolbox with Gettext wrapper, Extractors, Unicode Common Locale Data Repository

  Sources   Download

LGPL-3.0+ CC0-1.0

The Requires

  • php >=5.4.0

 

i18n internationalization localization gettext l10n localize cldr common locale data repository

14/09 2015

v1.2

1.2.0.0 https://github.com/surikat/Localize

Localize - Internationalization Toolbox with Gettext wrapper, Extractors, Unicode Common Locale Data Repository

  Sources   Download

LGPL-3.0+ CC0-1.0

The Requires

  • php >=5.4.0

 

i18n internationalization localization gettext l10n localize cldr common locale data repository

20/08 2015

v1.1

1.1.0.0 https://github.com/surikat/Localize

Localize - Internationalization Toolbox with Gettext wrapper, Extractors, Unicode Common Locale Data Repository

  Sources   Download

LGPL-3.0+ CC0-1.0

The Requires

  • php >=5.4.0

 

i18n internationalization localization gettext l10n localize cldr common locale data repository