Mercurial > p > roundup > code
comparison roundup/admin.py @ 7821:aa1fd8704469
fix(i18n): clean up translator hint
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 21 Mar 2024 15:26:29 -0400 |
| parents | 7c0a8088b053 |
| children | b530069f3120 |
comparison
equal
deleted
inserted
replaced
| 7820:da4c51effdfd | 7821:aa1fd8704469 |
|---|---|
| 1084 if isinstance(value, str): | 1084 if isinstance(value, str): |
| 1085 name = get_prop_name(value, prop) | 1085 name = get_prop_name(value, prop) |
| 1086 if name: | 1086 if name: |
| 1087 result.append( | 1087 result.append( |
| 1088 # .Hint read as: assignedto was admin(1) | 1088 # .Hint read as: assignedto was admin(1) |
| 1089 # .Hint where assignedto is the property | 1089 # where assignedto is the property |
| 1090 # .Hint admin is the key name for value 1 | 1090 # admin is the key name for value 1 |
| 1091 _("%(prop)s was %(name)s(%(value)s)") % { | 1091 _("%(prop)s was %(name)s(%(value)s)") % { |
| 1092 "prop": prop, "name": name, "value": value }) | 1092 "prop": prop, "name": name, "value": value }) |
| 1093 else: | 1093 else: |
| 1094 # use repr so strings with embedded \n etc. don't | 1094 # use repr so strings with embedded \n etc. don't |
| 1095 # generate newlines in output. Try to keep each | 1095 # generate newlines in output. Try to keep each |
