Content Management and Capture

Expand all | Collapse all

How to create multi-locale objects using CEWS?

  • 1.  How to create multi-locale objects using CEWS?

    Posted Fri October 30, 2020 04:17 AM
    Hi All,

    I didn't found tutorials or code samples to create multi-locale objects like choice list items, property templates, class definitions, and any other objects where localization is possible using CEWS.

    If I have a choice list item (or a property template, a class definition, etc) for which I want to define English (en-US), German (de), and say French (fr) display names, how should I create such an object using CEWS?

    I mean these (parts of screenshots of ACCE pages):


    Any help appreciated.

    Thx,

    ------------------------------
    ____________________
    Laszlo
    ------------------------------


  • 2.  RE: How to create multi-locale objects using CEWS?

    Posted Fri October 30, 2020 09:37 AM
    In the API, this is done by adding LocalizedString instances to the DisplayNames list of the ClassDefinition, PropertyTemplate or Choice (within ChoiceList). Refer to each of those in the API documentation.

    If you're asking about doing this directly against the web service interface (which I don't recommend, using the API is much preferred) then you will have to infer the details from the API.

    ------------------------------
    Michael Seaman
    ------------------------------



  • 3.  RE: How to create multi-locale objects using CEWS?

    Posted Fri October 30, 2020 09:43 AM
    Hi Michael,

    When you write "API", then do you mean the CEWS Java pack, or any other API? If do you mean another API (other than the CEWS Java pack), then please write me what is it and how to access it or at least could you give me a link to the documentation to it?

    Thanks,

    ------------------------------
    ____________________
    Laszlo
    ------------------------------



  • 4.  RE: How to create multi-locale objects using CEWS?

    Posted Fri October 30, 2020 10:41 AM
    I don't know what you mean by "CEWS Java pack". There are the Content Engine Java API and .Net APIs, start at https://www.ibm.com/support/knowledgecenter/SSNW2F_5.5.0/com.ibm.p8.ce.dev.ce.doc/overview.htm for documentation.

    ------------------------------
    Michael Seaman
    ------------------------------



  • 5.  RE: How to create multi-locale objects using CEWS?

    Posted Fri October 30, 2020 10:47 AM
    I mean the Java pack which contains the following jar files: Jace.jar, stax-api.jar, xlxpScanner.jar and xlxpScannerUtils.jar. I know only this Java pack to connect to the Content Engine.

    It seems that you use another API / Java jars to connect to the Content Engine. The link you sent not too informative :( . Could you write me more links?

    thx,

    ------------------------------
    ____________________
    Laszlo
    ------------------------------



  • 6.  RE: How to create multi-locale objects using CEWS?

    Posted Fri October 30, 2020 10:51 AM
    The link I gave is to the documentation for what is in Jace.jar, so it is exactly what you need.

    ------------------------------
    Mike
    ------------------------------



  • 7.  RE: How to create multi-locale objects using CEWS?

    Posted Fri October 30, 2020 10:57 AM
    Okay, we are talking about the same thing :)
    May I ask you to send examples to create localized objects? It would help me see how to do that, and would save much time to discover this...

    thx,

    ------------------------------
    ____________________
    Laszlo
    ------------------------------



  • 8.  RE: How to create multi-locale objects using CEWS?

    Posted Mon November 02, 2020 05:01 AM
    https://www.ibm.com/support/knowledgecenter/SSNW2F_5.5.0/com.ibm.p8.ce.dev.ce.doc/class_procedures.htm#class_procedures__creating_a_subclass

    ------------------------------
    Mike
    ------------------------------



  • 9.  RE: How to create multi-locale objects using CEWS?

    Posted Mon November 02, 2020 05:18 AM
    Many Thanks, Mike!

    ------------------------------
    ____________________
    Laszlo
    ------------------------------



  • 10.  RE: How to create multi-locale objects using CEWS?

    Posted Mon November 09, 2020 09:06 AM
    Interesting question and topic. Following.

    ------------------------------
    Frank Boshuijzen
    Developer (full stack)
    Rijschoolspecialist
    Rotterdam
    ------------------------------