The string 'Manage Purchase' is translated to user's interface language.
The string 'Manage Purchase' is not translated to user's interface language.
Chrome 51.0.2704.103 (64-bit) / OSX 10.11.14
Interface language set to 'es'.
Defining a context in this way doesn't work.
When we extract strings for translation, we are looking just at the raw js text file, we don't run JavaScript (it would be too complex). So for that reason the string gets added to GlotPress without a context (no grey box with white text next to the original) but when we ask for displaying the string, a context is provided Title text
, hence no translation with that context can be found.
Two possible solutions:
cc @gziolo who created this code.
In general, context is like commas in English: when in doubt, leave it out. Context is only needed if it shows that the same text needs to be translated differently in two locations of our UI, depending on the _context_. I know that adding context is well-intentioned but if you want to help the translator (and that is very much appreciated!), please use a comment.
Most helpful comment
Defining a context in this way doesn't work.
When we extract strings for translation, we are looking just at the raw js text file, we don't run JavaScript (it would be too complex). So for that reason the string gets added to GlotPress without a context (no grey box with white text next to the original) but when we ask for displaying the string, a context is provided
Title text
, hence no translation with that context can be found.Two possible solutions: