Skip to content

Commit 71620d1

Browse files
committed
Update readme
1 parent 6feafd8 commit 71620d1

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ $foobar->modify('+4 hours');
4141
{# in 4 hours #}
4242
```
4343

44-
Change default format in `config.yml`:
44+
Change [default format](http://php.net/manual/en/function.date.php) in `config.yml`:
4545

4646
```yml
4747
eschmar_time_ago:
@@ -50,15 +50,20 @@ eschmar_time_ago:
5050
5151
# Translations available
5252
53+
* Dutch
5354
* English
54-
* Swedish
55+
* French
5556
* German
56-
* Dutch
57-
* Spanish
57+
* Hungarian
58+
* Italian
59+
* Polish
5860
* Portuguese (Brazil)
61+
* Russian
5962
* Slovenian
63+
* Spanish
64+
* Swedish
6065
* Turkish
61-
* Polish
66+
* Ukranian
6267
6368
# License
6469
MIT License

Twig/TimeAgoExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function getName()
4141
public function getFilters()
4242
{
4343
return [
44-
new \Twig_SimpleFilter('ago', array($this, 'agoFilter')),
44+
new \Twig_SimpleFilter('ago', [$this, 'agoFilter']),
4545
];
4646
}
4747

0 commit comments

Comments
 (0)