fixed local translations on table keys
added %lang% and %trans% placeholder for alias/filter
added unit tests