{"id":19710149,"url":"https://github.com/imacat/locale-maketext-gettext","last_synced_at":"2026-05-15T19:32:43.194Z","repository":{"id":56837098,"uuid":"207298341","full_name":"imacat/Locale-Maketext-Gettext","owner":"imacat","description":"Joins the gettext and Maketext frameworks","archived":false,"fork":false,"pushed_at":"2021-02-11T01:00:58.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-10T14:02:09.353Z","etag":null,"topics":["l10n","localization"],"latest_commit_sha":null,"homepage":"https://metacpan.org/release/Locale-Maketext-Gettext","language":"Perl","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/imacat.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-09T11:57:37.000Z","updated_at":"2021-02-11T01:01:00.000Z","dependencies_parsed_at":"2022-08-28T21:11:10.425Z","dependency_job_id":null,"html_url":"https://github.com/imacat/Locale-Maketext-Gettext","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imacat%2FLocale-Maketext-Gettext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imacat%2FLocale-Maketext-Gettext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imacat%2FLocale-Maketext-Gettext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imacat%2FLocale-Maketext-Gettext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imacat","download_url":"https://codeload.github.com/imacat/Locale-Maketext-Gettext/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241026891,"owners_count":19896717,"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":["l10n","localization"],"created_at":"2024-11-11T22:06:32.440Z","updated_at":"2026-05-15T19:32:43.161Z","avatar_url":"https://github.com/imacat.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"Locale::Maketext::Gettext - Joins the gettext and Maketext frameworks\n=====================================================================\n\nLocale::Maketext::Gettext joins the [GNU gettext] and [Maketext]\nframeworks.  It is a subclass of Locale::Maketext that follows the\nway GNU gettext works.  It works seamlessly, both in the sense of\nGNU gettext and Maketext.  As a result, you enjoy both their\nadvantages, and get rid of both their problems, too.\n\nYou start as a usual GNU gettext localization project:  Work on\nPO files with the help of translators, reviewers and Emacs.  Turn\nthem into MO files with `msgfmt`.  Copy them into the appropriate\nlocale directory, such as\n`/usr/share/locale/de/LC_MESSAGES/myapp.mo`.\n\nThen, build your Maketext localization class, with your base class\nchanged from Locale::Maketext to Locale::Maketext::Gettext.  That's\nall. ^_*'\n\n[GNU gettext]: https://www.gnu.org/software/gettext/\n[Maketext]: https://perldoc.perl.org/Locale::Maketext\n\n\nLocale::Maketext::Gettext::Functions\n------------------------------------\n\nLocale::Maketext::Gettext::Functions is a functional\ninterface to Locale::Maketext::Gettext (and Locale::Maketext).\nIt works completely the GNU gettext way.  It plays magic to\nLocale::Maketext.  No more localization class/subclasses and language\nhandles are required.\n\n\nThe `maketext` script\n---------------------\n\nThe `maketext` script is a command-line interface to\nLocale::Maketext::Gettext (and Locale::Maketext).  It can be used in\nshell scripts, etc, to translate, maketext and return the\nresult.  It enables Maketext to be integrated into other programming\nlanguages/systems, like bash/csh, python, PHP, C, etc.  It works\nlike the command-line program `gettext`.\n\n\nSystem Requirements\n-------------------\n\n1. Perl, version 5.8.0 or above.  Locale::Maketext::Gettext needs the\n   utf8 text internally that is only available since 5.8.0.\n\n   You can run `perl -v` to check your current Perl version.  If you\n   do not have Perl, or if you have an older version of Perl, you can\n   download and install/upgrade it from the [Perl website].  For\n   MS-Windows, you can download and install [Strawberry Perl] or\n   [ActivePerl].\n\n2. Required Perl modules: None.\n\n3. Optional Perl modules: None.\n\n[Perl website]: https://www.perl.org\n[Strawberry Perl]: https://strawberryperl.com\n[ActivePerl]: https://www.activestate.com/products/perl/\n\n\nDownload\n--------\n\nLocale::Maketext::Gettext is hosted is on…\n\n* [Locale-Maketext-Gettext on GitHub]\n\n* [Locale-Maketext-Gettext on MetaCPAN]\n\n[Locale-Maketext-Gettext on GitHub]: https://github.com/imacat/Locale-Maketext-Gettext\n[Locale-Maketext-Gettext on MetaCPAN]: https://metacpan.org/release/Locale-Maketext-Gettext\n\n\nInstall\n-------\n\n### Install with [ExtUtils::MakeMaker]\n\n    % perl Makefile.PL\n    % make\n    % make test\n    % make install\n\nWhen running `make install`, make sure you have the privilege to write\nto the installation locations.  This usually requires the `root`\nprivilege.\n\nIf you want to install into another location, you can set the\n`PREFIX`.  For example, to install into your home when you are not\n`root`:\n\n    % perl Makefile.PL PREFIX=/home/jessica\n\nRefer to the documentation of ExtUtils::MakeMaker for more\ninstallation options (by running `perldoc ExtUtils::MakeMaker`).\n\nFor MS-Windows, since `make` is not universally available,\nModule::Build is preferred to ExtUtils::MakeMaker.  See the\ninstructions below.\n\n\n### Install with [Module::Build]\n\n    % perl Build.PL\n    % ./Build\n    % ./Build test\n    % ./Build install\n\nWhen running `./Build install`, make sure you have the privilege to\nwrite to the installation locations.  This usually requires the `root`\nprivilege.\n\nIf you want to install into another location, you can set the\n`--prefix`.  For example, to install into your home when you are not\n``root``:\n\n    % perl Build.PL --prefix=/home/jessica\n\nRefer to the documentation of Module::Build for more\ninstallation options (by running `perldoc Module::Build`).\n\n\n### Install with the CPAN Shell\n\nCPAN shell takes care of ExtUtils::MakeMaker or Module::Build for you:\n\n    % cpan Locale::Maketext::Gettext\n\nMake sure you have the privilege to write to the installation\nlocations.  This usually requires the `root` privilege.  Since CPAN\nshell 1.81 you can set `make_install_make_command` and\n`mbuild_install_build_command` in your CPAN configuration to switch\nto `root` just before install:\n\n    % cpan\n    cpan\u003e o conf make_install_make_command \"sudo make\"\n    cpan\u003e o conf mbuild_install_build_command \"sudo ./Build\"\n    cpan\u003e install Locale::Maketext::Gettext\n\nIf you want to install into another location, you can set `makepl_arg`\nand `mbuild_arg` in your CPAN configuration.  For example, to install\ninto your home when you are not `root`:\n\n    % cpan\n    cpan\u003e o conf makepl_arg \"PREFIX=/home/jessica\"\n    cpan\u003e o conf mbuild_arg \"--prefix=/home/jessica\"\n    cpan\u003e install Locale::Maketext::Gettext\n\nRefer to the documentation of cpan for more CPAN shell commands\n(by running `perldoc cpan`).\n\n\n### Install with the CPANPLUS Shell\n\nCPANPLUS shell takes care of ExtUtils::MakeMaker or Module::Build for\nyou:\n\n    % cpanp -i Locale::Maketext::Gettext\n\nMake sure you have the privilege to write to the installation\nlocations.  This usually requires the `root` privilege.\n\nIf you want to install into another location, you can set\n`makemakerflags` and `buildflags` in your CPANPLUS configuration.\nFor example, to install into your home when you are not `root`:\n\n    % cpanp\n    CPAN Terminal\u003e s conf makemakerflags \"PREFIX=/home/jessica\"\n    CPAN Terminal\u003e s conf buildflags \"--prefix=/home/jessica\"\n    CPAN Terminal\u003e install Locale::Maketext::Gettext\n\nRefer to the documentation of `cpanp` for more CPANPLUS shell\ncommands (by running `perldoc cpanp`).\n\n[ExtUtils::MakeMaker]: https://metacpan.org/release/ExtUtils-MakeMaker\n[Module::Build]: https://metacpan.org/release/Module-Build\n\n\nSource\n------\n\nSource is now on Github.  See\nhttps://github.com/imacat/Locale-Maketext-Gettext.\n\n\nSupport\n-------\n\nThe Locale-Maketext-Gettext project is hosted on GitHub.  Address your\nissues on the GitHub issue tracker\nhttps://github.com/imacat/Locale-Maketext-Gettext/issues.\n\n\nNews, Changes and Updates\n-------------------------\n\nRefer to the Changes for changes, bug fixes, updates, new functions, etc.\n\n\nThanks\n------\n\n* Thanks to [Max Maischein] for reporting CPAN tester failures 200029,\n  200332 and 200331, that helps me find the shell character escape\n  problem on my test suite.\n\n* Thanks to [Andreas Koenig] for reporting CPAN tester failures 387357\n  and submitting [rt bug 23956], informing me the base class\n  Locale::Maketext has updated its error handling behavior in the Perl\n  5.9.\n\n* Thanks to [Chris Travers] for suggestion to implement `pgettext()`\n  in GNU gettext as `pmaketext()`.\n\n[Max Maischein]: mailto:corion@corion.net\n[Andreas Koenig]: mailto:andk@cpan.org\n[rt bug 23956]: https://rt.cpan.org/Public/Bug/Display.html?id=23956\n[Chris Travers]: mailto:chris.travers@gmail.com\n\n\nTo Do\n-----\n\n* Design a way to install the MO file through ExtUtils::MakeMaker and\n  Module::Build.\n\n\nCopyright\n---------\n\n    Copyright (c) 2003-2021 imacat. All rights reserved. This program is free\n    software; you can redistribute it and/or modify it under the same terms\n    as Perl itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimacat%2Flocale-maketext-gettext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimacat%2Flocale-maketext-gettext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimacat%2Flocale-maketext-gettext/lists"}