{"id":15318644,"url":"https://github.com/appleboy/codeigniter-i18n","last_synced_at":"2025-04-15T02:28:45.895Z","repository":{"id":2049691,"uuid":"2987314","full_name":"appleboy/CodeIgniter-i18n","owner":"appleboy","description":"i18n library for CodeIgniter 2.1.x","archived":false,"fork":false,"pushed_at":"2013-07-03T06:11:26.000Z","size":108,"stargazers_count":8,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T08:20:46.549Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"rails/rails","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appleboy.png","metadata":{"files":{"readme":"README.markdown","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}},"created_at":"2011-12-15T12:14:34.000Z","updated_at":"2023-02-28T11:03:30.000Z","dependencies_parsed_at":"2022-08-20T11:11:04.925Z","dependency_job_id":null,"html_url":"https://github.com/appleboy/CodeIgniter-i18n","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2FCodeIgniter-i18n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2FCodeIgniter-i18n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2FCodeIgniter-i18n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2FCodeIgniter-i18n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleboy","download_url":"https://codeload.github.com/appleboy/CodeIgniter-i18n/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248993446,"owners_count":21195198,"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-10-01T09:02:01.705Z","updated_at":"2025-04-15T02:28:45.876Z","avatar_url":"https://github.com/appleboy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Internationalization (i18n) library for CodeIgniter\n========================\n\nIt is a simple internationalization (i18n) for CodeIgniter 2.1.X\n\nRequirement\n========================\n\n* CodeIgniter 2.1.X\n* Enable Session\n\nWhat it does\n========================\n\nHave the language field in the URL, exapmle:\n\n* http://xxx.com/?lang=en-us\n* http://xxx.com/index.php/welcome/index?lang=en-us\n\nInstallation\n========================\n\ncopy application/config/language.php to your_app/application/config/\ncopy application/core/MY_Lang.php to your_app/application/core/\n\n    $ cp application/config/language.php our_app/application/config/\n    $ cp application/core/MY_Lang.php your_app/application/core/\n\nConfiguration\n========================\n\nOpen application/config/language.php file\n\n* language_field\n\nYou can find this field in URL, default value is \"lang\", example: xxx.com/?lang=zh-tw\n\n* language_default_key\n\nDefault language you want to output.\n\n* language_list\n\nThe language array lists you can support.\n\n    key: defined from $_['HTTP_ACCEPT_LANGUAGE']\n    value: corresponding to your language folder.\n\nHow to use\n========================\n\napplication/language/english/about_lang.php\n\n    \u003c?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n    $lang['home'] = \"Home\";\n    $lang['introduction'] = \"Introduction\";\n    $lang['location'] = \"Location\";\n\nView\n\n    \u003cp\u003e\u003c?php echo lang('about.home')?\u003e\u003c/p\u003e\n    \u003cp\u003e\u003c?php echo lang('about.introduction')?\u003e\u003c/p\u003e\n    \u003cp\u003e\u003c?php echo lang('about.location')?\u003e\u003c/p\u003e\n\nThe language class will add prefix value on all language array key automatically.\n\nexample:\n\n    about_lang.php =\u003e key: about.xxxx\n    api_lang.php =\u003e Key: api.xxxx\n\nCopyright\n========================\n\nCopyright (C) 2011 Bo-Yi Wu ( appleboy AT gmail.com )\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fcodeigniter-i18n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappleboy%2Fcodeigniter-i18n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fcodeigniter-i18n/lists"}