Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jun 15, 2016
1 parent 0faff56 commit 9725994
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Oscar Otero
Copyright (c) 2016 Oscar Otero

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ require 'vendor/autoload.php';

class RoboFile extends \Robo\Tasks
{
use Gettext\Robo\GettextScanner;
use Gettext\Robo\GettextScanner;

/**
* Scan files to find new gettext values
*/
public function gettext()
{
$this->taskGettextScanner()
->extract(__DIR__.'/templates/')
->extract(__DIR__.'/js/', '/.*\.js/') //directory + regex
->generate(__DIR__.'/Locale/gl/LC_MESSAGES/messages.mo')
->generate(__DIR__.'/Locale/es/LC_MESSAGES/messages.mo')
->generate(__DIR__.'/Locale/en/LC_MESSAGES/messages.mo')
->run();
$this->taskGettextScanner()
->extract('templates/')
->extract('js/', '/.*\.js/') //directory + regex
->generate('Locale/gl/LC_MESSAGES/messages.mo')
->generate('Locale/es/LC_MESSAGES/messages.mo')
->generate('Locale/en/LC_MESSAGES/messages.mo')
->run();
}
}
```
Expand Down

0 comments on commit 9725994

Please sign in to comment.