Being righteous is spoken of as if "righteousness" were an object that belongs to Yahweh. The abstract noun "righteousness" can be stated as "righteous." Alternate translation: "Lord, you are righteous" (See: [[rc://en/ta/man/translate/figs-metaphor]] and [[rc://en/ta/man/translate/figs-abstractnouns]])
Being ashamed is spoken of as if "shame" were an object that belongs to people. The abstract noun "shame" can be stated as "ashamed." Alternate translation: "But as for us, we are ashamed of what we have done—the people" (See: [[rc://en/ta/man/translate/figs-metaphor]] and [[rc://en/ta/man/translate/figs-abstractnouns]])