core: new function to support configurable locale
core: new function to support configurable locale

Former-commit-id: 2a06a182e746ca0b05fa37fd4bcaf2154b52dcd9
Former-commit-id: 60aedb6357f9c2a7b8d6b0f0634555b73326268a
haste/ivar2,torhve/ivar2,torhve/ivar2,torhve/ivar2