From: Alexandros V. <av...@no...> - 2003-09-13 10:18:32
|
On Fri, 12 Sep 2003 08:31:00 +0300 (EEST) "Tomas Kuliavas" <to...@us...> wrote: > One suggestion (sample from avelsieve + some changes). > > if (defined("SM_PATH")) { > bindtextdomain('your_plugin', SM_PATH . 'locale'); > } else { > bindtextdomain ('your_plugin', '../locale'); > } > > Keep all translations in one place (locale directory). But number of > '../' may depend on plugin. But installing a plugin is usually a matter of untarring inside the plugins/ directory, and this would mean that installing a plugin would need an extra step of copying over the locale directory to SM_PATH/locale. I used to make it work this way, but I don't like it that much. Alex |