IRPCLanguagesAdmin.ApplyTranslations
Administration API / specialized admin session idempotent
Stores translated names in a target language.
| Service | Language administration MFiles.IRPCLanguagesAdmin |
|---|---|
| gRPC method | /MFiles.IRPCLanguagesAdmin/ApplyTranslations |
| HTTP (mf-http-grpc) | POST /grpc/v1/apply-translations |
| Request | ApplyTranslationsRequest |
| Response | ApplyTranslationsResponse |
| Book and level | Administration API, specialized |
| Kind | admin |
| Session | Required: the session ID from LogIn in the mfiles-session-id-bin metadata. |
| Idempotent | yes |
| Returns metadata structure version | no |
| Streaming | none (unary) |
Remarks
- Requires the vault rights
change_metadata_structure,license_allows_modificationsandsee_all_objects, and a server license that includes the languages feature. - When at least one translation is stored, the metadata structure version changes (clients reload the names) and the vault's search indexes are marked for re-indexing.
Request: ApplyTranslationsRequest
Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.
| Field | Type | Description |
|---|---|---|
target_language | int32 | The language the translations are for. |
ptranslations[] | repeated Translation | The translations, as returned by GetTranslations with target_string and state filled in. |
ptranslations[].id | string | Identifier. |
ptranslations[].source_string | string | The source string, or unset or an empty string. |
ptranslations[].source_version | int32 | The version of the source string, or zero. |
ptranslations[].target_string | string | The target string, or unset or an empty string. |
ptranslations[].state | TranslationState | The state of the target string, or etsNotTranslated.Values: TRANSLATION_STATE_NOT_TRANSLATED (0), TRANSLATION_STATE_TRANSLATED (1). |
apply_translated_only | bool | True to store only the entries whose state is TRANSLATION_STATE_TRANSLATED. |
Response: ApplyTranslationsResponse
No fields.