IC SunsetThe developerWorks Connections platform will be sunset on December 31, 2019. On January 1, 2020, this community and its apps will no longer be available. More details available on our FAQ.
Topic
  • 5 replies
  • Latest Post - ‏2018-12-03T08:49:22Z by frisalde
frisalde
frisalde
119 Posts

Pinned topic Customize labels with carriage return

‏2018-10-26T11:32:45Z | carrage customize; email; isim; labels; notification; return; tim

Dear colleagues,

We are customizing the change passord email notification due to we don't want to notify the new password, if not just to inform that a change password has been done in your account by someone.

 

So, we would like to change the 'newAccountPassword' entry of the Labels.properties files with a more complex message like:

 

"Dear user {0}:
a change password has been done into an account which you are the owner by means of TIM.

 

If the request was done without your knowledge, please notify HelpDesk of the security issue urgently for verifying whether your identity has not been stealed.

 

If not so, it is just an information email and additional actions are not required."

 

Nevertheless, we don't know how to include the carriage returns. We have tried to use '\n' and '\r\n' but it is not working.

 

How can it be got? 

 

There is not doubt that we want to use the labels to get the translation funcionality.

 

Thanks in advance for your help.

  • frisalde
    frisalde
    119 Posts
    ACCEPTED ANSWER

    Re: Customize labels with carriage return

    ‏2018-10-31T11:37:28Z  
    • franzw
    • ‏2018-10-26T12:08:40Z

    I do not think this is possible - it is only possible for messages - not labels AFAIK. And tinkering with labels.properties is not mentioned in the reference as a modifiable property file, so I guess this is unsupported anyhow. 

    But raise a support case (aka PMR) and let support give you the formal answer.

    Also be aware that lot of the translation functionality was changed between 4.6 and 5.0 so even if it works somewhere in ISIM it does not mean it will work everywhere....

    HTH

    Regards

    Franz Wolfhagen

    Hi everyone,
    I have openned a PMR and the official anwer is "the value you want to enter is too long and cannot be splitted in 2 lines."

     

    On the other hands, the customisation of Labels.propeties files is not the rigth approach if not the CustomLabels.properties files since it is said: "To enable string replacement for translation, specify a custom label in a CustomLabels.properties file to overwrite a Labels.properties key."

     

    Lastly, here you have the documentation references that IBM has provided to me:

    "

    You can modify CustomLabels.properties, and CustomLabels_<lang>.properties . e.g. CustomLabels_en.properties, (not the Labels.properties) as it's the one supported for modification:

    https://www-01.ibm.com/support/knowledgecenter/SSRMWJ_6.0.0.5/com.ibm.isim.doc_6.0.0.5/reference/ref/ref_ic_props_supp_table.htm?lang=en

    This way your customization will be preserved during future fixpack upgrades.

     

    when modifying CustomLabels.properties, as you may know, it's to assign a label to an attribute,

    please see "Modifying the CustomLabels.properties file" documentation showing how to add a (static) label to an attribute:

    https://www-01.ibm.com/support/knowledgecenter/SSRMWJ_6.0.0/com.ibm.itim_pim.doc/topsecret/install_config/t_userfield_support_step4.htm?lang=en

     

    and ' Customizing the labels'

    https://www-01.ibm.com/support/knowledgecenter/SSRMWJ_6.0.0.4/com.ibm.isim.doc_6.0.0.4/configuring/tsk/tsk_isim_custom_apprv_rej_labels.htm?lang=en

     

    You can also use CustomLabels.properties for dynamic content, tags

    While some of the doc below is from 7.0 is still relevant, and thought I share it as well.

     

    Customizing the post office email template

    https://www-01.ibm.com/support/knowledgecenter/SSRMWJ_6.0.0.4/com.ibm.isim.doc_6.0.0.4/configuring/tsk/tsk_ic_postoffice_properties.htm?lang=en

     

    Mail templates

    https://www-01.ibm.com/support/knowledgecenter/SSRMWJ_7.0.1/com.ibm.isim.doc/reference/ref/ref_ic_xttl_mailtemplate.htm?lang=en

     

    Dynamic tags in mail templates

    https://www-01.ibm.com/support/knowledgecenter/SSRMWJ_7.0.1/com.ibm.isim.doc/reference/ref/ref_ic_xttl_mailtemplate_syntax.htm?lang=en "

  • franzw
    franzw
    519 Posts

    Re: Customize labels with carriage return

    ‏2018-10-26T12:08:40Z  

    I do not think this is possible - it is only possible for messages - not labels AFAIK. And tinkering with labels.properties is not mentioned in the reference as a modifiable property file, so I guess this is unsupported anyhow. 

    But raise a support case (aka PMR) and let support give you the formal answer.

    Also be aware that lot of the translation functionality was changed between 4.6 and 5.0 so even if it works somewhere in ISIM it does not mean it will work everywhere....

    HTH

    Regards

    Franz Wolfhagen

  • frisalde
    frisalde
    119 Posts

    Re: Customize labels with carriage return

    ‏2018-10-29T07:47:00Z  
    • franzw
    • ‏2018-10-26T12:08:40Z

    I do not think this is possible - it is only possible for messages - not labels AFAIK. And tinkering with labels.properties is not mentioned in the reference as a modifiable property file, so I guess this is unsupported anyhow. 

    But raise a support case (aka PMR) and let support give you the formal answer.

    Also be aware that lot of the translation functionality was changed between 4.6 and 5.0 so even if it works somewhere in ISIM it does not mean it will work everywhere....

    HTH

    Regards

    Franz Wolfhagen

    Thanks Franzw,
    I'll let you know as soon as IBM answer.

     

     

  • frisalde
    frisalde
    119 Posts

    Re: Customize labels with carriage return

    ‏2018-10-31T11:37:28Z  
    • franzw
    • ‏2018-10-26T12:08:40Z

    I do not think this is possible - it is only possible for messages - not labels AFAIK. And tinkering with labels.properties is not mentioned in the reference as a modifiable property file, so I guess this is unsupported anyhow. 

    But raise a support case (aka PMR) and let support give you the formal answer.

    Also be aware that lot of the translation functionality was changed between 4.6 and 5.0 so even if it works somewhere in ISIM it does not mean it will work everywhere....

    HTH

    Regards

    Franz Wolfhagen

    Hi everyone,
    I have openned a PMR and the official anwer is "the value you want to enter is too long and cannot be splitted in 2 lines."

     

    On the other hands, the customisation of Labels.propeties files is not the rigth approach if not the CustomLabels.properties files since it is said: "To enable string replacement for translation, specify a custom label in a CustomLabels.properties file to overwrite a Labels.properties key."

     

    Lastly, here you have the documentation references that IBM has provided to me:

    "

    You can modify CustomLabels.properties, and CustomLabels_<lang>.properties . e.g. CustomLabels_en.properties, (not the Labels.properties) as it's the one supported for modification:

    https://www-01.ibm.com/support/knowledgecenter/SSRMWJ_6.0.0.5/com.ibm.isim.doc_6.0.0.5/reference/ref/ref_ic_props_supp_table.htm?lang=en

    This way your customization will be preserved during future fixpack upgrades.

     

    when modifying CustomLabels.properties, as you may know, it's to assign a label to an attribute,

    please see "Modifying the CustomLabels.properties file" documentation showing how to add a (static) label to an attribute:

    https://www-01.ibm.com/support/knowledgecenter/SSRMWJ_6.0.0/com.ibm.itim_pim.doc/topsecret/install_config/t_userfield_support_step4.htm?lang=en

     

    and ' Customizing the labels'

    https://www-01.ibm.com/support/knowledgecenter/SSRMWJ_6.0.0.4/com.ibm.isim.doc_6.0.0.4/configuring/tsk/tsk_isim_custom_apprv_rej_labels.htm?lang=en

     

    You can also use CustomLabels.properties for dynamic content, tags

    While some of the doc below is from 7.0 is still relevant, and thought I share it as well.

     

    Customizing the post office email template

    https://www-01.ibm.com/support/knowledgecenter/SSRMWJ_6.0.0.4/com.ibm.isim.doc_6.0.0.4/configuring/tsk/tsk_ic_postoffice_properties.htm?lang=en

     

    Mail templates

    https://www-01.ibm.com/support/knowledgecenter/SSRMWJ_7.0.1/com.ibm.isim.doc/reference/ref/ref_ic_xttl_mailtemplate.htm?lang=en

     

    Dynamic tags in mail templates

    https://www-01.ibm.com/support/knowledgecenter/SSRMWJ_7.0.1/com.ibm.isim.doc/reference/ref/ref_ic_xttl_mailtemplate_syntax.htm?lang=en "

  • serega_dgl
    serega_dgl
    3 Posts

    Ответ: Customize labels with carriage return

    ‏2018-11-10T11:06:11Z  

    Мне интересен этот код: Для меня оба способа выглядят довольно похожими. С Rails я также указывают на вызов create() как проблемной области.

    дает результат 1952805748. В последнее время я пытаюсь решить. // Мой вопрос: есть ли мастер или автоматический импортер для преобразования существующего проекта . ) Что все символы в , и что делает больше, например, неиспользуемые назначения переменных, массивы, которые назначаются без первоначальной инициализации и, возможно, предупреждения стиля кода. Программы с открытым исходным кодом, и я не ожидаю, что там будут "плагины". 

     

    http://q-answer.ru/questions/chto-delayut-odinochnye-kavychki-v-s-pri-ispol-zovanii-nesko-944.html

  • frisalde
    frisalde
    119 Posts

    Re: Customize labels with carriage return

    ‏2018-12-03T08:49:22Z  

    FYI.

     

    The approach was to define new labels with the lines of the wished text:

     

    newAccountPassword=This email evinces a change password has been done into an account which you are the owner by means of the tool TIM.
    newAccountPassword2=If the request was done with your knowledge, additional actions are not required.
    newAccountPassword3=If not so, the safety of your account could be in danger. Get in contact urgently with HelpDesk.

     

    and customize the email tempate to reference the labels adding a carriage return between them:

     

    <br/> <RE key="newAccountPassword2"/><br/>
    <br/> <RE key="newAccountPassword3"/><br/>