Skip to Content
author's profile photo Former Member
Former Member

id in xlf-File, is that id really unique

Hallo,

my question is simple.

I must know if the id in the xlf-File is really unique.

I have test it with 2 WD Applications with the same name of the Component and the same resource name. The id looks unique.

Do anybody know what kind of algorithm is used.

regards

Gunter

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2009 at 04:30 AM

    Hi Gunter,

    Yes the trans-unit id in a xlf file is unique(But if you create the copy of that xlf file then that ids are same as that of the previous one). Otherwise you may generate practically any number of WD applications with same name of components or anything else the trans-unit id will be different as your component's package will differ or name will differ,etc. ,i.e., the two components can not be exactly similar in their logical attributes.

    If you need to fetch some element then you can use trans-unit id for working on the same. I guess you are working on some WI18N tool, so you can be sure that in a xlf file the trans-unit id generated once won't be repeated again.

    I do not know the algorithm behind that but I have worked on editing, copying , renaming of xlf files a lot.

    In case of doubts please revert.

    Regards.

    Rajat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2009 at 09:01 AM

    Hi Gunter,

    Yes the Id generated is unique Id.

    And for generation of this Id, it used random number generation (Java random number class)of 32 characters which uses both numeric as well as alphabets to generate the unique Id.

    Hope this has clarified your problem.

    revert if you need more info.

    Regards

    Narendra

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.