Zentyal Forum, Linux Small Business Server

Zentyal Server => Contributions / Tips&Tricks / Features Requests => Topic started by: Sepi on June 20, 2017, 02:05:55 pm

Title: how to get locale variable in perl
Post by: Sepi on June 20, 2017, 02:05:55 pm
Hi there,

I'm working on a modification of the samba module, because in my country (Hungary) we use our name switched format like English name (Surname Fristname).
When I create a new user in a dashboard, the system create displayName in a wrong format. I made some modification about "add new user" process and everything is working like a charm, but 1 thing what I can't figure it out is how can I get locale settings in perl?
So what I want is I'd like to get a variable with the already configured dashboard locale setting to compare is the language is Hungarian, and if it is, than make a correct change on the entered names, and create a new user....

Thanks,

G.