localization issue

Add-in Express™ Support Service
That's what is more important than anything else

localization issue
 
Andriy


Guest


Hello,

We are working with localization for our add-in, it uses AddinExpress.Outlook.Regions. Is it possible to localize headers of default Outlook panels: "Folder view", "Reading Pain", atc?
[img]https://drive.google.com/open?id=15szp-hU5qEQhdXC870R-DvS7y5NLXQGW[/img]
Posted 04 Feb, 2020 08:42:14 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello Andriy,

I'll need some time to get an answer. I suppose I'll have it next Monday.


Andrei Smolin
Add-in Express Team Leader
Posted 05 Feb, 2020 06:02:24 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello Andriy,

In a minute, I'll send you a raw example. Please let me know if it is okay with you.


Andrei Smolin
Add-in Express Team Leader
Posted 10 Feb, 2020 05:59:46 Top
Andriy


Guest


Hello Andrei,

Forgot that our organization changed email address for me - I have updated my profile. Can you resend the sample for me?

Best regards, Andriy.
Posted 11 Feb, 2020 06:43:30 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello Andriy,

Done.


Andrei Smolin
Add-in Express Team Leader
Posted 11 Feb, 2020 07:39:53 Top
Andriy


Guest


I have checked your solutions.

It works for panel header, but with this solution I still cant translate item in dropdown:
[img]https://drive.google.com/file/d/15szp-hU5qEQhdXC870R-DvS7y5NLXQGW/view?usp=sharing[/img]

Could I translate dropdown item header?
Posted 11 Feb, 2020 09:13:44 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello Andriy,

Try this code:

    public class MyControlControl : ADXContainerControlOL
    {
        protected override void OnDrawHeader(DrawArgs e)
        {
            base.OnDrawHeader(e);
        }

        protected override void OnInitialized()
        {
            base.OnInitialized();
            if (Owner.IsHandleCreated)
                SetOwnerText();
            else
                Owner.HandleCreated += (sender, e) => SetOwnerText();
        }

        private void SetOwnerText()
        {
            if (AddinModule.LanguageID == 1031)
                Owner.Text = "Lesebereich";
        }

        protected override void OnDrawText(DrawTextArgs e)
        {
            if (AddinModule.LanguageID == 1031) // de-de
                e.Text = "Lesebereich";
            base.OnDrawText(e);
        }
    }



Andrei Smolin
Add-in Express Team Leader
Posted 12 Feb, 2020 03:33:45 Top