2017 © Pedro Peláez
 

library language

Language Libararies for Kecik Framework

image

kecik/language

Language Libararies for Kecik Framework

  • Wednesday, April 22, 2015
  • by dnaextrim
  • Repository
  • 2 Watchers
  • 1 Stars
  • 134 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Kecik Language

A library created specifically Kecik Framework, this library was made for ease in making use of multi-language projects., (*1)

Installation

composer.json files, (*2)

{
    "require": {
        "kecik/language": "1.0.*@dev"
    }
}

Run a command, (*3)

composer install

This library requires a file in json format as a dictionary. Examples json file contents., (*4)

nama file: lang_id.json, (*5)

{
    "signin": "Masuk",
    "form": {
        "validation": {
            "must be fill": "Harus diisi"
        }
    }
}

nama file: lang_us.json, (*6)

{
    "signin": "Sign In",
    "form": {
        "validation": {
            "must be fill": "Must be fill"
        }
    }
}

Example Using

'lang_id.json',
    'us'=>'lang_us.json'
));

$app->get('/', function() use ($lang){
    echo 'Indonesia Sign In :'.$lang->id('signin').'
'; echo 'English [US] Sign In :'.$lang->us('signin').'
'; echo 'Indonesia Must be fill : '.$lang->id('must be fill', array('form', 'validation')).'
'; echo 'English [US] Must be fill :'.$lang->us('must be fill', array('form', 'validation')); }); $app->run(); ?>

The Versions

22/04 2015

dev-master

9999999-dev

Language Libararies for Kecik Framework

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Dony Wahyu Isp

framework language kecik

22/04 2015

1.0.3

1.0.3.0

Language Libararies for Kecik Framework

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Dony Wahyu Isp

framework language kecik

07/04 2015

1.0.1-beta

1.0.1.0-beta

Language Class untuk Kecik Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Dony Wahyu Isp

framework language kecik