Skip to content

Commit 8c2e994

Browse files
author
Oscar Otero
authored
Error in the example
1 parent 579ffcb commit 8c2e994

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $translations = $loader->loadFile('locales/gl.po');
4242
$translation = $translations->find(null, 'apple');
4343

4444
if ($translation) {
45-
$translation->setTranslation('Mazá');
45+
$translation->translate('Mazá');
4646
}
4747

4848
//export to a .mo file:

0 commit comments

Comments
 (0)