2017 © Pedro Peláez
 

library locale

Locale and language utilities, .ini configuration based localization.

image

simplecomplex/locale

Locale and language utilities, .ini configuration based localization.

  • Sunday, July 29, 2018
  • by jacobfriis
  • Repository
  • 2 Watchers
  • 0 Stars
  • 81 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 14 Versions
  • 98 % Grown

The README.md

Locale

Localization, primarily of texts

Texts are referred by (free format) IDs.
.ini-file based., (*1)

Superior to gettext (.po) in these ways: - texts (translations) don't get orphaned when you change the source text
- editors/translators work in standard plaintext editors - texts can be organised in groups and sub groups. - no need for complex parsers and im-/export features, databases etc. - miniscule resource footprint, (*2)

.ini-file example

[some-group]
meeting = reunión
some-sub-group[start] = ¡Hola!
some-sub-group[continue] = ¿Cómo estás?
some-sub-group[end] = Hasta luego...

Dependency injection container ID: locale

Recommendation: access (and thus instantiate) locale via DI container ID 'locale'.
See SimpleComplex Utils Dependency., (*3)

CLI commands

# List all locale-text commands and their help.
php cli.php locale-text -h
# One command's help.
php cli.php locale-text-xxx -h

# Display/get value of a locale-text item.
php cli.php locale-text-get language section key

# Set a locale-text item.
php cli.php locale-text-set language section key value

# Delete a locale-text item.
php cli.php locale-text-delete language section key

# Refresh a locale-text store from .locale-text.[language].ini file sources.
php cli.php locale-text-refresh language

# Export a locale-text store as JSON to a file.
php cli.php locale-text-export language target-path-and-file

Installation

Copy the 'global' config .ini file (see SimpleComplex Config)
[locale package dir]/config-ini/locale.global.ini
and place it in config's 'base' or 'override' path., (*4)

Follow the instructions within in that file,
and modify it to suit the current system's structure and features., (*5)

Requirements

Suggestions

The Versions

29/07 2018

dev-develop

dev-develop https://github.com/simplecomplex/php-locale

Locale and language utilities, .ini configuration based localization.

  Sources   Download

MIT

The Requires

 

by Jacob Friis Mathiasen

php configuration locale localization

29/07 2018

dev-master

9999999-dev https://github.com/simplecomplex/php-locale

Locale and language utilities, .ini configuration based localization.

  Sources   Download

MIT

The Requires

 

by Jacob Friis Mathiasen

php configuration locale localization

29/07 2018

2.1

2.1.0.0 https://github.com/simplecomplex/php-locale

Locale and language utilities, .ini configuration based localization.

  Sources   Download

MIT

The Requires

 

by Jacob Friis Mathiasen

php configuration locale localization

28/07 2018

dev-cli-hook

dev-cli-hook https://github.com/simplecomplex/php-locale

Locale and language utilities, .ini configuration based localization.

  Sources   Download

MIT

The Requires

 

by Jacob Friis Mathiasen

php configuration locale localization

25/06 2018

2.0.1

2.0.1.0 https://github.com/simplecomplex/php-locale

Locale and language utilities, .ini configuration based localization.

  Sources   Download

MIT

The Requires

 

by Jacob Friis Mathiasen

php configuration locale localization

24/06 2018

2.0

2.0.0.0 https://github.com/simplecomplex/php-locale

Locale and language utilities, .ini configuration based localization.

  Sources   Download

MIT

The Requires

 

by Jacob Friis Mathiasen

php configuration locale localization

24/06 2018

dev-feature-config-regime

dev-feature-config-regime https://github.com/simplecomplex/php-locale

Locale and language utilities, .ini configuration based localization.

  Sources   Download

MIT

The Requires

 

by Jacob Friis Mathiasen

php configuration locale localization

24/06 2018

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/simplecomplex/php-locale

Locale and language utilities, .ini configuration based localization.

  Sources   Download

MIT

The Requires

 

by Jacob Friis Mathiasen

php configuration locale localization

16/06 2018

1.1.2

1.1.2.0 https://github.com/simplecomplex/php-locale

Locale and language utilities, .ini configuration based localization.

  Sources   Download

MIT

The Requires

 

by Jacob Friis Mathiasen

php configuration locale localization

01/05 2018

1.1.1

1.1.1.0 https://github.com/simplecomplex/php-locale

Locale and language utilities, .ini configuration based localization.

  Sources   Download

MIT

The Requires

 

by Jacob Friis Mathiasen

php configuration locale localization

23/10 2017

dev-feature-js-html-include

dev-feature-js-html-include https://github.com/simplecomplex/php-locale

Locale and language utilities, .ini configuration based localization.

  Sources   Download

MIT

The Requires

 

by Jacob Friis Mathiasen

php configuration locale localization

10/10 2017

1.1

1.1.0.0 https://github.com/simplecomplex/php-locale

Locale and language utilities, .ini configuration based localization.

  Sources   Download

MIT

The Requires

 

by Jacob Friis Mathiasen

php configuration locale localization

24/09 2017

1.0

1.0.0.0 https://github.com/simplecomplex/php-locale

Locale and language utilities, .ini configuration based localization.

  Sources   Download

MIT

The Requires

 

by Jacob Friis Mathiasen

php configuration locale localization

12/07 2017

0.9

0.9.0.0 https://github.com/simplecomplex/php-locale

Locale and language utilities, .ini configuration based localisation.

  Sources   Download

MIT

The Requires

 

by Jacob Friis Mathiasen

php configuration locale