How I understand, you wont to create some items, on few language, and fill description on users lang, and show him this items on hos lang. If yes, then we do it like this:
You can create common attribute as Description_en, Description_fr etc.
Set catalogs, which you want use like multilang.
After that create subscription, on event PresentationFieldsGetProcessing by Catalog manager, and say which attributes you need, to create presentation, like:
Code |
---|
Procedure PresentationFieldsGetProcessing(Source, Fields, StandardProcessing) Export
Fields.Add("Description_en");
Fields.Add("Description_fr");
EndProcedure |
After that create one more event subscription PresentationGetProcessing, and put this code:
Code |
---|
Procedure GetCatalogPresentation(Source, Data, Presentation, StandardProcessing) Export
UserLangCode = SomeFunctionToGetUsersLangCode();
Presentation = Data["Description_" + UserLangCode];
EndProcedure |
But, you have to know, that you have use manual sorting by field, not Ref, example in reports, or some list.
And, it will take some to additional time to show you large report.