Switch language for buttons on Command Bar

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 8
Joined: May 21, 2023
Company:

How to switch language of button titles for buttons on Command Bar like "Post and Close", "Save", "Post", "Print"?

 
#2
People who like this:0Yes/0No
Administrator
Rating: 23
Joined: Oct 3, 2019
Company:

Hello Peter,

do you want to switch the language of the buttons during the execution of the program? So that the user can do this?

Or is the wrong language displayed and you want to change it?

 
#3
People who like this:0Yes/0No
Active user
Rating: 8
Joined: May 21, 2023
Company:

Yes, I want to switch the interface language in the application mode. I have a constant which switches interface language. All the menus, forms, print forms are working already. The only thing that doesn't look right yet is the titles of the Command Bar buttons.

 
#4
People who like this:0Yes/0No
Active user
Rating: 8
Joined: May 21, 2023
Company:

I found a workaround and came up with a solution for this problem. In Command Bar I turned off Autofill option. Then on Tab Commands/Standard commands I clicked on the commands that I need and dropped them on the Command Bar. That created new buttons for these commands and placed them on the Command Bar. With these buttons I can work like with regular form elements and control them in any way I want. In my case in event handler OnCreateAtServer I replaced the titles of those buttons.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.