Is the landlord responsible for paying the cost of a hotel if the tenant's apartment suddenly becomes uninhabitable?

Question Details:

A friend just arrived at her house to find the place swarming with termites. They cover the floor, ceiling, etc. The bottom line is; the place is currently uninhabitable, but only for a temporary amount of time until the issue is resolved. In this case, who would be responsible for the cost of the temporary living arrangements? In CA. Important Notice