ColumnFilter | Language/Localization

0
0

Hi, my culture in default.json is set to pt-PT, and i’ve also created a Resources.pt.resx (wich is working).

However, i can’t find a way to properly change this “Claro” wich is wrong and should be “Limpar”.

I tried to add $clean, #clear, even tried clear.Text or selectAll.Text in the resources.pt.resx.
Can someone please try to help me find wich variable should I use to translate this correctly?

Attachment
  • You must to post comments
0
0

Thanks Frank.

As a temporary workaround, I used a JavaScript MutationObserver to replace the incorrect Portuguese translation "Claro" with "Limpar" when the filter popup is created.

Example workaround:

private void Window1_Load(object sender, EventArgs e)
{
    LoadData();

    dataGridView1.AllowColumnFilter = true;

    this.Eval(@"

        const observer = new MutationObserver(function() {

            document.querySelectorAll('a').forEach(function(a) {

                if (a.textContent.trim() === 'Claro') {
                    a.textContent = 'Limpar';
                }

            });

        });

        observer.observe(document.body, {
            childList: true,
            subtree: true
        });

    ");
}

I am also attaching a small Wisej 4 sample project in case it helps others reproduce the issue.

Hopefully this helps anyone facing the same Portuguese translation problem until the official fix is included in the next Wisej.NET release.

Regards, Paul

  • You must to post comments
0
0

Hi Ruben,

it should be clear.Text in SimpleColumnFilterPanel.pt.resx

We will change it for the next Wisej.NET releases.

Best regards
Frank

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.