Excluding ‘+’ signs in UI strings from word count

I am setting up a project in Studio 2022 for 116 Excel files of UI strings. The strings look like this:

head north to + [street_name] + and turn right

The parameters in square brackets, such as "[street_name]," do not need to be translated, so I set up a regex rule below, and it works fine. 

Start Tag: \[

End Tag: \]

Non-translatable

However, even though the text in square brackets is locked, there is a large number of ‘+’ signs throughout the files, and I suspect they significantly increase the word count.

Two lines of text with UI strings, showing 'head north to + street_name + and turn right' and 'head south to + street_name + and turn right'. The 'street_name' parts are highlighted and locked for translation.

I would like to know how to exclude the ‘+’ sign from the word count.

Thank you in advance.



Generated Image Alt-Text
[edited by: RWS Community AI at 12:31 PM (GMT 0) on 14 Nov 2024]
emoji
Parents Reply Children
  •   

    I have bought both, but did not yet read any of these. And the best way to get a good regex solution is to ask some Paul Filkin or develop this with own means.

    From what I see above you have already excluded the content in []. To exclude conten in +[]+ I would use \+\[[^]]*?\]\+

    But I'm on an ICE train and not sure if I got your question right.

    _________________________________________________________

    When asking for help here, please be as accurate as possible. Please always remember to give the exact version of product used and all possible error messages received. The better you describe your problem, the better help you will get.

    Want to learn more about Trados Studio? Visit the Community Hub. Have a good idea to make Trados Studio better? Publish it here.

    emoji