- Moderated by:
- Support
-
- rank:
-
Helper
- registered:
- February 2005
- Status:
- offline
- last visit:
- 24.01.06
- Posts:
- 116
I notice there are alot of status/error messages that begin with an underscore "_"
Where can i go to define those?
I am assuming that they are referenced somwhere so that a much cleaner error/status message is displayed.
thanks -
- rank:
-
Helper
- registered:
- October 2002
- Status:
- offline
- last visit:
- 23.01.07
- Posts:
- 192
Many of the _variables are contants defined in the language files, if you're talking about specific modules. They should be in the pnlang folder of the module, with a sub folder for each supported language. -
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 26.08.08
- Posts:
- 7720
raskolnikov
awsome.....i am building my first module. didn't know where to define them. Thanks.
If your developing your own module one skill you'll need is that of self-discovery.... Dig a little into the supplied files.... ;)
In your module there's a pnlang directory (seems fairly obvious that this is language related.....). Below that, by default, you'll see a eng directory (english). Within this there can be the files admin.php, user.php, adminapi.php and userapi.php. These are for strings used by pnadmin.php, pnuser.php, pnadminapi.php and pnuserapi.php.
Any adidtional strings you need should be defined in these files. Also remove any your not using.
To translate your module into another language duplicate the eng directory to a directory for your language using the same 3 letter code as your base language pack.
-Mark
