[MM-62293]: Remove Elasticsearch from translation strings (#29728)

We cannot simply use Elasticsearch any more because
we support Opensearch as well.

Therefore changing Elasticsearch to just say Search.

Note: There are still some cases where Elasticsearch
is used. That is intentional and necessary.

```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2025-01-08 11:11:59 +05:30
коммит произвёл GitHub
родитель e0e24aaa6f
Коммит 647c9b6808
4 изменённых файлов: 17 добавлений и 15 удалений

Просмотреть файл

@@ -1323,7 +1323,7 @@ func (es *ElasticsearchInterfaceImpl) PurgeIndexes(rctx request.CTX) *model.AppE
_, err := es.client.Indices.Delete(indexesToDelete).Do(ctx)
if err != nil {
rctx.Logger().Error("Elastic Search PurgeIndexes Error", mlog.Err(err))
return model.NewAppError("Elasticsearch.PurgeIndexes", "ent.elasticsearch.purge_indexes.delete_failed", nil, "", http.StatusInternalServerError).Wrap(err)
return model.NewAppError("Elasticsearch.PurgeIndexes", "ent.elasticsearch.purge_index.delete_failed", nil, "", http.StatusInternalServerError).Wrap(err)
}
return nil

Просмотреть файл

@@ -1435,7 +1435,7 @@ func (os *OpensearchInterfaceImpl) PurgeIndexes(rctx request.CTX) *model.AppErro
})
if err != nil {
rctx.Logger().Error("Opensearch PurgeIndexes Error", mlog.Err(err))
return model.NewAppError("Opensearch.PurgeIndexes", "ent.elasticsearch.purge_indexes.delete_failed", nil, "", http.StatusInternalServerError).Wrap(err)
return model.NewAppError("Opensearch.PurgeIndexes", "ent.elasticsearch.purge_index.delete_failed", nil, "", http.StatusInternalServerError).Wrap(err)
}
return nil

Просмотреть файл

@@ -4576,7 +4576,7 @@
},
{
"id": "app.channel.elasticsearch_channel_index.notify_admin.message",
"translation": "Your Elasticsearch channel index schema is out of date. It is recommended to regenerate your channel index.\nClick the `Rebuild Channels Index` button in [Elasticsearch section in System Console]({{.ElasticsearchSection}}) to fix the issue.\nSee Mattermost changelog for more information."
"translation": "Your search channel index schema is out of date. We recommend regenerating your channel index.\nClick the `Rebuild Channels Index` button in the [Elasticsearch page via the System Console]({{.ElasticsearchSection}}) to fix this issue.\nSee the Mattermost changelog for more information."
},
{
"id": "app.channel.get.existing.app_error",
@@ -7862,11 +7862,7 @@
},
{
"id": "ent.elasticsearch.purge_index.delete_failed",
"translation": "Failed to delete an Elasticsearch index"
},
{
"id": "ent.elasticsearch.purge_indexes.delete_failed",
"translation": "Failed to delete Elasticsearch index"
"translation": "Failed to delete a search index"
},
{
"id": "ent.elasticsearch.purge_indexes.unknown_index",
@@ -7874,7 +7870,7 @@
},
{
"id": "ent.elasticsearch.refresh_indexes.refresh_failed",
"translation": "Failed to refresh Elasticsearch indexes"
"translation": "Failed to refresh search indexes"
},
{
"id": "ent.elasticsearch.search_channels.disabled",
@@ -7942,11 +7938,11 @@
},
{
"id": "ent.elasticsearch.test_config.license.error",
"translation": "Your license does not support Elasticsearch."
"translation": "Your Mattermost license doesn't support indexed search."
},
{
"id": "ent.elasticsearch.test_config.reenter_password",
"translation": "The Elasticsearch Server URL or Username has changed. Please re-enter the Elasticsearch password to test connection."
"translation": "The Search Server URL or Username has changed. Please re-enter the password to test connection."
},
{
"id": "ent.get_users_in_channel_during",
@@ -8878,11 +8874,11 @@
},
{
"id": "model.config.is_valid.elastic_search.enable_autocomplete.app_error",
"translation": "Search EnableIndexing setting must be set to true when Elasticsearch EnableAutocomplete is set to true"
"translation": "{{.EnableIndexing}} setting must be set to true when {{.Autocomplete}} is set to true"
},
{
"id": "model.config.is_valid.elastic_search.enable_searching.app_error",
"translation": "Search EnableIndexing setting must be set to true when Elasticsearch EnableSearching is set to true"
"translation": "{{.EnableIndexing}} setting must be set to true when {{.Searching}} is set to true"
},
{
"id": "model.config.is_valid.elastic_search.ignored_indexes_dash_prefix.app_error",

Просмотреть файл

@@ -4300,11 +4300,17 @@ func (s *ElasticsearchSettings) isValid() *AppError {
}
if *s.EnableSearching && !*s.EnableIndexing {
return NewAppError("Config.IsValid", "model.config.is_valid.elastic_search.enable_searching.app_error", nil, "", http.StatusBadRequest)
return NewAppError("Config.IsValid", "model.config.is_valid.elastic_search.enable_searching.app_error", map[string]any{
"Searching": "ElasticsearchSettings.EnableSearching",
"EnableIndexing": "ElasticsearchSettings.EnableIndexing",
}, "", http.StatusBadRequest)
}
if *s.EnableAutocomplete && !*s.EnableIndexing {
return NewAppError("Config.IsValid", "model.config.is_valid.elastic_search.enable_autocomplete.app_error", nil, "", http.StatusBadRequest)
return NewAppError("Config.IsValid", "model.config.is_valid.elastic_search.enable_autocomplete.app_error", map[string]any{
"Autocomplete": "ElasticsearchSettings.EnableAutocomplete",
"EnableIndexing": "ElasticsearchSettings.EnableIndexing",
}, "", http.StatusBadRequest)
}
if *s.AggregatePostsAfterDays < 1 {