Merge pull request #331 from agueganno/quick-fix

We need gettext both as a plugin and as a dependency.
Fix insert row fields validation.
Fix error message
Merge pull request #332 from nicolas-f/fix/insert-new-row

Fix insert row fields validation.
Fix a SQL injection problem in legend UI
We'll use a statement rather than a raw string to get our datasource.
This way, we'll be able to pass our parameters cleanly.
Ovverrides getLegendTypeId in RecodedArea
It is needed in the UI. I'll have to change that someday.
Ow, and solve #329, too. It's been hard :-p