{"id":21278012,"url":"https://github.com/b13/t3ext-country2language","last_synced_at":"2025-10-16T10:07:51.460Z","repository":{"id":5677126,"uuid":"6887055","full_name":"b13/t3ext-country2language","owner":"b13","description":"TYPO3 Extension: Country-To-Language GEO Mapping","archived":false,"fork":false,"pushed_at":"2013-06-05T17:32:59.000Z","size":133,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-09T23:38:57.708Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/b13.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}},"created_at":"2012-11-27T16:46:00.000Z","updated_at":"2015-07-30T18:15:50.000Z","dependencies_parsed_at":"2022-08-24T17:42:04.413Z","dependency_job_id":null,"html_url":"https://github.com/b13/t3ext-country2language","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/b13%2Ft3ext-country2language","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Ft3ext-country2language/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Ft3ext-country2language/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Ft3ext-country2language/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b13","download_url":"https://codeload.github.com/b13/t3ext-country2language/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243734468,"owners_count":20339294,"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-21T10:08:46.701Z","updated_at":"2025-10-16T10:07:46.421Z","avatar_url":"https://github.com/b13.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TYPO3 Extension: Country-To-Language GEO Mapping (country2language)\n\nThe extension allows to take the free GeoIP database, which can be automatically updated by a Scheduler task, downloaded and unzipped from MaxMind. Then, on a per-pagetree-basis, one can enable the language detection in the PageTSconfig section on the root page of a pagetree.\n\n## PageTSconfig options\n\nPlease note that the following options are only used when there is no language parameter given in the URL.\n\n\n### Activate the country2language mappings\n\nYou can enable the language-detection based on the country with the following option\n\n\ttx_country2language.enable = 1\n\n\n### Set language-parameter based on the country\n\nSet \u0026L=45 and \u0026no_cache=1 when the visitor is from Australia\n\n\ttx_country2language.mapping {\n\t\tau.L = 45\n\t\tau.no_cache = 1\n\t}\n\n\n### Default GET parameters when no country options are set\n\nWhen no other mapping fits, then set the default values default language is not \"0\", but \"20\" in this case.\n\n\ttx_country2language.mapping {\n\t\tdefault.L = 20\n\t\tdefault.renderInPink = 1\n\t}\n\n### different languages based on browser languages\n\n\ttx_country2language.mapping {\n\t\t# in canada, english is default\n\t\tca.L = 4\n\t\t# canadians with a french browser should go canadian french\n\t\tfr-ca.L = 3\n\t}\n\n\n### Default redirects in countries\n\nRedirect to this URL when no language is set and coming from this country.\n\n\ttx_country2language.defaultRedirect {\n\t\tfr = /fr-FR/\n\t\ten = /en-INT/\n\t\tde = /de-DE/\n\t\tca = /en-CA/\n\t\tfr-ca = /fr-CA/\n\t\tuk = /en-UK/\n\t}\n\n\n### Map the country code to a GET variable\n\nMap the detected country code to the GET variable \"C\", which means that users from Germany will have \u0026C=DE in their URL.\n\n\ttx_country2language.countryCodeGetVariable = C\n\n### Set a default country code, if the IP couldn't be found\n\nSometimes, it is necessary to set the default country code, if the GeoIP detection has failed.\n\n\ttx_country2language.defaultCountryCode = UK\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb13%2Ft3ext-country2language","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb13%2Ft3ext-country2language","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb13%2Ft3ext-country2language/lists"}