src/Modules/Translate.php
private function get_locale_paths( $locale ) {
		if ( empty( $locale ) ) {
			return '';
		}

		$slug = isset( self::$locales[ $locale ] ) ? self::$locales[ $locale ]['slug'] : '';
		if ( empty( $slug ) ) {
			return '';
		}
		if ( strpos( $slug, '/' ) === false ) {
			$slug .= '/default';
		}
		$url = 'https://translate.wordpress.org/projects/wp-' . $this->product->get_type() . 's/' . $this->product->get_slug() . '/' . ( $this->product->get_type() === 'plugin' ? 'dev/' : '' ) . $slug . '?filters%5Bstatus%5D=untranslated&sort%5Bby%5D=random';

		return $url;
	}
private function get_locale_paths( $locale ) {
		if ( empty( $locale ) ) {
			return '';
		}

		$slug = isset( self::$locales[ $locale ] ) ? self::$locales[ $locale ]['slug'] : '';
		if ( empty( $slug ) ) {
			return '';
		}
		if ( strpos( $slug, '/' ) === false ) {
			$slug .= '/default';
		}
		$url = 'https://translate.wordpress.org/projects/wp-' . $this->product->get_type() . 's/' . $this->product->get_slug() . '/' . ( $this->product->get_type() === 'plugin' ? 'dev/' : '' ) . $slug . '?filters%5Bstatus%5D=untranslated&sort%5Bby%5D=random';

		return $url;
	}
private function get_locale_paths ( $ locale ) { if ( empty ( $ locale ) ) { return '' ; } $ slug = isset ( self :: $ locales [ $ locale ] ) ? self :: $ locales [ $ locale ] [ 'slug' ] : '' ; if ( empty ( $ slug ) ) { return '' ; } if ( strpos ( $ slug , '/' ) === false ) { $ slug .= '/default' ; } $ url = 'https://translate.wordpress.org/projects/wp-' . $ this -> product -> get_type ( ) . 's/' . $ this -> product -> get_slug ( ) . '/' . ( $ this -> product -> get_type ( ) === 'plugin' ? 'dev/' : '' ) . $ slug . '?filters%5Bstatus%5D=untranslated&sort%5Bby%5D=random' ; return $ url ; }
Return the locale path.

@param string $locale Locale code.

@return string Locale path.
Return the locale path .