<?php
/**
 * Deprecated Strings Class
 *
 * @package errigal
 * @since 1.1.0
 */

namespace Errigal\Legacy;

defined( 'ABSPATH' ) || exit;

/**
 * This class is in charge of managing deprecated strings for backward compatibility.
 *
 * @since 1.1.0
 */
class Errigal_Deprecated_Strings {
	/**
	 * Deprecated in 1.1.0.
	 *
	 * @since 1.2.0
	 * @deprecated 1.1.0
	 *
	 * @return void
	 */
	private static function deprecated_in_1_1_0() {
		/**
		 * Partial string for screen reader only h1 heading.
		 *
		 * Replaced site title + 'homepage' with page title.
		 *
		 * @since 1.0.0
		 * @see template-parts\header\page-header.php
		 */
		__( 'homepage', 'errigal' );

		/**
		 * Admin notice: Tagline.
		 *
		 * @since 1.0.5
		 * @see template-parts\admin\notice-welcome.php
		 */
		__( 'Did you know...', 'errigal' );

		/**
		 * Admin notice: Notification content.
		 *
		 * @since 1.0.5
		 * @see template-parts\admin\notice-welcome.php
		 */
		__( 'X (formerly Twitter) logo is now available in profile widget', 'errigal' );
	}

	/**
	 * Deprecated in 1.2.0.
	 *
	 * @since 1.2.0
	 * @deprecated 1.2.0
	 *
	 * @return void
	 */
	private static function deprecated_in_1_2_0() {
		/**
		 * Custom colour scheme: Colour scheme option: Sky blue.
		 *
		 * Updated to sentence case.
		 *
		 * @since 1.1.0
		 * @see inc\customiser\class-errigal-custom-colour-scheme-option.php
		 */
		__( 'Sky Blue', 'errigal' );

		/**
		 * Custom typography: Font size option label.
		 *
		 * Updated to Title Case.
		 *
		 * @since 1.1.0
		 * @see inc\customiser\class-errigal-custom-typography-option.php
		 */
		__( 'Font size', 'errigal' );

		/**
		 * Widget: Partial string for image buttons.
		 *
		 * Updated context information for translators.
		 *
		 * @since 1.1.0
		 * @see inc\widget\class-errigal-profile-widget.php
		 */
		/* translators: %s: Image type. */
		_x( 'profile image', 'Image type used as part of widget image button following Add/Remove/Replace', 'errigal' );

		/**
		 * Widget: Replace image button.
		 *
		 * Updated to 'Change %s'.
		 *
		 * @since 1.1.0
		 * @see inc\widget\class-errigal-widget-base.php
		 */
		/* translators: %s: Image type. */
		__( 'Replace %s', 'errigal' );

		/**
		 * Template part: Site header search: Close button label.
		 *
		 * Replaced with 'Close search'.
		 *
		 * @since 1.2.0
		 * @see template-parts\component\search\site-header-search.php
		 */
		__( 'Close', 'errigal' );
	}
}
