When the sun goes down: “at nightfall,” the time to go to bed. In this context the sense is “each evening” (Good News Translation).
You shall restore: the Hebrew is an emphatic form.
Bless you: this can mean “thank you,” but more probably it means “ask God to bless you,” or “ask God to make you prosperous.”
Shall be righteousness to you before the LORD your God: God will consider such an act as the right conduct, the proper behavior. Good News Translation “will be pleased with you” departs unnecessarily from the clear meaning of the Hebrew text. New Jewish Publication Society’s Tanakh has “it will be to your merit before the LORD your God,” Nova Tradução na Linguagem de Hoje “what the LORD your God considers right,” and Contemporary English Version “Then the LORD your God will notice that you have done the right thing.”
Quoted with permission from Bratcher, Robert G. and Hatton, Howard A. A Handbook on Deuteronomy. (UBS Helps for Translators). New York: UBS, 2000. For this and other handbooks for translators see here .
