Language Switching for Embedded Graphics
- Last UpdatedJul 13, 2023
- 2 minute read
When you embed a graphic into another graphic, any translations are also loaded for the embedded graphic. Switching the language for a graphic also switches the language for all embedded graphics.
For example, a graphic G1 contains a text graphic with the text "English String." English is the default language. The text is set to "French String" for the French language. The following steps describe language switching for the embedded graphic:
-
You embed the graphic G1 into the graphic G2.
You see the text showing the "English String."
-
You switch the language to French in the editor of G2.
The text in the embedded graphic G1 switches to "French String."
If you convert an embedded graphic to a group, any translations defined for the embedded graphic are migrated to the new elements created in the graphic. If the embedded graphic supports languages that are not defined in the base graphic, those translations are removed during the conversion.
If you open a graphic containing one or more embedded graphics and the current language of the Industrial Graphic Editor is not available in the embedded graphics, then the embedded graphic uses the configured default language, if available. If the configured default language configured in your application, is not available, then the embedded graphics use the last saved default language of that graphic.
For example:
-
You create graphic S1 with French and German languages. The default language for your HMI/SCADA application is German.
-
You embed G1 inside G2 and then save and close G2.
-
You change the default application language to French.
-
You add English as another language.
If you open the graphic G2 in the English language, then the graphic G1 is shown using the French text. This is because French is the default language configured in the application.
Embedded graphics support translations for custom properties. For more information on translating custom properties, see Translating String Custom Properties.
Embedded graphics also support translations for string substitutions. For more information on translation and string substitutions, see String Substitutions and Language Switching.