# polylang/trunk/src/settings/settings-media.php

Polylang, version trunk. 38 lines.

- Page: https://pluginprobe.com/plugins/polylang/trunk/code/src/settings/settings-media.php
- Raw: https://pluginprobe.com/plugins/polylang/trunk/raw/src/settings/settings-media.php
- Modified: 2026-02-23T14:05:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/polylang/trunk/code/src/settings/settings-media.php#L10-L20`.

```php
<?php
/**
 * @package Polylang
 */

/**
 * Settings class for media language and translation management
 *
 * @since 1.8
 */
class PLL_Settings_Media extends PLL_Settings_Module {
	/**
	 * Stores the display order priority.
	 *
	 * @var int
	 */
	public $priority = 30;

	/**
	 * Constructor
	 *
	 * @since 1.8
	 *
	 * @param PLL_Settings $polylang polylang object
	 */
	public function __construct( &$polylang ) {
		parent::__construct(
			$polylang,
			array(
				'module'        => 'media',
				'title'         => __( 'Media', 'polylang' ),
				'description'   => __( 'Activate languages and translations for media only if you need to translate the text attached to the media: the title, the alternative text, the caption, the description... Note that the file is not duplicated.', 'polylang' ),
				'active_option' => 'media_support',
			)
		);
	}
}

```
