ngocdaothanh/xitrum — pull request #267 by caiiiycuk (2014-01-07 13:11:06+00:00)
Title: i18n improvements

The key feature of this pull request is a possibility to reload *.po files without restarting xitrum app. With this changes user can specify folders in file system where po files are located. To do this it should add in xitrum.conf (for example):

```javascript
i18n {
lookupFolders = ["public/i18n"]
}
```

When app starts PoLoader will merge all po files from resources + lookup folders which users set. Additionally when file in folder changed PoLoader will automatically reload it. To avoid slowdowns with checking modifying date on each request i add fastCache that take po file for 5 minute. So in production mode po file will reload when neaded but with 5 minute interval. I'm really not sure whether this provides a performance boost.

That's roughly what I need at the moment, i can refactor/reimplement if needed fill free to leave feedback.