Skip to content

Commit

Permalink
fixed gettext translation example.
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Mar 21, 2022
1 parent b18ff33 commit 9a9916e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ $t->setLanguage('gl');

//Load the domains:
$t->loadDomain('messages', 'project/Locale');
//this means you have the file "project/Locale/gl/LC_MESSAGES/messages.po"
//this means you have the file "project/Locale/gl/LC_MESSAGES/messages.mo"

//Now you can use it in your templates
echo $t->gettext('apple');
Expand Down

0 comments on commit 9a9916e

Please sign in to comment.