{"id":15046279,"url":"https://github.com/wisembly/xgettext-php","last_synced_at":"2025-10-26T14:31:37.014Z","repository":{"id":11342238,"uuid":"13770398","full_name":"Wisembly/xgettext-php","owner":"Wisembly","description":"PHP xgettext implementation, currently javascript and handlebars parsers available","archived":false,"fork":false,"pushed_at":"2022-06-10T09:30:01.000Z","size":481,"stargazers_count":16,"open_issues_count":0,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-31T20:52:02.132Z","etag":null,"topics":[],"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/Wisembly.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2013-10-22T10:51:46.000Z","updated_at":"2023-01-23T13:16:57.000Z","dependencies_parsed_at":"2022-09-10T17:21:16.089Z","dependency_job_id":null,"html_url":"https://github.com/Wisembly/xgettext-php","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wisembly%2Fxgettext-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wisembly%2Fxgettext-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wisembly%2Fxgettext-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wisembly%2Fxgettext-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wisembly","download_url":"https://codeload.github.com/Wisembly/xgettext-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238347845,"owners_count":19457002,"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":[],"created_at":"2024-09-24T20:52:56.770Z","updated_at":"2025-10-26T14:31:36.647Z","avatar_url":"https://github.com/Wisembly.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Xgettext\n\n[![Build Status](https://travis-ci.org/Wisembly/xgettext-php.png?branch=master)](https://travis-ci.org/Wisembly/xgettext-php)\n\nxgettext PHP implementation. Curently provides 2 parsers:\n- Javascript parser\n- Handlebars parser\n\n\n# Install\n\nThe recommended way to install Xgettext is through\n[Composer](http://getcomposer.org/):\n\n``` json\n{\n    \"require\": {\n        \"wisembly/xgettext-php\": \"@stable\"\n    }\n}\n```\n\n\n# Usage\n\n\n## Parser\n\n### Javascript parser\n\nSimply create a new parser in Poedit (name it for example `Javascript`)`.\nThen, set up xgettext like this:\n\n![configure xgettext parser](https://raw.githubusercontent.com/Wisembly/xgettext-php/master/doc/js.png)\n\n**WARNING:** Javascript parser currently parse only 1rst and 2nd arguments. It\nalso do not parse strings with non matching parenthesis. (avoid smileys..)\n\n### Handlebars parser\n\nSame like above, just add `-l \"handlebars\"` in yout `xgettext` call to stipulate you want\nto use handlebars parser with xgettext-php.\n\n![configure xgettext parser](https://raw.githubusercontent.com/Wisembly/xgettext-php/master/doc/hbs.png)\n\n\n## JSON Dumper\n\n```\n$ bin/dumper -i input.po -o output.json\n```\n\n\n## Requirements\n\nPHP \u003e= 5.3\n\n\n## Licence\n\nXgettext is released under the MIT License. See the bundled LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisembly%2Fxgettext-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwisembly%2Fxgettext-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisembly%2Fxgettext-php/lists"}