Uname: Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.213.251.212
Your Ip: 13.59.27.102
User: allssztx (535) | Group: allssztx (533)
Safe Mode: OFF
Disable Function:
NONE

name : locale.php
<?php

namespace ImageOptimization\Classes;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Locale {
	private $original_locale;

	public function set_utf_locale( int $category = LC_CTYPE ) {
		setlocale( $category, 'en_US.UTF-8' );
	}

	public function get_locale( int $category = LC_CTYPE ) {
		return setlocale( $category, 0 );
	}

	public function reset_to_original( int $category = LC_CTYPE ) {
		return setlocale( $category, $this->original_locale );
	}

	public function __construct() {
		$this->original_locale = $this->get_locale();
	}
}
© 2025 GrazzMean-Shell