Skip to content

Commit

Permalink
Further tweaks to the readme
Browse files Browse the repository at this point in the history
Still incorrect code example and added additional limitation text
  • Loading branch information
cooperaj authored Oct 14, 2020
1 parent 46ae528 commit 3ffc3b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ You could have a PHP file
```php
/** @var $translator \Acpr\I18n\Translator **/
$pluralApples = $translator->translate(
'I have an apple',
'%name% has %count% apple',
[
'%name' => 'Adam'
],
Expand All @@ -82,6 +82,7 @@ msgstr[0] ""
##### Limitations
* The extraction specifically looks for usages of a `translate` function with the correct signature. This may result in
false positives dependent on your code base.
* It is not currently possible to add notes/comments to a translation entry.
* For the correct values to be parsed, the string arguments to the `translate` function **must** be inlined strings
(quoted or heredoc). It is **not** possible to use variables.

Expand Down

0 comments on commit 3ffc3b0

Please sign in to comment.