Fix translation issue for no and yes keys in YAML

Fixes #2763