Placeholders for .po source to .xml and .strings files #7788
Labels
enhancement
Adding or requesting a new feature.
undecided
These features might not be implemented. Can be prioritized by sponsorship.
Describe the issue
Hello, our translation files in Weblate are based in .po and they are the base for translating to Android .xml and iOS .strings. We have configured
$STRING$
for string placeholder, as in the screenshot belowWhen exporting to Android .xml we want the
$STRING$
to be converted to%s
while exporting to iOS .strings, we want the$STRING$
to be converted to%@
. Is there a way to make this happen without having two different translation projects/components, one for Android, and the other one for iOS?I already tried
Steps to reproduce the behavior
Configure any placeholders in the settings
Expected behavior
When exporting to Android .xml we want the
$STRING$
to be converted to%s
while exporting to iOS .strings, we want the$STRING$
to be converted to%@
. Is there a way to make this happen without having two different translation projects/components, one for Android, and the other one for iOS?Screenshots
No response
Exception traceback
No response
How do you run Weblate?
Docker container
Weblate versions
No response
Weblate deploy checks
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: