This speaks about years as if they are something that travels and comes to a place. Alternate translation: "before the seven years of the famine began" (See: [[rc://en/ta/man/translate/figs-metaphor]])
On is a city, also called Heliopolis, which was "the City of the Sun" and the center of worship of the sun god Ra. See how you translated this in [Genesis 41:45](./45.md). (See: [[rc://en/ta/man/translate/translate-names]])