Single quotes in strings with placeholders - Java file parser

Hi,

I have a properties file where some strings contain placeholders - {0} - and single quotes.  When I generate the translated file the single quotes are being replaced with two single quotes, for example "Click {0} to view 'this'" ends up as "Click {0} to view ''this''"

See below the screenshot showing a sample string in the properties window, and the same string in the main view.  You can see the double single quotes in the main view.

Any input would be appreciated

Niall

Parents
  • Hello Uwe,
    I can't really reproduce the behavior you described, maybe you can describe it more detailed. On the other side I would not offer this as a solution. It may be a quick and dirty work-around, but it requires that you or your translators pay attention on these entries which is additional effort and can become error prone.

    I think the better solution is to familiarize with the specific requirements documented by Oracle and the methods SDL Passolo is offering to tweak this behavior. This solution will not require any user interaction or post processing.
  • Achim, you are correct its a quick and dirty workaround and I agree its best to get it done correctly. Its just sometimes you have to get something out real quick . I will provide more details later. Lots of meetings to attend.
  • Achim, here is the correct reply. I was not thinking straight. The quick workaround was in Passolo 2011. This is how we fixed it going forward:

    The French language uses apostrophes quite often to connect words as shown in the following screen shot:

     

    However, when generating the target file in SDL Passolo,the result is quite often the following:

     

    This is a result of SDL Passolo trying to "help" the translator and inserting the additional apostrophe. While this is still required on occasion, the majority of the software these days does not require this anymore. Following you will find the instructions to correct this issue.

    Proceed as follows:

    1. Open SDL Passolo.
    2. In the File menu select Options.
    3. Navigate in the Options dialog to the Tags section.
    4. Check the option Don't show tags or inline patterns. Edit original string.
    5. Click OK to close the dialog.
    6. Close and restart SDL Passolo.
Reply
  • Achim, here is the correct reply. I was not thinking straight. The quick workaround was in Passolo 2011. This is how we fixed it going forward:

    The French language uses apostrophes quite often to connect words as shown in the following screen shot:

     

    However, when generating the target file in SDL Passolo,the result is quite often the following:

     

    This is a result of SDL Passolo trying to "help" the translator and inserting the additional apostrophe. While this is still required on occasion, the majority of the software these days does not require this anymore. Following you will find the instructions to correct this issue.

    Proceed as follows:

    1. Open SDL Passolo.
    2. In the File menu select Options.
    3. Navigate in the Options dialog to the Tags section.
    4. Check the option Don't show tags or inline patterns. Edit original string.
    5. Click OK to close the dialog.
    6. Close and restart SDL Passolo.
Children
No Data