Why placeholders at the beginning of strings don't appear in Studio?

Hi,

Some placeholders are not appearing in the Editor view of Studio (nor in WorldServer Browser Workbench). These placeholders are located at the beginning of the strings in a .properties file.

For example, in the screenshot below, the placeholder {childNode} is not appearing in segments 10 and 11 as it should be.

All the other placeholders (that are in the middle of the strings) appear without any problem.

Do you have any idea why?

Thank you in advance for your help on this.

Best regards,

Carla

emoji
Parents
  • Tags that are at the beginning and end of a segment are by default usually hidden. This behavior is controlled by the filters, although how it is done in a given filter is different depending on the file type. For Java Resources files like yours you'd need to go to the Embedded Content section of that filter and create some tag definition rules. They will need to be regular expressions that will catch your placeholders. For example \{\w\} would catch your example above, although make sure that using that will only catch what you want it to catch and nothing else. When creating the content rule there is an advanced button that when clicked gives some additional options. The one you want to focus on for your desired behavior is the segmentation hint. This option defines what WS or Studio should do with the tag when it's found at the beginning or the end of a segment. The one you likely want is the Include with Text option.

    This link should provide some more detailed help if you need it.

Reply
  • Tags that are at the beginning and end of a segment are by default usually hidden. This behavior is controlled by the filters, although how it is done in a given filter is different depending on the file type. For Java Resources files like yours you'd need to go to the Embedded Content section of that filter and create some tag definition rules. They will need to be regular expressions that will catch your placeholders. For example \{\w\} would catch your example above, although make sure that using that will only catch what you want it to catch and nothing else. When creating the content rule there is an advanced button that when clicked gives some additional options. The one you want to focus on for your desired behavior is the segmentation hint. This option defines what WS or Studio should do with the tag when it's found at the beginning or the end of a segment. The one you likely want is the Include with Text option.

    This link should provide some more detailed help if you need it.

Children