Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

No-op String Translation

Django provides the django.utils.translation.gettext_no-op() function to identify strings as translation strings. However, they are not actually translated yet. They are translated later as a variable at the last possible point before they are rendered to the user.

You can use no-op strings for things such as constant strings, or strings stored in the database. Django will not translate a no-op strings until the last possible moment.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial