Skip to content

Commit

Permalink
Fixed english labels and some french translations
Browse files Browse the repository at this point in the history
  • Loading branch information
jreinke committed Oct 17, 2016
1 parent 507505e commit 60687a2
Show file tree
Hide file tree
Showing 34 changed files with 153 additions and 151 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ local.properties
.loadpath
.project
.buildpath

.idea/
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Smile\ElasticsuiteCatalog\Model\ResourceModel\Category\Indexer\Fulltext\Action\Full as ResourceModel;

/**
* ElasticSearch categories full indexer
* Elasticsearch categories full indexer
*
* @category Smile
* @package Smile\ElasticsuiteCatalog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Smile\ElasticsuiteCatalog\Model\ResourceModel\Product\Indexer\Fulltext\Action\Full as ResourceModel;

/**
* ElasticSearch product full indexer.
* Elasticsearch product full indexer.
*
* @category Smile
* @package Smile\ElasticsuiteCatalog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Smile\ElasticsuiteCatalog\Model\ResourceModel\Eav\Indexer\Indexer;

/**
* ElasticSearch category full indexer resource model.
* Elasticsearch category full indexer resource model.
*
* @category Smile
* @package Smile\ElasticsuiteCatalog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Magento\CatalogSearch\Model\ResourceModel\Engine as MySqlEngine;

/**
* ElasticSearch search engine implementation.
* Elasticsearch search engine implementation.
*
* @category Smile
* @package Smile\ElasticsuiteCatalog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Smile\ElasticsuiteCatalog\Model\ResourceModel\Eav\Indexer\Indexer;

/**
* ElasticSearch product full indexer resource model.
* Elasticsearch product full indexer resource model.
*
* @category Smile
* @package Smile\ElasticsuiteCatalog
Expand Down
4 changes: 2 additions & 2 deletions src/module-elasticsuite-catalog/etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
<group id="product_autocomplete" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Product Autocomplete</label>
<field id="max_size" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Max size</label>
<label>Max Size</label>
<validate>integer</validate>
<comment><![CDATA[Maximum number of products to display in autocomplete results.]]></comment>
</field>
</group>
<group id="category_autocomplete" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Category Autocomplete</label>
<field id="max_size" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Max size</label>
<label>Max Size</label>
<validate>integer</validate>
<comment><![CDATA[Maximum number of categories to display in autocomplete results.]]></comment>
</field>
Expand Down
2 changes: 1 addition & 1 deletion src/module-elasticsuite-catalog/i18n/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ OK,OK
"Show more","Show more"
"Your product selection is empty.","Your product selection is empty."
"Product Autocomplete","Product Autocomplete"
"Max size","Max size"
"Max Size","Max Size"
"ElasticSuite Category Indexing","ElasticSuite Category Indexing"
"Reindex ElasticSuite catalog categories.","Reindex ElasticSuite catalog categories."
"Is Spellchecked","Is Spellchecked"
Expand Down
6 changes: 3 additions & 3 deletions src/module-elasticsuite-catalog/i18n/fr_FR.csv
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ OK,OK
"Show more","Voir plus"
"Your product selection is empty.","Votre sélection de produits est vide."
"Product Autocomplete","Autocomplétion des produits"
"Max size","Taille maximum"
"Max Size","Taille maximum"
"ElasticSuite Category Indexing","Index des catégories Elastic Suite"
"Reindex ElasticSuite catalog categories.","Reconstruire l'index de catégories ElasticSuite."
"Is Spellchecked","Recherche Approchante"
"Is Spellchecked","Recherche approchante"
Yes,Oui
No,Non
"Maximum number of products to display in autocomplete results.","Nombre maximum de produits à afficher dans les résultats de l'autocomplétion."
"Category Autocomplete","Autocomplétion des catégories"
"Maximum number of categories to display in autocomplete results.","Nombre maximum de catégories à afficher dans les résultats de l'autocomplétion."
"Use Category Name in product search","Utiliser le nom de la catégorie dans les résultats de recherche"
"Catalog Search","Recherche Catalogue"
"Catalog Search","Recherche catalogue"
"Catalog Search Configuration","Configuration de la recherche catalogue"
"Redirect to product page if only one result","Rediriger vers la fiche produit pour un résultat unique"
"If there is only one product matching a given search query, the user will be redirect to this product page.","Si une recherche ne renvoie qu'un seul produit, l'utilisateur sera redirigé vers la fiche de ce produit."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
namespace Smile\ElasticsuiteCore\Api\Client;

/**
* Provides a simple way to retrieve an ElasticSearch client.
* Provides a simple way to retrieve an Elasticsearch client.
*
* @category Smile_Elasticsuite
* @package Smile\ElasticsuiteCore
Expand Down
2 changes: 1 addition & 1 deletion src/module-elasticsuite-core/Api/Index/IndexInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
namespace Smile\ElasticsuiteCore\Api\Index;

/**
* Representation of a ElasticSearch index.
* Representation of a Elasticsearch index.
*
* @category Smile_Elasticsuite
* @package Smile\ElasticsuiteCore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
namespace Smile\ElasticsuiteCore\Api\Index\Mapping;

/**
* Representation of a ElasticSearch field (abstraction of mapping properties).
* Representation of a Elasticsearch field (abstraction of mapping properties).
*
* @category Smile_Elasticsuite
* @package Smile\ElasticsuiteCore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterface;

/**
* Representation of a ElasticSearch type mapping.
* Representation of a Elasticsearch type mapping.
*
* @category Smile_Elasticsuite
* @package Smile\ElasticsuiteCore
Expand Down
2 changes: 1 addition & 1 deletion src/module-elasticsuite-core/Api/Index/TypeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
namespace Smile\ElasticsuiteCore\Api\Index;

/**
* Representation of a document type in an ElasticSearch index.
* Representation of a document type in an Elasticsearch index.
*
* @category Smile_Elasticsuite
* @package Smile\ElasticsuiteCore
Expand Down
6 changes: 3 additions & 3 deletions src/module-elasticsuite-core/Client/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use Smile\ElasticsuiteCore\Api\Client\ClientFactoryInterface;

/**
* Provides a simple way to retrieve an ElasticSearch client.
* Provides a simple way to retrieve an Elasticsearch client.
*
* @category Smile
* @package Smile\ElasticsuiteCore
Expand All @@ -47,8 +47,8 @@ class ClientFactory implements ClientFactoryInterface
/**
* Factory constructor.
*
* @param ClientConfigurationInterface $clientConfiguration ElasticSearch configuration helper.
* @param LoggerInterface $logger ElasticSearch logger.
* @param ClientConfigurationInterface $clientConfiguration Elasticsearch configuration helper.
* @param LoggerInterface $logger Elasticsearch logger.
*/
public function __construct(ClientConfigurationInterface $clientConfiguration, LoggerInterface $logger)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
class ClientConfiguration extends AbstractConfiguration implements ClientConfigurationInterface
{
/**
* Location of ElasticSearch client configuration.
* Location of Elasticsearch client configuration.
*
* @var string
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Magento\Framework\Indexer\SaveHandler\Batch;

/**
* Eav Indexing operation handling for ElasticSearch engine.
* Eav Indexing operation handling for Elasticsearch engine.
*
* @category Smile
* @package Smile\ElasticsuiteCatalog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Magento\Framework\ObjectManagerInterface;

/**
* Build ElasticSearch queries from search request QueryInterface queries.
* Build Elasticsearch queries from search request QueryInterface queries.
*
* @category Smile
* @package Smile\ElasticsuiteCore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Smile\ElasticsuiteCore\Search\Request\QueryInterface;

/**
* Build ElasticSearch queries from search request QueryInterface queries.
* Build Elasticsearch queries from search request QueryInterface queries.
*
* @category Smile
* @package Smile\ElasticsuiteCore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Request\Query\Builder as QueryBuilder;

/**
* Build ElasticSearch sort orders from search request specification interface.
* Build Elasticsearch sort orders from search request specification interface.
*
* @category Smile
* @package Smile\ElasticsuiteCore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterface;

/**
* Spellchecker ElasticSearch implementation.
* Spellchecker Elasticsearch implementation.
* This implementation rely on the ES term vectors API.
*
* @category Smile
Expand All @@ -42,7 +42,7 @@ class Spellchecker implements SpellcheckerInterface
*/
public function __construct(ClientFactoryInterface $clientFactory)
{
$this->client = $clientFactory->createClient();
$this->client = $clientFactory->createClient();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/module-elasticsuite-core/Search/Request/Query/Term.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Term implements QueryInterface
private $field;

/**
* The term query produce an ElasticSearch term query.
* The term query produce an Elasticsearch term query.
*
* @param string $value Search value.
* @param string $field Search field.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
class Terms extends Term
{
/**
* The term query produce an ElasticSearch terms query.
* The term query produce an Elasticsearch terms query.
*
* @param string|array $values Search values. String are exploded using the comma as separator.
* @param string $field Search field.
Expand Down
2 changes: 1 addition & 1 deletion src/module-elasticsuite-core/Search/RequestInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function getType();
* Hits filter (does not apply to aggregations).
* Filter are actually using QueryInterface since there is no differences
* beetween queries and filters in ElasticSearch 2.x DSL.
* beetween queries and filters in Elasticsearch 2.x DSL.
*
* @return QueryInterface
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,27 @@

<section id="relevance" translate="label" type="text" sortOrder="10" showInDefault="1" showInContainer="1" showInStore="1">
<tab>general</tab>
<label>Relevance configuration</label>
<label>Relevance Configuration</label>
<resource>Smile_ElasticsuiteCore::manage_relevance</resource>

<group id="fulltext_base_settings" translate="label" type="text" sortOrder="10" showInDefault="1" showInContainer="1" showInStore="1">
<label>Fulltext base settings</label>
<label>Fulltext Base Settings</label>
<field id="minimum_should_match" translate="label" type="text" sortOrder="10" showInDefault="1" showInContainer="1" showInStore="1">
<label>Minimum Should Match</label>
</field>
<field id="tie_breaker" translate="label" type="text" sortOrder="20" showInDefault="1" showInContainer="1" showInStore="1">
<label>Tie breaker</label>
<label>Tie Breaker</label>
</field>
</group>

<group id="phrase_match_configuration" translate="label" type="text" sortOrder="20" showInDefault="1" showInContainer="1" showInStore="1">
<label>Phrase match configuration</label>
<label>Phrase Match Configuration</label>
<field id="enable_phrase_match" translate="label" type="select" sortOrder="10" showInDefault="1" showInContainer="1" showInStore="1">
<label>Enable boost on phrase match</label>
<label>Enable Boost on Phrase Match</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="phrase_match_boost_value" translate="label" type="text" sortOrder="20" showInDefault="1" showInContainer="1" showInStore="1">
<label>Phrase match boost value</label>
<label>Phrase Match Boost Value</label>
<depends>
<field id="enable_phrase_match">1</field>
</depends>
Expand All @@ -51,9 +51,9 @@
</group>

<group id="cutoff_frequency_configuration" translate="label, comment" type="text" sortOrder="30" showInDefault="1" showInContainer="1" showInStore="1">
<label>Cutoff frequency configuration</label>
<label>Cutoff Frequency Configuration</label>
<field id="cutoff_frequency" translate="label" type="text" sortOrder="10" showInDefault="1" showInContainer="1" showInStore="1">
<label>Cutoff frequency</label>
<label>Cutoff Frequency</label>
<!--<validate>validate-digits validate-digits-range validate-zero-or-greater</validate>-->
<comment><![CDATA[A number between 0 and 1. Used as automatic stopwords detection threshold.]]></comment>
</field>
Expand All @@ -62,17 +62,17 @@

<section id="spellchecking" translate="label" type="text" sortOrder="20" showInDefault="1" showInContainer="1" showInStore="1">
<tab>general</tab>
<label>Spellchecking configuration</label>
<label>Spellchecking Configuration</label>
<resource>Smile_ElasticsuiteCore::manage_relevance</resource>

<group id="fuzziness" translate="label" type="text" sortOrder="40" showInDefault="1" showInContainer="1" showInStore="1">
<label>Search fuzziness configuration</label>
<label>Search Fuzziness Configuration</label>
<field id="enable" translate="label" type="select" sortOrder="10" showInDefault="1" showInContainer="1" showInStore="1">
<label>Enable fuzziness</label>
<label>Enable Fuzziness</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="value" translate="label, comment" type="select" sortOrder="20" showInDefault="1" showInContainer="1" showInStore="1">
<label>Fuzziness value</label>
<label>Fuzziness Value</label>
<source_model>Smile\ElasticsuiteCore\Model\Config\Source\FuzzinessValue</source_model>
<depends>
<field id="enable_fuzziness">1</field>
Expand All @@ -89,7 +89,7 @@
<comment><![CDATA[An integer between greater or equal than 0. See doc <a href='https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-fuzzy-query.html#_parameters_7' target='_blank'>here</a> for more information.]]></comment>
</field>
<field id="max_expansion" translate="label, comment" type="text" sortOrder="40" showInDefault="1" showInContainer="1" showInStore="1">
<label>Max. expansion</label>
<label>Max Expansion</label>
<depends>
<field id="enable_fuzziness">1</field>
</depends>
Expand All @@ -99,21 +99,21 @@
</group>

<group id="phonetic" translate="label, comment" type="text" sortOrder="50" showInDefault="1" showInContainer="1" showInStore="1">
<label>Phonetic search configuration</label>
<label>Phonetic Search Configuration</label>
<field id="enable" translate="label" type="select" sortOrder="10" showInDefault="1" showInContainer="1" showInStore="1">
<label>Enable phonetic search</label>
<label>Enable Phonetic Search</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment> <![CDATA[Require <a href='https://github.com/elastic/elasticsearch-analysis-phonetic'>Phonetic analysis</a> plugin installation.]]></comment>
</field>
<field id="enable_fuzziness" translate="label" type="select" sortOrder="20" showInDefault="1" showInContainer="1" showInStore="1">
<label>Enable phonetic fuzziness</label>
<label>Enable Phonetic Fuzziness</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<depends>
<field id="enable_phonetic_search">1</field>
</depends>
</field>
<field id="fuzziness_value" translate="label, comment" type="text" sortOrder="30" showInDefault="1" showInContainer="1" showInStore="1">
<label>Phonetic fuzziness value</label>
<label>Phonetic Fuzziness Value</label>
<depends>
<field id="enable_phonetic_search">1</field>
<field id="enable_phonetic_fuzziness">1</field>
Expand All @@ -122,7 +122,7 @@
<comment><![CDATA[Allowed values "0", "1" or "AUTO". See doc <a href='https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-fuzzy-query.html#_parameters_7' target='_blank'>here</a> for more information.]]></comment>
</field>
<field id="fuzziness_prefix_length" translate="label, comment" type="text" sortOrder="40" showInDefault="1" showInContainer="1" showInStore="1">
<label>Phonetic fuzziness prefix length</label>
<label>Phonetic Fuzziness Prefix Length</label>
<depends>
<field id="enable_phonetic_search">1</field>
<field id="enable_phonetic_fuzziness">1</field>
Expand All @@ -131,7 +131,7 @@
<comment><![CDATA[An integer between greater or equal than 0. See doc <a href='https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-fuzzy-query.html#_parameters_7' target='_blank'>here</a> for more information.]]></comment>
</field>
<field id="fuzziness_max_expansion" translate="label, comment" type="text" sortOrder="50" showInDefault="1" showInContainer="1" showInStore="1">
<label>Phonetic fuzziness max expansion</label>
<label>Phonetic Fuzziness Max Expansion</label>
<depends>
<field id="enable_phonetic_search">1</field>
<field id="enable_phonetic_fuzziness">1</field>
Expand Down
Loading

0 comments on commit 60687a2

Please sign in to comment.