Page MenuHomePhabricator

Allow translators to see original text of translation variables when translating messages
Closed, DeclinedPublicFeature

Description

Feature summary (what you would like to be able to do and where):
In the translation message editor, I would like to be able to hover over translation variables in order to see the original text that they replace.

image.png (595×1 px, 76 KB)

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
I need to know the word the the variable replaces when translating to Spanish to know which grammatical gender (el or la) I should add before the translation variable.

Benefits (why should this be implemented?):
Will allow me to translate correctly and not require me to go back to the source page to see what the translation variable originally was, speeding up my translation workflow.

Event Timeline

This seems to be about <translate> <!--T:44--> A description describes and disambiguates a <tvar name="1">{{ll|Help:Label|label}}</tvar> using information that is free of controversy and bias</translate> on https://www.wikidata.org/w/index.php?title=Special:Translate&group=page-Help%3ADescription&action=page&filter=&language=es
(Please always provide/include links to test cases - Thanks.)

Nikerabbit added a subscriber: Nikerabbit.

I think there are already multiple options available to address this issue:

  • Translation admin could add message documentation
  • Translation admin could choose more descriptive variable name than $1

It's not clear how to implement this:

  • Should we show the wikitext {{ll|Help:Label|label}} which doesn't tell what the visible text is
  • Should we show the parsed version? With or without html?

Because of the above, I am not in favor of this request.

@Nikerabbit

Translation admin could add message documentation

That's a very time-consuming task for a feature as basic as showing the original text.

Translation admin could choose more descriptive variable name than $1

It's already a universal standard that tvars should be named $1, so changing that is not going to be easy. And again, this feature should be possible without requiring any changes on the translator's part.

It's not clear how to implement this:
Should we show the wikitext {{ll|Help:Label|label}} which doesn't tell what the visible text is
Should we show the parsed version? With or without html?

We give show both the wikitext and the parsed version. HTML? Like the raw HTML generated from the Wikitext? Probably not.