{"id":21662550,"url":"https://github.com/php-gettext/robo","last_synced_at":"2025-06-18T15:40:45.775Z","repository":{"id":1631305,"uuid":"43524358","full_name":"php-gettext/Robo","owner":"php-gettext","description":"Robo task to extract gettext values from files","archived":false,"fork":false,"pushed_at":"2022-03-01T22:19:57.000Z","size":23,"stargazers_count":7,"open_issues_count":4,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T05:33:48.309Z","etag":null,"topics":["gettext","i18n","robo"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-gettext.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-01T22:23:04.000Z","updated_at":"2023-11-12T13:11:18.000Z","dependencies_parsed_at":"2022-08-06T11:00:16.146Z","dependency_job_id":null,"html_url":"https://github.com/php-gettext/Robo","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-gettext%2FRobo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-gettext%2FRobo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-gettext%2FRobo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-gettext%2FRobo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-gettext","download_url":"https://codeload.github.com/php-gettext/Robo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497902,"owners_count":21113982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gettext","i18n","robo"],"created_at":"2024-11-25T10:16:55.899Z","updated_at":"2025-04-11T23:42:15.925Z","avatar_url":"https://github.com/php-gettext.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Robo Tasks\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE)\n[![Quality Score][ico-scrutinizer]][link-scrutinizer]\n[![Total Downloads][ico-downloads]][link-downloads]\n\n[Robo](http://robo.li) task to extract gettext values from files using [gettext/gettext](https://github.com/php-gettext/Gettext) library\n\nCreated by Oscar Otero \u003chttp://oscarotero.com\u003e \u003coom@oscarotero.com\u003e (MIT License)\n\n## Install\n\nUsing composer:\n\n```bash\ncomposer require gettext/robo\n```\n\n## usage example\n\nCreate a RoboFile.php with the following code:\n\n```php\nrequire 'vendor/autoload.php';\n\nuse Robo\\Tasks;\n\nclass RoboFile extends Robo\\Tasks\n{\n    use Gettext\\Robo\\Gettext;\n\n    /**\n     * Scan files to find new gettext values\n     */\n    public function gettext()\n    {\n        $this-\u003etaskGettext()\n            //Scan folders with php files\n            -\u003escan('templates/', '/\\.php$/')\n            -\u003escan('other-files/', '/\\.php$/')\n\n            //Save the domain1\n            -\u003esave('domain1', 'Locale/es/LC_MESSAGES/domain1.po')\n            -\u003esave('domain1', 'Locale/gl/LC_MESSAGES/domain1.po')\n\n            //Save the domain2\n            -\u003esave('domain2', 'Locale/es/LC_MESSAGES/domain1.po')\n            -\u003esave('domain2', 'Locale/gl/LC_MESSAGES/domain1.po')\n\n            -\u003erun();\n    }\n}\n```\n\nUse robo to run the code:\n\n```bash\nrobo gettext\n```\n\n---\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information about recent changes.\n\nThe MIT License (MIT). Please see [LICENSE](LICENSE) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/gettext/robo.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/g/php-gettext/Robo.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/gettext/robo.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/gettext/robo\n[link-scrutinizer]: https://scrutinizer-ci.com/g/php-gettext/Robo\n[link-downloads]: https://packagist.org/packages/gettext/robo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-gettext%2Frobo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-gettext%2Frobo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-gettext%2Frobo/lists"}