{"id":21197022,"url":"https://github.com/ph7software/ph7cms-test-gettext-lang","last_synced_at":"2025-10-13T16:36:48.411Z","repository":{"id":67643949,"uuid":"59687509","full_name":"pH7Software/pH7CMS-Test-Gettext-Lang","owner":"pH7Software","description":"🏳 The script will allow you to test quickly, debugging easily and much easier than with pH7CMS if Gettext is correctly installed or not.","archived":false,"fork":false,"pushed_at":"2016-05-26T20:05:29.000Z","size":203,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-13T16:36:47.702Z","etag":null,"topics":["debugging","debugging-tool","gettext","language","ph7cms","translation"],"latest_commit_sha":null,"homepage":"http://github.com/pH7Software/pH7CMS-Test-Gettext-Lang","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pH7Software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"pH-7","patreon":"ph7cms","custom":"https://www.buymeacoffee.com/ph7cms"}},"created_at":"2016-05-25T18:24:31.000Z","updated_at":"2019-10-11T19:06:57.000Z","dependencies_parsed_at":"2023-02-20T22:00:59.011Z","dependency_job_id":null,"html_url":"https://github.com/pH7Software/pH7CMS-Test-Gettext-Lang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pH7Software/pH7CMS-Test-Gettext-Lang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH7Software%2FpH7CMS-Test-Gettext-Lang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH7Software%2FpH7CMS-Test-Gettext-Lang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH7Software%2FpH7CMS-Test-Gettext-Lang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH7Software%2FpH7CMS-Test-Gettext-Lang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pH7Software","download_url":"https://codeload.github.com/pH7Software/pH7CMS-Test-Gettext-Lang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH7Software%2FpH7CMS-Test-Gettext-Lang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016096,"owners_count":26085802,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["debugging","debugging-tool","gettext","language","ph7cms","translation"],"created_at":"2024-11-20T19:42:22.551Z","updated_at":"2025-10-13T16:36:48.394Z","avatar_url":"https://github.com/pH7Software.png","language":"PHP","funding_links":["https://github.com/sponsors/pH-7","https://patreon.com/ph7cms","https://www.buymeacoffee.com/ph7cms"],"categories":[],"sub_categories":[],"readme":"# Test Gettext Lang\n\nThe script will allow you to test quickly, debugging easily and much easier than with *pH7CMS* if Gettext is correctly installed or not.\n\nIt will check for the French language (`fr_FR`), but you can change this easily by changing the locale folder and the [locale constant](https://github.com/pH7Software/pH7CMS-Test-Gettext-Lang/blob/master/index.php#L14).\n\n\n## Prerequisites\n\n* PHP 5.4 or higher\n* Gettext properly installed\n    * `sudo apt-get install gettext` (Debian / Ubuntu)\n    * `sudo apt-get install php-gettext` (Debian / Ubuntu)\n    * `sudo apt-get install locales` (Debian / Ubuntu)\n\n\n## How It Works?\n\nIn a lot of cases (even when Gettext is installed on the server), Gettext won't work for some reason (and this is not caused by pH7CMS!) To check if it is correctly installed or to debug if Gettext is not working, please play with this script.\n\n\n### *In most cases when it failed, it's because the OS (the system of the server) doesn't recognised the locale (the language) set by Gettext*\n\n## How To Install the missing locale (language) on my server?\n\nFor Ubuntu and other OS based on Debian, you can see what languages (locales) are installed on the OS (server) by typing `locale -a` in your terminal.\n\nIf you don't find the language of your Gettext translation, you will have to install the locale for your language so the server will reconize the language of your site.\n\nFor the example, it will be French (as this script uses French locale). If French is not the language you need, you will have to change it to yours (e.g., `ru_RU` for Russian, `es_ES` for Spanish, `it_IT` for Italian, `de_DE` for German, `nl_NL` for Dutch, ...).\n\n* `sudo locale-gen fr_FR`\n* `sudo locale-gen fr_FR.UTF-8`\n* `sudo dpkg-reconfigure locales`\n\n\n## Website\n\n[pH7CMS](http://ph7cms.com)\n\n\n## Author\n\nPierre-Henry Soria\n\n\n## Contact Me\n\nBy email at: *phy [AT] hizup [D0T] uk* or at: *ph7software [AT] gmail [D0T] com*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph7software%2Fph7cms-test-gettext-lang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fph7software%2Fph7cms-test-gettext-lang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph7software%2Fph7cms-test-gettext-lang/lists"}