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.

String resource files follow the same procedure as properties files for editing the contents. You must create a page object using the exact names of the string resource files: emxFrameworkStringResource.properties and emxFrameworkStringResource_en.properties. In addition, you will have string resource files and the equivalent page objects for any language translations you want to provide.

You should create a text file containing the edited and added string resources for each string resource file. Edit that text file to add the properties below, and then import the file into the page object. For more information, see Editing Properties Using MQL.

  1. Create or open the text files to contain customized string resource properties.
  2. Add or edit these lines in the file used to import string resource properties into a page object:

    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

  3. Repeat step 2 for each language to enter equivalent string resources for the strings defined in step 2.

    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.

  4. When finished updating the text file with all string resources you want to modify, including the ones shown here, use the text file to modify the page objects. For more information, see Editing Properties Using MQL.
  5. Use MQL to configure automatic business object naming for the Part. See Configuring Automatic Business Object Naming. The eService Object Generator and eService Number Generator objects might already exist and you need to edit the revision; or you might need to create them.

    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). Define eService Object Generator/eService Number Generator objects for each size and series.