{"id":19794164,"url":"https://github.com/simplesamlphp/dictionaryconverter","last_synced_at":"2026-02-10T23:31:11.995Z","repository":{"id":74416307,"uuid":"70675557","full_name":"simplesamlphp/dictionaryconverter","owner":"simplesamlphp","description":"Tool to convert and merge ssp json dictionaries to gettext .po-files","archived":false,"fork":false,"pushed_at":"2022-05-25T19:03:55.000Z","size":7,"stargazers_count":1,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-23T01:57:43.640Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/simplesamlphp.png","metadata":{"files":{"readme":"README.rst","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,"zenodo":null}},"created_at":"2016-10-12T07:41:28.000Z","updated_at":"2021-11-05T18:22:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8aaa9c5-f717-446a-a220-1425b87e981f","html_url":"https://github.com/simplesamlphp/dictionaryconverter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simplesamlphp/dictionaryconverter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplesamlphp%2Fdictionaryconverter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplesamlphp%2Fdictionaryconverter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplesamlphp%2Fdictionaryconverter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplesamlphp%2Fdictionaryconverter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplesamlphp","download_url":"https://codeload.github.com/simplesamlphp/dictionaryconverter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplesamlphp%2Fdictionaryconverter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29321332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T20:44:44.282Z","status":"ssl_error","status_checked_at":"2026-02-10T20:44:43.393Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-12T07:12:22.553Z","updated_at":"2026-02-10T23:31:11.973Z","avatar_url":"https://github.com/simplesamlphp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Dictionaryconverter\n===================\n\nThis ``python3`` script turns ``dictionaries/\u003csomename\u003e.definition.json`` and\n``dictionaries/\u003csomename\u003e.translation.json`` into gettext(1) .po-files, one per\nlanguage.\n\nInstallation\n------------\n\nCopy the script into the same directory that houses the ``dictionaries`` and\n``modules`` directories and run it from there.\n\nYou need to have `python3` in your path and the library `babel` in your python\npath. The latter can be installed with `pip install babel`.\n\nUsage\n-----\n\nBy default, it operates on the dictionaries in the base system. To\nconvert and merge the dictionaries in a module, use the ``-m \u003cmodulename\u003e``\nflag.\n\nThe default filename for the .po-file in base is ``messages.po``, while the\ndefault for a module is ``modulename.po``. This can be overridden with the\n``-D \u003cdomainname\u003e`` flag.\n\nThe command ``merge`` merges all dictionaries in a directory into one .po-file,\nwhile the command ``convert`` converts a single dictionary. The command\n``extract`` can copy out one or more tags from a dictionary into a file\n``extracted.po`` if you need to move some tags from one domain to another. The\ncommand ``stats`` will behave like a merge, but instead of saving a .po-file it\nwill print out some statistics about the merged dictionaries.\n\nIf there already exists a .po-file with the same name at the same location, the\nfile will be updated, not overwritten.\n\nRun it with the ``-h`` flag for more options.\n\nNote: all changes to the data are done before the .po-file is written. This\nscript cannot be used to rename or delete existing entries in a .po-file.\n\nExamples\n--------\n\nSee the included makefiles.\n\n``Makefile.example-merge`` will convert all the dictionaries included with the\nSimpleSAMLphp source. One for all base dictionaries, one each for all modules.\n\n``Makefile.example-stats`` will generate statistics in csv format for the base\nand every module.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplesamlphp%2Fdictionaryconverter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplesamlphp%2Fdictionaryconverter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplesamlphp%2Fdictionaryconverter/lists"}