Compiling an Archive
When your interface is finalized and you are ready to distribute it to others, you can compile all development files into a builder archive. Right-click the Development Files branch and choose Compile to Archive Folder. Either choose an empty folder or create a new one. When the compilation is finished, the new archive folder can be found as a new branch under the Archives branch. The archive is a folder containing your source builder files, the compiled builder files, all files the builder files refer to (icons for example), the necessary Java® code, and a set of language files for translation. The language files are ordinary text files where you can add a translation to all descriptions displayed for your interfaces. A language file has the following format:
##
# German language file
#
# Original description = Auto current calculation
deployment1.phys1.description = Automatische Stromberechnung
# Original description = Current domain
deployment1.phys1.feat1.description = Stromführender Bereich
All lines starting with a hash symbol (#) are comments. All files use the original description string by default, but you replace them when translating. The original description is always in the comment above the translation for reference. Do not change the tag on the left side of the equal sign. This is used by the COMSOL Multiphysics software to identify the description. The tag is a path to an entity within a builder file with the localization tag set to deployment1 in the above example. You can change this tag in the Root window of the root node of a builder file. Enter the new tag in the Localization tag field, located in the Physics Builder section. You can also select the type of localization tang from the Localization tag list: Individual resources for all descriptions (the default), Re-use identical resources, or Use built-in COMSOL resources. For the last option, the Localization tag field is not used.
If you recompile an archive into to an existing archive, the compilation replaces all files except the language files. The compilation tries to merge the language files, by adding new descriptions, removing unused descriptions, and leave translated descriptions untouched. Unused or unreferenced files are kept in the archive.
Do not open a builder file from the Compiled builder files folder in an archive or add it to the development files. These files might contain file references that only work in a compressed archive (*.jar). Furthermore, they might also contain encrypted expressions that you cannot read or change.