question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support of context

See original GitHub issue

Coming from this discussion and from my experience with gettext

Is your feature request related to a problem? Please describe. Some times a same message can be translated differently depending on context, so catalog should contains as many as entries as needed

Describe the solution you’d like A way to handle hierarchical structure of message id or abstraction around context option / attribute

Describe alternatives you’ve considered I tried id with prefixed message but it could lead to translation error.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
tricoder42commented, Aug 29, 2018

Hey @JSteunou, unfortunatelly, context isn’t supported at the moment. @FredyC also come across msgctx while improving po file support, but we agreed we won’t include it at the moment.

Possible workaround is either to use message ID context.id with default message or add context to default message ((context) message). In upcoming release, there’s gonna be support for message descriptions, so you can communicate with translator what kind of message is it.

I believe we could support message context even without breaking the app completely. We could join message descriptor into single ID during compile if app uses context. For that we need to figure out how to transform IDs in production code, similar to #139.

I’ll leave it open for now, but considering possible workarounds, it has a little priority. I’m open to suggestions!

1reaction
tricoder42commented, Sep 11, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Defining social support in context: a necessary step ... - PubMed
In this article concept analysis is used to evaluate definitions of social support to ascertain their utility for research. The authors argue that...
Read more >
What Is Contextual Support, and Why Is It Critical to Live Chat?
Contextual support means meeting customers where they are with relevant answers — and modern live chat software isn't complete without it.
Read more >
The Importance of Context in Customer Service | CustomerThink
In our contact center, context is a major point of emphasis. Here are some of the ways we gain context on a regular...
Read more >
What is Contextual Help, and how it can lead to happier users
Contextual help makes your software easier to use and is the least demanding way to offer user support. What's known as context switching...
Read more >
Defining Social Support in Context: A Necessary Step in ...
In this article concept analysis is used to evaluate definitions of social support to ascertain their utility for research. The authors argue that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found