Add variants of Get functions with existence checks #1

Merged
Jomaar merged 1 commits from error-returns into master 2020-07-27 16:04:11 +00:00

1 Commits

Author SHA1 Message Date
Ben Sarah Golightly
75a1fb9b04 Add variants of Get functions with existence checks
Currently, a translation that doesn't exist just defaults to the
passed message ID.

It can be helpful to be able to catch these missing cases e.g. to
save to a log.

This PR implements variants ending in 'E' like GetE, GetNE.

This wasn't implemented at the package-level scope, because for
quick translations like that the extra flexibility probably isn't
needed.
2020-07-23 00:28:56 +01:00