This modification plugins allow you to disable add to cart
button when a product out of stock
Installion is very easy.
If you do not have any idea what is this extension, you can see extension screenshots.
If your language is not supported, you can request language after you purchase plugin.
You can also see demo in here