Solar_Filter_ValidateLocaleCode::validateLocaleCode()

public bool Solar_Filter_ValidateLocaleCode::validateLocaleCode ( mixed $value )

Validates that the value is a locale code.

Parameters

  • (mixed) $value: The value to validate.

Returns

  • (bool) True if valid, false if not.

Description

Validates that the value is a locale code.

The format is two lower-case letters, an underscore, and two upper-case letters.



Local