MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / add

Function add

tools/python-3.11.9-amd64/Tools/i18n/msgfmt.py:48–55  ·  view source on GitHub ↗

Add a non-fuzzy translation to the dictionary.

(ctxt, id, str, fuzzy)

Source from the content-addressed store, hash-verified

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

Callers 2

makeFunction · 0.70
putMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected