Jump to content

[CR] SET Localization Toolkit


Recommended Posts

Some important things to note:

 

- The source posted is actually for LabVIEW 2013.

 

- Version 0.3 is an alpha release. Expect to encounter bugs.

 

- Make sure that you add "UseUnicode=True" to the LabVIEW.ini file and restart LabVIEW before running the program..

 
- To start the program, run the "Launcher.vi" located in the "SET Language Editor" folder.
Link to comment

Strings supported as of version 0.3.1:

 

Front Panel

- Custom Title

 
Front Panel Decoration Text
- All
 
Block Diagram String Constants (Not located within a structure)
- Extracted if Label Visible
- Labeled String Constants within Labeled Clusters will be extracted.
- Block Diagram Array Strings currently not supported. 
 
All front pane Controls
- Visible Captions
- Tip Strips
 
Boolean Controls
- Visible Boolean Text
 
Ring Controls
- Item Strings
 
String Controls
- Default Value
 
Run-Time Menus
- Item Name if Item Tag doesn't start with APP
Edited by Porter
Link to comment
  • 1 month later...
  • 3 months later...

Thank you for making this toolkit free for us all to look at.  I was looking into making a similar (but much less sophisticated) toolkit.

 

A possible update:  The Add Language popup will only let you select from Languages already populated by the developer, ie you cannot "add" a language by typing the language while using the toolkit.  It looks like I would need to edit the Language Selector.ctl to add more languages, then reopen the toolkit in LabVIEW to add the language to my project.

  • Like 1
Link to comment

I will look into adding this feature. The reason why I made a static language list was because I link the language to its associated code page. I suppose that it would make more sense to store this information in a config file that the user can modify.

Link to comment
  • 1 month later...
  • 2 weeks later...
  • 3 years later...
  • 1 year later...
  • 1 year later...

I click new project, but the window suddenly disappeared.I try to find out what cause it, and finally I find in the vi "Get All VIs from Project" will bring out error code "43" and "1026".I can clear these errors and it works well.But I don't know the root reason.If guys have the problem same with me, you can try it.

屏幕截图 2021-10-25 105113.png

Link to comment
5 hours ago, qiuhonglin said:

I click new project, but the window suddenly disappeared.I try to find out what cause it, and finally I find in the vi "Get All VIs from Project" will bring out error code "43" and "1026".I can clear these errors and it works well.But I don't know the root reason.If guys have the problem same with me, you can try it.

屏幕截图 2021-10-25 105113.png

Addition to this, I find this work abnormal on Chinease chanslation. After try, don't open my target *.lvproj first, but open the set tool window first, it works well. I didn't try open the target *.lvproj when I want to use this tool afterwards.

Link to comment

From your project image you seem to have many conflicts. It's likely that you are picking up another version or VI's in a different location in your project.

You need to resolve the conflicts before any troubleshooting can occur.

  • Like 2
Link to comment

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.

  • Similar Content

    • By Porter
      The SET Localization Toolkit provides more convenient edit-time language switching support for LabVIEW 2013 projects.
       
      UI text is extracted from an existing project and stored in a localization file. Additional languages can be added then applied to the project using the apply language wizard.
       
      The idea is to be able to quickly apply a language to a project before distribution. Applying the language at edit-time allows you to fix up the UI in the target language. Change fonts and re-size controls so that it looks right before compiling it.
       
      Features:
      - No modification of project's source code required. No additional dependencies.
      - Support for switching code pages.
      - Ability to define shared resources.
      - Resources referenced via UID. Changing labels of control does not break linkage.
      - Resources can be exported to CSV file for external translation.
      - Resources stored as UTF-16LE text.
      - Ability to translate RTM files.
       
      Requirements:
      - Unicode support enabled in the LabVIEW.ini file
       
      Installation:
      - Download the ".vip" file and install using VI Package Manager 2014
      - Make sure that "UseUnicode=True" is set in the "labview.ini" file
       
      Usage:
      - From within any LabVIEW window, select "Tools->LAVA->SET Project Editor"
      GitHub: https://github.com/rfporter/SET-Toolkit
    • By vix
      I downloaded SET Localization Toolkit 0.4.0.1 and installed in LabVIEW 2016.
      I set "UseUnicode=True" the "labview.ini" file
      I created a dummy example with a boolean button, trying to localize in Chinese (trad) - see attachment project.zip
      But neither in the "Preview VIs", nor in the VI itslef after having applied Chinese language I can see Chinese characters - see attachment image.png
       
      I'm almost sure I missed something, but I don't understand what.

      project.zip
×
×
  • Create New...

Important Information

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