-
Notifications
You must be signed in to change notification settings - Fork 25
Parameterizing localization strings with arguments #36
Comments
Could you provide a code sample or a small project that recreates the issue? Or paste the complete stack trace of the exception? When I used this snippet in
This prints |
@metaphore Is this still an issue? |
@czyzby sorry, had no time to prepare code sample and check it once again. Will do it till the end of this week |
Not a problem, take your time. |
I had few experiments but for good (or bad) can't reproduce it anymore. I think it should be closed now and if problem will ever occur, I will supply you with details in that issue. BTW, is there a way to conjunct two expressions next to each other like: |
I think that in this particular example it would currently replace But labels are not multiline by default (you have to enable it first), so something like this: <label>@someString
{someValue}</label> ...would result in a single string, joining the two inputs. |
@czyzby probably I found what is origin problem was about. If I try to parametrize localized string with a value started with
And I guess it's pretty obvious why - LML treats |
Can you post a self-contained example of a LML template and the bundle line argument that reproduce the issue, so I can test it easily? I'll look into it before the next release. Anyway, I suggest going for a workaround for now, like using a Java method for building this particular string or avoiding parametrization (if possible) when an argument with dot is present. |
Sure, thanks. I believe this should be enough to reproduce the case:
<?xml version="1.0"?>
<!DOCTYPE label SYSTEM>
<label text="@key|.value"/> |
Following this example from wiki
@key|only|@arg
I'm trying to pass argument to localized string as parameter:But as result parser searches for
key|{arg}
key in bundle (and crushes when not found).Am I missing something?
The text was updated successfully, but these errors were encountered: