Skip to content

Commit

Permalink
Bump to Polylang 3.3.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hug0-Drelon committed Feb 20, 2023
1 parent 36b2ee4 commit af77c26
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions polylang-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -4543,17 +4543,23 @@ public function allowed_mimes($mimes)
class PLL_PO_Export extends \PLL_Export_File
{
/**
* The registered target languages
* The registered target language.
*
* @var string
*/
protected $target_language;
protected $target_language = '';
/**
* The registered source_language
* The registered source language.
*
* @var string
*/
protected $source_language;
protected $source_language = '';
/**
* The registered site reference.
*
* @var string
*/
protected $site_reference = '';
/**
* PLL_Export_Interface constructor.
* Creates a PO object.
Expand All @@ -4572,7 +4578,6 @@ public function get_source_language()
{
}
/**
*
* Set a source language to the export
*
* @since 2.7
Expand Down Expand Up @@ -4606,7 +4611,6 @@ public function set_target_language($target_language)
* Set the site reference to the export.
*
* @since 2.7
* @since 3.3 Also adds a reference to the application that generated the export file (name + version).
*
* @param string $url Absolute url of the current site.
* @return void
Expand All @@ -4632,6 +4636,7 @@ public function add_translation_entry($type, $source, $target = '', $args = arra
* Assign a reference to the PO file.
*
* @since 2.7
* @since 3.3.1 Remove unused source reference header.
*
* @param string $type Type of data to be exported.
* @param string $id Optional, unique identifier to retrieve the data in the database.
Expand All @@ -4656,7 +4661,10 @@ public function export()
* @see https://www.gnu.org/software/trans-coord/manual/gnun/html_node/PO-Header.html
*
* @since 2.7
*
* @since 3.3 Add a reference to the application that generated the export file (name + version).
* @since 3.3.1 Replace non-official "Language-Target" header to the official Language.
* Use the Poedit header "X-Source-Language" instead of non official "Language-source".
* Replace non official 'Site-Reference" header by "X-Polylang-Site-Reference".
* @return void
*/
protected function set_file_headers()
Expand Down Expand Up @@ -4770,6 +4778,8 @@ public function import_from_file($filepath)
* Get the target language
*
* @since 2.7
* @since 3.3.1 Change the target language header label. We're now using the official "Language" header
* and add a backward condition to accept the old header.
*
* @return string|false
*/
Expand All @@ -4780,6 +4790,7 @@ public function get_target_language()
* Get the site reference.
*
* @since 2.7
* @since 3.3.1 Change the site reference header label.
*
* @return string|false
*/
Expand Down

0 comments on commit af77c26

Please sign in to comment.