MCPcopy Index your code
hub / github.com/python/cpython / add

Function add

Tools/i18n/msgfmt.py:49–56  ·  view source on GitHub ↗

Add a non-fuzzy translation to the dictionary.

(ctxt, id, str, fuzzy)

Source from the content-addressed store, hash-verified

47
48
49def add(ctxt, id, str, fuzzy):
50 "Add a non-fuzzy translation to the dictionary."
51 global MESSAGES
52 if not fuzzy and str:
53 if ctxt is None:
54 MESSAGES[id] = str
55 else:
56 MESSAGES[b"%b\x04%b" % (ctxt, id)] = str
57
58
59def generate():

Callers 1

makeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected