Update domframework to be gettext package compliant
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1661 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
13
docs/USAGE
13
docs/USAGE
@@ -324,6 +324,19 @@ You can remove the objects with :
|
||||
You can see if the user can access to the object with READ, WRITE, EXECUTE :
|
||||
$auth->validate ("/module/<object>")
|
||||
|
||||
12. Internationalization
|
||||
------------------------
|
||||
The domframework can be use to internationalize your software. You can create a
|
||||
structure like _locale/en_US.UTF8/LC_MESSAGES/{package}.mo_ and just call :
|
||||
// Selection of the language
|
||||
$language = new language ();
|
||||
$language->activeLanguage ("package", "package-Langugage");
|
||||
|
||||
Change the name "package" by your soft name, and use the same name in the
|
||||
_LC_MESSAGES_ directory.
|
||||
The _LC_MESSAGES_ directory must be writeable : a cache of the .mo file is
|
||||
created if it is possible to inform Apache of the evolutions of your software.
|
||||
|
||||
XX. CLI usage
|
||||
-------------
|
||||
The DomFramework is designed to be used in console line too.
|
||||
|
||||
Reference in New Issue
Block a user