We do not care about phpgettext tests, these are external

Signed-off-by: Michal Čihař <michal@cihar.com>
Do not pass string as default value instead of array

Null is better fallback value

Signed-off-by: Michal Čihař <michal@cihar.com>
Share code for processing table privileges

Signed-off-by: Michal Čihař <michal@cihar.com>
Share code for formatting privilege

Signed-off-by: Michal Čihař <michal@cihar.com>