8/17/2023 0 Comments Online xliff editorObjectName syntax (based on the “Name” field in the Property list) The purpose of this syntax is to facilitate the translation of forms - unlike the other syntaxes, it is only used with forms.In this case, the referenced value ( OKButton in the example) designates the resname attribute of the trans-unit element. :xliff:OKButton syntax This alternative syntax can only be used with loaded XLIFF files.In all cases, loaded XLIFF files have priority over resource files if the same string is present in both locations. With this mechanism, you can implement an XLIFF-based system in an application without having to edit your existing dynamic string references: you just need to copy an XLIFF file at the correct location (see below) and it will be taken into account by 4D. In fact, 4D will first try to locate and use the values corresponding to 15115,3 in all loaded XLIFF files then, if it does not find the string, it will search for it in all the open resource files. This way you can keep a resource-based system in a converted database while installing a new XLIFF system. For example, “:15115,3” means that 4D must use the 3rd element of the STR# resource number 15115. Compatibility note: This syntax is exactly the same as that of the “former generation” STR# resources, of the type “:xxxx,yyy” where xxxx is the number of the STR# resource and yyy is the element number. The second value (3 in the example) designates the id attribute of the trans-unit element. :15115,3 syntax When this syntax is used with XLIFF files, the first value (15115 in the example) designates the id attribute of the group element.In 4D, you can use automatic XLIFF references via one of the following syntaxes: Both systems can be used at the same time, in particular in converted applications (this point is detailed in the following pages). This system is nevertheless now obsolete. In the Form editor, you can see the "real" contents of static areas by clicking in the Form editor area or by choosing Show Format or Show Name in the Object menu:Ĭompatibility note: In addition to XLIFF, 4D still supports the previous system, based on the concept of “resources” (of the STR# type). Note: You can also read strings stored in XLIFF files directly using the Get localized string command. The XLIFF standard uniformizes the mode of referencing and displaying labels. When the application is executed, these elements are displayed dynamically from external files depending on the linguistic context. In forms, menus, and so on, the labels and pictures are specified as references. The principle for setting up a 4D application interface that is translated dynamically is as follows: all the elements that depend on the language (text, labels and pictures) are stored outside the application, as files, in a folder named Resources. This technology is used internally for 4D applications, and 4D developers as well as plug-ins developers will be able to benefit from this new implementation in their own customized applications and plug-ins. 4D supports the XLIFF standard for the localization of interface text and titles.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |