{"id":18929567,"url":"https://github.com/thecodingmachine/utils.i18n.fine.db-translator","last_synced_at":"2025-07-08T19:09:14.410Z","repository":{"id":34718298,"uuid":"38695447","full_name":"thecodingmachine/utils.i18n.fine.db-translator","owner":"thecodingmachine","description":"Fine is a PHP internationalisation package. It will help you provide applications that support several languages. FINE means: Fine is not english :). This package provides a DB mapper that stores translations in database.","archived":false,"fork":false,"pushed_at":"2016-07-08T10:26:38.000Z","size":166,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":14,"default_branch":"4.0","last_synced_at":"2025-06-30T03:09:39.562Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/thecodingmachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-07T15:07:02.000Z","updated_at":"2016-07-08T10:26:39.000Z","dependencies_parsed_at":"2022-08-28T13:10:20.298Z","dependency_job_id":null,"html_url":"https://github.com/thecodingmachine/utils.i18n.fine.db-translator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thecodingmachine/utils.i18n.fine.db-translator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Futils.i18n.fine.db-translator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Futils.i18n.fine.db-translator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Futils.i18n.fine.db-translator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Futils.i18n.fine.db-translator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/utils.i18n.fine.db-translator/tar.gz/refs/heads/4.0","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Futils.i18n.fine.db-translator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264331213,"owners_count":23591960,"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-11-08T11:33:42.663Z","updated_at":"2025-07-08T19:09:14.375Z","avatar_url":"https://github.com/thecodingmachine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"FINE: database storage for translations\n=======================================\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/thecodingmachine/utils.i18n.fine.db-translator/badges/quality-score.png?b=4.0)](https://scrutinizer-ci.com/g/thecodingmachine/utils.i18n.fine.db-translator/?branch=4.0)\n[![Code Coverage](https://scrutinizer-ci.com/g/thecodingmachine/utils.i18n.fine.db-translator/badges/coverage.png?b=4.0)](https://scrutinizer-ci.com/g/thecodingmachine/utils.i18n.fine.db-translator/?branch=4.0)\n\nFine is Mouf's PHP internationalisation package. It will help you develop applications that support several languages.\n\nMost of the time, you will use Fine with the FileTranslator that stores translations in PHP mapping files.\nThis package contains one *alternative translator* that stores translations in database rather than in files.\n\nWhy?\n----\nUse this **DbTranslator** if you want to make translations editable by your users. You can then directly write \nthe translations in the `message_translations` table that is created by this package.\n\nDependencies\n------------\n\nFine comes as a *Composer* package and requires the \"Mouf\" framework to run.\nThe first step is therefore to [install Mouf](http://www.mouf-php.com/).\n\nOnce Mouf is installed, you can process to the Fine and DbTranslator installation.\n\nInstallation\n------------\n\nA typical *composer.json* file might look like this:\n```json\n\t{\n\t    \"require\": {\n\t\t\t\"mouf/mouf\" : \"~2.0.0\",\n\t\t\t\"mouf/utils.i18n.fine.common\" : \"~4.0\",\n\t    \t\"mouf/utils.i18n.fine.db-translator\" : \"~4.0\",\n\t  \t\t\"mouf/utils.i18n.fine.manage.bo\" : \"~4.0\"\n\t    },\n\t    \"minimum-stability\": \"dev\"\n\t}\n```\n\n*mouf/utils.i18n.fine.db-translator* refers to this package and *mouf/utils.i18n.fine.manage.bo* is package that \ncontains the user interface in Mouf to view/edit translations. \n\nTo install the dependency, run:\n\n```bash\ncomposer update\n```\n\nNow, go to the Mouf UI (http://[your_server]/[your_app]/vendor/mouf/mouf) and process to the package installation by\nclicking the \"Run installation tasks\" button.\n\nYou can now edit your translations directly using the \"HTML \u003e Fine\" menu.\n\nBehind the scenes, the Mouf installer has created a `dbTranslatorService` instance and binded it to the `defaultTranslatorService`.\nYou can keep using Fine is you would usually do (using the `defaultTranslatorService`) and the `dbTranslatorService`\n will automatically be called.\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Futils.i18n.fine.db-translator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Futils.i18n.fine.db-translator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Futils.i18n.fine.db-translator/lists"}