Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6664505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:37:06+00:00 2026-05-26T02:37:06+00:00

This page, about gettext generally, mentions the ability to specify a context for a

  • 0

This page, about gettext generally, mentions the ability to specify a context for a string marked for translation. (http://www.gnu.org/software/gettext/manual/gettext.html#PO-Files) This helps when you have two instances of the same string in an application that have different meanings (e.g. “back” in one instance may mean “go back” while in another it may mean “not the front” — it’s possible that these are two different words in a foreign language)

Does Django’s i18n allow you to specify a context?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:37:07+00:00Added an answer on May 26, 2026 at 2:37 am

    Yes since version 1.3 Django supports "Contextual Markers". See eg. this example from the documentation:

     from django.utils.translation import pgettext
    
     month = pgettext("month name", "May")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working on this page: http://www.karlsenner.dreamhosters.com/about.php and having trouble with the navigation in IE6. It
I've found this page about the Twitter search API and some operators : http://search.twitter.com/operators
See section /* Common Classes */ of this page. http://webdesign.about.com/od/css/a/master_stylesht_2.htm are these css classes
This page -- http://webdesign.about.com/od/localization/l/blhtmlcodes-punc.htm -- shows a list of HTML characters that can be
I'm following this tutorial about building a multilingual web sites using PHP gettext http://onlamp.com/pub/a/php/2002/06/13/php.html
I am talking about doing something like this: LOCK TABLE page WRITE; SELECT *
This page mentions how to trunc a timestamp to minutes/hours/etc. in Oracle. How would
I am reading this page about Zend_Service_Flickr . However it does not say how
This page says about order for library search in ld.so : Unless loading object
This page has info about Bundles with mkbundle , but when I tried to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.