Skip to content

Commit a7f4928

Browse files
authored
Merge pull request #44 from kianmeng/fix-markdown-issues-and-typo
2 parents 22198b1 + caa11fc commit a7f4928

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,15 @@ FileNotFoundError: [Errno 2] No translation file found for domain: 'humanize'
207207

208208
How to add new phrases to existing locale files:
209209

210-
```console
211-
$ xgettext --from-code=UTF-8 -o humanize.pot -k'_' -k'N_' -k'P_:1c,2' -l python src/humanize/*.py # extract new phrases
212-
$ msgmerge -U src/humanize/locale/ru_RU/LC_MESSAGES/humanize.po humanize.pot # add them to locale files
210+
```sh
211+
xgettext --from-code=UTF-8 -o humanize.pot -k'_' -k'N_' -k'P_:1c,2' -l python src/humanize/*.py # extract new phrases
212+
msgmerge -U src/humanize/locale/ru_RU/LC_MESSAGES/humanize.po humanize.pot # add them to locale files
213213
```
214214

215215
How to add a new locale:
216216

217-
```console
218-
$ msginit -i humanize.pot -o humanize/locale/<locale name>/LC_MESSAGES/humanize.po --locale <locale name>
217+
```sh
218+
msginit -i humanize.pot -o humanize/locale/<locale name>/LC_MESSAGES/humanize.po --locale <locale name>
219219
```
220220

221221
Where `<locale name>` is a locale abbreviation, eg. `en_GB`, `pt_BR` or just `ru`, `fr`

src/humanize/time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def _suitable_minimum_unit(min_unit: Unit, suppress: typing.Iterable[Unit]) -> U
376376
>>> _suitable_minimum_unit(Unit.HOURS, []).name
377377
'HOURS'
378378
379-
But if suppressed, find a unit greather than the original one that is not
379+
But if suppressed, find a unit greater than the original one that is not
380380
suppressed:
381381
382382
>>> _suitable_minimum_unit(Unit.HOURS, [Unit.HOURS]).name

0 commit comments

Comments
 (0)