Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Defining "_WHATEVER"
  • Posted: 15.03.2005, 18:47
     
    raskolnikov
    rank:
    Helper 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
  • Posted: 15.03.2005, 19:20
     
    csteelatgburg
    rank:
    Helper 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.
  • Posted: 15.03.2005, 19:49
     
    raskolnikov
    rank:
    Helper Helper
    registered:
     February 2005
    Status:
    offline
    last visit:
    24.01.06
    Posts:
    116
    awsome.....i am building my first module. didn't know where to define them. Thanks.
  • Posted: 15.03.2005, 20:32
     
    rank:
    Moderator 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

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula