Confused about relation of inflation to a currency's depreciation?
Your confusion might be mitigated if you thing about these as short- and long-term effects. 

That is, the more immediate effect of inflation is that exports fall, demand for currency falls, and so the value of currency falls. 

This causes imports to fall, domestic spending to increase, and foreign demand for domestic goods to increase. That is, exports rise. This increase in exports causes an increase in demand for the home currency and this puts upward pressure on the currency. 

The short-term effect of inflation is that we have currency depreciation. The long-term effect is less clear cut, since the depreciation should trigger an increase in foreign demand which should counteract the initial effect of inflation.