Jump to content

Arabic translation


SPBytes

Recommended Posts

I have had success with Chinese and Russian. I am applying the same method for Arabic that is outlined in the documentation that you linked.

The Windows locale setting for Chinese(Simplified) works for both Russian and Chinese.

When I apply any Arabic setting I get the screenshot above.

I have tried different Unicode file encoding methods and applied them directly to the Read Unicode File vi but always got the same strings for Arabic.

I attached my vi and json file.

1357178759_FrontPanelChinese.thumb.PNG.526286d0ba94026084890d6280829b7d.PNGLocale.PNG.ce8c1c91341b3aaad92501ec873de4a7.PNG

Dictionary.JSON Language Selection.vi

Link to comment
Share on other sites

Thanks for clarifying all the different things you’ve tried. I’m sorry that the instructions aren’t working correctly for Arabic. I don’t have any experience getting this tool working for Arabic, so I haven’t run up against this problem. I’ll ask some of my colleagues if they know anything about it

Link to comment
Share on other sites

As an update, I have been applying the file directly to the unicodeStringtoASCIIJKI_Simple_Localization.vi.

Arabic gets translated to ASCII correctly as shown in the screenshots.

Maybe a kernel32.dll function needs to be updated. Hopefully I find something and I will post it on this thread.

311687668_unicodestringtoASCII.thumb.PNG.aa1408e313471c2429d73bb2c8f0a5cf.PNGutf8toASCII.PNG.e33af92309e742821e82e88c95af03c4.PNGunicodeStringToASCII.thumb.PNG.791d97821a84eaf07746b771f29727f6.PNG

  • Like 2
Link to comment
Share on other sites

One thing I didn't notice before, the library will only accept UTF-8 without signature.

image.png.f719597cc7886efd7edc3b2c685bc00a.png

 

When a file is ran through with this encoding the file is accepted as an ASCII string through 'readUnicodeFileJKI_Simple_Localization.vi'. This works for Chinese and Russian, not for Arabic.

image.thumb.png.78f38ceb2073b54bd3fcc2a4e7aa0c75.png

 

If I try any other form of Unicode file encoding on the json file, the file will go through 'unicodeStringtoASCIIJKI_Simple_Localization.vi' that uses the WideCharToMultiByte function.

image.png.17a4ad8927d04faf7930df8c4bd5c872.png

image.thumb.png.35c3d9b1e767abf71be6ac729b1dd728.png

 

It will however fail at 'JKI JSON Serilization.lvlib:Unflatten From String.vi' which is the subsequent vi.

image.png.5209d6b6112e7a024ac0a3c9ed5d7ae0.png

image.thumb.png.d46d108e5e119f92435e4b43d7234e3e.png

 

Basically, I have found that anytime that 'unicodeStringtoASCIIJKI_Simple_Localization.vi' conditions are met, the 'JKI JSON Serilization.lvlib:Unflatten From String.vi' generates an error.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.