#34630: Neither `pgettext` nor `pgettext_lazy` return contextual markers in PO
files
-------------------------------------+-------------------------------------
     Reporter:  Kamil Paduszyński    |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:                       |                  Version:  4.2
  Internationalization               |               Resolution:
     Severity:  Normal               |  worksforme
     Keywords:  tr                   |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Kamil Paduszyński):

 Thank you guys for all the help! And sorry for bothering. Next time I will
 dive deeper into docs.

 Replying to [comment:9 Antoine Humbert]:
 > This is clearly mentioned in documentation that you cannot alias non-
 single argument translation  functions with _
 >
 > See https://docs.djangoproject.com/en/4.2/topics/i18n/translation/
 >
 > What functions may be aliased as _?
 >
 > Because of how xgettext (used by makemessages) works, only functions
 that take a single string argument can be imported as _:
 >
 > gettext()
 > gettext_lazy()

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34630#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701889224e0e0-31a78896-9ea4-44c5-8da1-c9434909173e-000000%40eu-central-1.amazonses.com.

Reply via email to