fix panel error and add locales