Forum

Christian
Participant
    6 years, 1 month ago #15346
    Up
    0
    Down
    ::

    Ok, the “dummy screen” method is usable (although not at all elegant) and you could probably add it to the mentioned documentation page.

    However, we encountered one more issue with translations: Is there are a suggested way of defining translatable strings with placeholder or format arguments, i.e. the printf() equivalent in Javascript? Example: popup(“Should the file %s be deleted”, filename)? String concatenation would work for one single language, but is not at all translatable, where instead strings with placeholder arguments are needed.

    Google brings up suggestions like these https://stackoverflow.com/a/4673436 which is a small added String.format() function. But this requirement is needed so often that we would expect a common solution either in OpenUI5 or in Simplifier. Any ideas?