Thank you very much, @Shreesha.Murthy
It has compiled properly, and I have added spanish translations as well
In Settings -> About phone -> Device model -> It shows unknown
How can I sort it out?
If you are using CyanogenMod's device repo, you have to change ro.cm.device to ro.rr.device in init/init_oneplus2.cpp .
P.S. and you must add <bool name="config_hwKeysPref">true</bool> for enable hardware key preferences(Enable/Disable Hard key, backlight timeout...).