plugins not defining language files

Creating and modifying plugins.
Post Reply
CapriSkye
Regular
Posts: 119
Joined: Sun Oct 31, 2004 4:42 am
Location: Taiwan
Contact:

plugins not defining language files

Post by CapriSkye »

i see some bundled plugins are not reading their langauge files.
here are the plugins missing this at the top,

Code: Select all

// Probe for a language include with constants. Still include defines later on, if some constants were missing
$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
if (file_exists($probelang)) {
    include $probelang;
}
serendipity_event_mailer
serendipity_event_xhtmlcleanup
serendipity_event_searchhighlight
serendipity_event_livesearch
serendipity_event_trackexits

@garvin, if you want i'll be willing to update the plugins, if adding the code above is all i need to do.
and is "Export blog as PDF" plugins and some others bundled with s9y? they are showing up in my installation but i don't see them in svn. i probably installed them via Spartacus but just curious cus i don't remember.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: plugins not defining language files

Post by garvinhicking »

Thanks a lot, I fixed those plugins!

The BlogPDF plugin has been moved to additional_plugins repository since 0.9, as it was only seldomly used.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
CapriSkye
Regular
Posts: 119
Joined: Sun Oct 31, 2004 4:42 am
Location: Taiwan
Contact:

Post by CapriSkye »

thanks garvin
there are some additional plugins not reading the language files also
for example the mailentry plugin.
can i update those plugins in cvs? again if adding above code is all i needed to do.
i probably won't check every plugins, only the ones that i'm using.
thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Yes, you can update those plugins in CVS, adding the simple code at the top of the file is absolutely sufficient.

Thanks a lot for all your translating effort. I really appreciate this!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply