WeblateOrg / WeblateOrg/weblate

Placeholders for .po source to .xml and .strings files

Open
#7,788 4 comments 0 reactions 0 assignees View on GitHub
enhancement Waiting for: Demand
Dominant language
Python
Stars
6.1k
Forks
1.4k
Avg merge
9h 53m
Merged PRs (30d)
395

Description

### 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 below
![image](https://user-images.githubusercontent.com/49680260/174564591-86ed0d07-ef87-4d39-8c05-0eb40dcb39df.png)

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?

### I already tried

- [X] I've read and searched [the documentation](https://docs.weblate.org/).
- [X] I've searched for similar issues in this repository.

### Steps to reproduce the behavior

Configure any placeholders in the settings
![image](https://user-images.githubusercontent.com/49680260/174565703-1a4ad222-48b1-4178-82d2-2c8c2c799514.png)

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.