Internationalizing Auto Name Series and Size

To internationalize the autoname series and size text, you need to add properties to string resources files. This procedure shows you how to internationalize autonaming for Part and Product; you can use this procedure as a guideline for internationalizing autonaming for other object types.

  1. In the emxFrameworkStringResource.properties and emxFrameworkStringResource_en.properties files, add these lines:

    emxFramework.Type.Part.Autoname.Size = {0} Size
    emxFramework.Type.Product.Autoname.Series = {0} Series

    These properties use this format:

    emxFramework.Type.<parent type>.Autoname.<word to translate> = 
    {macro}<translated word>
    

    where:

    <parent type> is the top-level parent of the type

    <word to translate> is the word this property is defining for translation

    {macro} is the MQL macro to replace the size count

    <translated word> is the English translation of the word

  2. In Business Modeler, configure automatic business object naming for the Part. See Configuring Automatic Business Object Naming. The eService Object Generator and eService Number Generator objects may already exist and you need to edit the revision; or you may need to create these objects.

    When defining the revision for the eService Object Generator for the type_Part , use this format for entering the revision:

    <size count><space><size word>

    For example: A Size (for the type_Part eService Object Generator) or A Series for the type_Product eService Object Generator). You need to define eService Object Generator/eService Number Generator objects for each size and series.

  3. In the string resources file for each language, enter equivalent properties for the properties defined in step 1.

    For example, in emxFrameworkStringResource_fr.properties, enter:

    emxFramework.Type.Part.Autoname.Size = Taille {0}

    and in emxFrameworkStringResource_de.properties, enter:

     emxFramework.Type.Part.Autoname.Size ={0}-Gr\u00f6\u00dfe

    The text to the left of the = symbol must match the property entered in emxFrameworkStringResource.properties.