{"result":{"depiction_url":null,"edges":{"in_module":{"objects":[{"created":"2020-05-30T05:48:08Z","object_id":{"id":1410,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_translation","title":"mod_translation","uri":"https:\/\/zotonic.com\/id\/1410"},"seq":1000000}],"predicate":{"id":333,"is_a":["meta","predicate"],"name":"in_module","title":{"_type":"trans","tr":{"en":"In module"}},"uri":"https:\/\/zotonic.com\/id\/in_module"}},"subject":{"objects":[{"created":"2026-09-09T13:47:52Z","object_id":{"id":2555,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_reference","title":"Reference","uri":"https:\/\/zotonic.com\/id\/2555"},"seq":1},{"created":"2026-09-09T13:47:52Z","object_id":{"id":2564,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_backend_developer","title":"Backend developer","uri":"https:\/\/zotonic.com\/id\/2564"},"seq":2},{"created":"2026-09-09T13:47:52Z","object_id":{"id":2588,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_localization_and_translation","title":"Localization and translation","uri":"https:\/\/zotonic.com\/id\/2588"},"seq":3},{"created":"2026-09-09T13:47:52Z","object_id":{"id":2608,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_routing_and_redirects","title":"Routing and redirects","uri":"https:\/\/zotonic.com\/id\/2608"},"seq":4},{"created":"2026-09-09T13:47:52Z","object_id":{"id":2626,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_controller","title":"Controller","uri":"https:\/\/zotonic.com\/id\/2626"},"seq":5},{"created":"2026-09-09T13:47:52Z","object_id":{"id":2638,"is_a":["categorization","keyword","keyword_task"],"name":"zotonic_topic_edit","title":"Edit","uri":"https:\/\/zotonic.com\/id\/2638"},"seq":6},{"created":"2026-09-09T13:47:52Z","object_id":{"id":2668,"is_a":["categorization","keyword","keyword_data_type"],"name":"zotonic_topic_language_code","title":"Language code","uri":"https:\/\/zotonic.com\/id\/2668"},"seq":7}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":1884,"is_a":["text","documentation","reference","controller"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1884"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_controller_controller_language_set","page_url":{"en":"https:\/\/zotonic.com\/docs\/1884\/controller_language_set","x-default":"https:\/\/zotonic.com\/docs\/1884\/controller_language_set"},"preview_url":null,"resource":{"version":3316,"pivot_location_lat":null,"title":"controller_language_set","is_authoritative":true,"body":"<p>Controller which sets the language as given in the <code>code<\/code> argument, and redirects the user back to the page given in the\n<code>p<\/code> argument.<\/p>\n<p>Arguments:<\/p>\n<ul><li><code>code<\/code> is the requested enabled language code and is normally supplied by the\n<code>language_select<\/code> dispatch path.<\/li><li><code>p<\/code> is the optional return URL and defaults to <code>\/<\/code>.<\/li><\/ul>\n<p>Only same-site return URLs are accepted. The controller removes any existing\nlanguage prefix, adds the newly selected language, and responds with a permanent\nredirect. The response is not cached or indexed.<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-django\">&lt;a href=&quot;{% url language_select code=&quot;nl&quot; p=q.p %}&quot;&gt;Nederlands&lt;\/a&gt;\n<\/code><\/pre>","slug":"controller_language_set","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"f248a330df4f4b2fcb87c324876950eb4aa6db4562f4f74005301971f00ae8f0","is_featured":false,"content_group_id":{"id":2551,"is_a":["meta","content_group"],"name":"content_group_imported_docs","title":"Imported documentation","uri":"https:\/\/zotonic.com\/id\/content_group_imported_docs"},"category_id":{"id":321,"is_a":["meta","category"],"name":"controller","title":"Controllers","uri":"https:\/\/test.zotonic.com\/id\/321"},"doc_source_path":"apps\/zotonic_mod_translation\/src\/controllers\/controller_language_set.erl","publication_start":"2023-01-30T19:23:58Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_mod_translation\/src\/controllers\/controller_language_set.erl","pivot_location_lng":null,"doc_source_kind":"controller","name":"doc_controller_controller_language_set","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2020-05-30T05:47:42Z","uri":null,"doc_status":"current","is_dependent":false,"erlang_app":"zotonic_mod_translation","publication_end":"9999-06-01T00:00:00Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"privacy":0,"doc_source_commit":"85498256abd162b9bc082d43a90c995844fd4408\n","erlang_module":"controller_language_set","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-09-29T14:40:14Z","title_slug":"controller_language_set"},"uri":"https:\/\/zotonic.com\/id\/1884","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1884"}},"status":"ok"}