WeblateOrg / WeblateOrg/weblate

WebExtension placeholders tips

Open
#3,398 2 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

**Is your feature request related to a problem? Please describe.**
Currently

According to [WebExtensions of WebExtension](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Internationalization#Retrieving_message_strings_from_JavaScript), translations can have explanations of variables, it's called placeholders.

Example:
https://github.com/mdn/webextensions-examples/blob/master/notify-link-clicks-i18n/_locales/fr_FR/messages.json#L20-L25

Currently, this tips, are not shown into the Weblate UI.

**Describe the solution you'd like**

Obviously, it can be useful to display this information (in the good locale) to the translators.

**Additional context**
Also, I don't know if it's a bug but, the "Source string comment" contains the comment in the source language, and in the translated language:

![image](https://user-images.githubusercontent.com/16735076/72621647-f5ef9c80-3941-11ea-9fa9-2a3ceb51fff7.png)

I think I should be listed into two fields (and the fields from the translated locale should be editable).

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.