Desktop version

Main > Forum > 1C:Enterprise Platform > Studying 1C:Enterprise platform > Language Changing

Forum

Search UsersRules
Language Changing
#1
Interested
Points:: 0
Joined:: Sep 30, 2020

Hello,

I want to change text area language in order to user.For example,If user enter the system as English,user can enter english record in  text area or ıf user enter the system as Portuguese,user can enter portuguese record in text area.

I don't say program language, I mean that language of data area must be change by user language.How can I do this?

Profile
#2
Just came
Points:: 0
Joined:: Aug 15, 2018

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.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.