Changeset 6287 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/i18n/class-readme-import.php
- Timestamp:
- 12/19/2017 04:22:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/i18n/class-readme-import.php
r5485 r6287 45 45 46 46 $readme_file = "{$svn_url}{$readme_file}"; 47 $readme = new Parser( $readme_file );47 $readme = new Parser( $readme_file ); 48 48 49 49 if ( ! class_exists( '\PO' ) ) { … … 51 51 } 52 52 53 $pot = new PO ;53 $pot = new PO(); 54 54 $pot->set_header( 'MIME-Version', '1.0' ); 55 55 $pot->set_header( 'Content-Type', 'text/plain; charset=UTF-8' ); … … 129 129 130 130 $tmp_directory = Filesystem::temp_directory( $this->plugin . '-readme-' . $tag ); 131 $pot_file = "{$tmp_directory}/{$this->plugin}-readme.pot";131 $pot_file = "{$tmp_directory}/{$this->plugin}-readme.pot"; 132 132 133 133 $exported = $pot->export_to_file( $pot_file ); … … 148 148 * Handles GlotPress "extracted comments" for translators to get context for each string translations. 149 149 * 150 * @param array $array Empty or existing arrays of string and comments150 * @param array $array Empty or existing arrays of string and comments 151 151 * @param string $key Unique key 152 152 * @param string $val Comment value
Note: See TracChangeset
for help on using the changeset viewer.