Changeset 8749
- Timestamp:
- 05/08/2019 04:48:37 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-suggestions/inc/routes/class-translation-memory.php
r8732 r8749 10 10 class Translation_Memory extends GP_Route { 11 11 12 public function get_suggestions( $project_path, $locale_slug ) {12 public function get_suggestions( $project_path, $locale_slug, $set_slug ) { 13 13 $original_id = gp_get( 'original' ); 14 14 $nonce = gp_get( 'nonce' ); … … 27 27 } 28 28 29 $suggestions = Translation_Memory_Client::query( $original->singular, $locale_slug ); 29 $locale = $locale_slug; 30 if ( 'default' !== $set_slug ) { 31 $locale .= '_' . $set_slug; 32 } 33 34 $suggestions = Translation_Memory_Client::query( $original->singular, $locale ); 30 35 31 36 if ( is_wp_error( $suggestions ) ) { … … 36 41 } 37 42 } 43
Note: See TracChangeset
for help on using the changeset viewer.