Welcome Guest, Not a member yet? Register   Sign In
What about a Country helper class.
#5

(09-28-2017, 12:46 AM)Tripex Wrote: It shouldn't be "Country"... it should be "Locale"... even a country can have different settings depending on which locale you adhere to.
I understand you, but yes what I was thinking of is a Country helper. Just for things like zipcode formats, phone numbers, currency and things like that. I have to validate addresses, but the validation rules depend on the country, I need to know if a country is using decimals in currency data, and if so how many decimals. I resolved this with database functionality, but I thought that it would be nice to have the same kind of solution as with the Language helper.

Other country-specific things could be licenses, discount options etc... So it is a little bit different from the "standard" Locales approach.
Reply


Messages In This Thread
What about a Country helper class. - by Geraldo_ - 09-26-2017, 10:01 PM
RE: What about a Country helper class. - by PaulD - 09-27-2017, 10:40 AM
RE: What about a Country helper class. - by Geraldo_ - 09-29-2017, 08:02 AM
RE: What about a Country helper class. - by PaulD - 09-28-2017, 10:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB