Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android export - missing string parameters #5913

Closed
fprt77 opened this issue Apr 24, 2021 · 6 comments
Closed

Android export - missing string parameters #5913

fprt77 opened this issue Apr 24, 2021 · 6 comments
Labels
question This is more a question for the support than an issue.

Comments

@fprt77
Copy link

fprt77 commented Apr 24, 2021

We have weblate project where core file in repo is in iOS (string) format.

We are using string substitutes in translations (%@) and when we try to export string to Android file, it does not do conversion to Android format neither have the original substite. It simply dissapears.

P.e. the iOS string

"login.biometricsSetup.header" = "Enable %@";

Is exported to android as

<string name="login.biometricsSetup.header">Enable</string>

@nijel
Copy link
Member

nijel commented Apr 26, 2021

I can't reproduce this, it exports correctly for me:

<string name="login.biometricsSetup.header">Enable %@</string>

What Weblate and translate-toolkit versions do you use?

@nijel nijel added the question This is more a question for the support than an issue. label Apr 26, 2021
@fprt77
Copy link
Author

fprt77 commented Apr 26, 2021

Weblate 4.6
translate-toolkit 3.3.4

@github-actions
Copy link

This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you!

@nijel
Copy link
Member

nijel commented Apr 27, 2021

Just tried with your versions, and it still works fine for me. Are there any non-printable characters in the iOS string? What exact steps you do to trigger this?

@fprt77 fprt77 closed this as completed May 3, 2021
@github-actions
Copy link

github-actions bot commented May 3, 2021

The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.

  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

@fprt77
Copy link
Author

fprt77 commented May 3, 2021

We do not experience this issue anymore. Android strings now contain iOS style parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is more a question for the support than an issue.
Projects
None yet
Development

No branches or pull requests

2 participants