translate

Usage for apps of multiple languages.

$this->translate ("some text");

If you specify other languages confg/config.ini file this way:

 translations = pl

phpway will create new file pl.php in config/dictionary/ directory

config/dictionary/pl.php

with new content.

$text['some text']='some text';

Here you can type text in polish language.

$text['some text']='jakis tekst';

To show your app with polish language change your URL to:


http://example.com/pl/

http://example.com/pl/controller/action

.
.
.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>