Text directive prints key when resource not found, and print pattern when format failure.