I am currently using `getCatStr` API of WinCC OA to get a translation for a given message key from a catalog.
When provide such a message catalog in a `base` project (which should be used by all application projects as a subproject), this API fails and the application developer has to copy manually all the message files itself.
Questions:
1) What do i make wrong?
2) Is there the only way to copy these files?
3) How is the handling of WinCC OA?
Perhaps i missed some point.
With regards,
Frank Lindecke
Getting message catalog content from a subproject
- flindecke
- Posts:69
- Joined: Wed Jun 24, 2015 1:54 pm
Getting message catalog content from a subproject
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Getting message catalog content from a subproject
When using getCatStr() in CONTROL also the catalogues from the sub projects or the WinCC OA version are used. The first catalogue (search order: WinCC OA project --> sub projects --> WinCC OA version) which fits the name is used. If the message keyword cannot be found within this catalogue an error is returned that the catalogue entry was not found.
There is no need to copy all the files into the project directory.
Best Regards
Leopold Knipp
Senior Support Specialist
There is no need to copy all the files into the project directory.
Best Regards
Leopold Knipp
Senior Support Specialist