1. Niclas Graufelds
  2. PowerBuilder
  3. Friday, 29 April 2022 12:06 PM UTC

Hi,

I am opening a web page from within the Web browser control . The web page has text area with spell checking enabled. When opening the page locally I get Swedish spell checking (which I want) but from within the web browser control, I get English. How can I handle this? I want Swedish. 

See my two attachments.
- When I open the web page (which is located on my PC) from Chrome, I'll get Swedish dictionary (swedish_vocabulary_in_chrome.PNG).
- If I open the same file from within the web browser control wrapped in a window, I get English dictionary (english_vocabulary_in_webbrowser.PNG(


Best regards
Niclas Graufelds

Attachments (2)
Niclas Graufelds Accepted Answer Pending Moderation
  1. Monday, 2 May 2022 14:47 PM UTC
  2. PowerBuilder
  3. # 1

Hi @Kai,

 

I Tried your solution and it worked. If I rename the sv.pak file to en-US.pak on my local machine, then I'll get Swedish spell checking in the web browser control. So for me it probably will work as a work around since our application is single language.

 

Thanks for your help,
Niclas

Comment
  1. Kai Zhao @Appeon
  2. Thursday, 5 May 2022 00:13 AM UTC
Glad to hear that!
  1. Helpful
There are no comments made yet.
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Monday, 2 May 2022 02:43 AM UTC
  2. PowerBuilder
  3. # 2

Hi Niclas,

Please follow the steps below to replace the language file directly to see if it works. And I will record it as an enhancement request and transfer it to our product team for consideration.

1. Close PB IDE and application.
2. Back up the %PowerBuilder Runtime%\pbcef\locales\en-US.pak and delete file en-US.pak from this path. For example, C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime 21.0.0.1288\pbcef.

3. Make a copy of pbcef\locales\sw.pak and rename the copy to en-US.pak.

Regards,
Kai

Comment
  1. Arnd Schmidt
  2. Monday, 2 May 2022 12:28 PM UTC
Hi Niclas,

if that is an internal webpage and you want the users to enter text in swedisch, you can try to use the HTML lang Attribute for the page or a specific element.

https://developer.mozilla.org/de/docs/Web/HTML/Global_attributes/lang



hth

Arnd
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.