Re: [Lurker-users] prevent languages being generated
Brought to you by:
terpstra
From: Wesley W. T. <we...@te...> - 2010-03-18 23:51:59
|
On Thu, Mar 18, 2010 at 9:08 AM, Adrian Bridgett <ad...@sm...> wrote: > Hi there, I've spent a while going through the documentation and even > the code but I'm stuck. > > I'd like to stop lurker from generating all the languages in message/ > and thread/ - I just want English. Is this possible? > Am I understanding correctly that you want lurker to refuse requests for pages rendered with the UI elements in other languages? Removing say the de.xml file will just make lurker fall back to English for .de.html files. Setting 'no' in lang.xml will just remove it from the language drop-down menu. You can't (easily) stop lurker from creating files that people request. However, if you set the languages to 'no' in lang.xml, presumably people will stop loading pages in other languages. If you have files appearing in other languages in your cache, it's because someone is actually loading pages in that language (or google found them). That said, you might want to reconsider disabling the feature as people are actually using it. Still no joy :-( I'm trying to cut down how much we backup. > Don't backup anything in the lurker >CACHE< folder. It will all be regenerated on demand from the database. Also, if you have a lot of files in your cache folder, you might want to confirm you run lurker-prune from a cron job. That said, if you still really want to forbid lurker from generating pages with a non-en.html extension, you will need to edit the C++. In render/main.cpp go to line 130 and add something along the lines of: if (out.language != "en") error("Bad language", out.language, "Only English is allowed."); |