{"id":199216,"date":"2024-07-23T14:31:31","date_gmt":"2024-07-23T14:31:31","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/rewrite-bases-internationalization\/"},"modified":"2025-04-16T13:13:31","modified_gmt":"2025-04-16T13:13:31","slug":"rewrite-bases-internationalization","status":"publish","type":"plugin","link":"https:\/\/test.wordpress.org\/plugins\/rewrite-bases-internationalization\/","author":20780537,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"1.0","tested":"6.8.5","requires":"6.0","requires_php":"8.0","requires_plugins":null,"header_name":"Rewrite Bases Internationalization","header_author":"Timo Hubois","header_description":"Internationalization of rewrite bases for author, search, comments and page slugs.","assets_banners_color":"","last_updated":"2025-04-16 13:13:31","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/timohubois\/rewrite-bases-internationalization\/","header_author_uri":"https:\/\/pixelsaft.wtf","rating":0,"author_block_rating":0,"active_installs":0,"downloads":930,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"timohubois","date":"2025-04-16 13:13:31"}},"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3274747,"resolution":"1","location":"assets","locale":"","width":2880,"height":2124}},"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[132,107,900,939,944],"plugin_category":[44,59],"plugin_contributors":[220890],"plugin_business_model":[],"class_list":["post-199216","plugin","type-plugin","status-publish","hentry","plugin_tags-author","plugin_tags-comments","plugin_tags-pagination","plugin_tags-permalinks","plugin_tags-search","plugin_category-discussion-and-community","plugin_category-utilities-and-tools","plugin_contributors-timohubois","plugin_committers-timohubois"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/rewrite-bases-internationalization.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/rewrite-bases-internationalization\/assets\/screenshot-1.png?rev=3274747","caption":""}],"raw_content":"<!--section=description-->\n<p>This plugin allows you to customize and internationalize the rewrite bases for author archives, search results, comments and page slugs in WordPress. It provides an easy-to-use interface in the Permalinks Settings page to set custom values for these bases.<\/p>\n\n<p>If you notice that your permalink changes aren't reflecting on your site, try the following steps:<\/p>\n\n<ol>\n<li>Go to Settings &gt; Permalinks in your WordPress admin panel.<\/li>\n<li>Without making any changes, click the \"Save Changes\" button at the bottom of the page.<\/li>\n<\/ol>\n\n<h3>Key Features<\/h3>\n\n<ul>\n<li>Customize rewrite bases for author, search, comments and page (pagination) slugs<\/li>\n<li>Automatically uses WordPress's language-specific terms as defaults, if available<\/li>\n<li>Integrates seamlessly with the WordPress Permalinks Settings page<\/li>\n<\/ul>\n\n<h3>Motivation<\/h3>\n\n<p>Internationalized rewrite bases for author, search, comments and page (pagination) in WordPress are not part of the WordPress Core. This is because the <a href=\"https:\/\/github.com\/WordPress\/wordpress-develop\/blob\/6.5\/src\/wp-includes\/class-wp-rewrite.php\">WP_Rewrite<\/a> class uses <a href=\"https:\/\/github.com\/WordPress\/wordpress-develop\/blob\/c26d2a30d5fbff5bc8fd613f9862a2bcc9c3e62b\/src\/wp-includes\/class-wp-rewrite.php#L49\">hardcoded strings<\/a> which were never translated until 2024. There is an old ticket (<a href=\"https:\/\/core.trac.wordpress.org\/ticket\/1762\">#1762<\/a>) that discusses this issue, including the idea of modifying the <code>WP_Rewrite<\/code> property with a plugin. This plugin implements that solution. It extends the native Permalinks settings page and adds a section to change the rewrite bases for author, search, comments and page (pagination). By default, these are based on the current language of your site.<\/p>\n\n<h3>Want to contribute?<\/h3>\n\n<p>Check out the Plugin <a href=\"https:\/\/github.com\/timohubois\/rewrite-bases-internationalization\/\">GitHub Repository<\/a>.<\/p>\n\n<h3>Additional Info<\/h3>\n\n<p>For more information about the WordPress Rewrite API, please visit the <a href=\"https:\/\/developer.wordpress.org\/reference\/classes\/wp_rewrite\/\">WordPress Rewrite API documentation<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/rewrite-bases-internationalization<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>Go to Settings &gt; Permalinks to configure the rewrite bases.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20do%20i%20set%20custom%20rewrite%20bases%3F'><h3>How do I set custom rewrite bases?<\/h3><\/dt>\n<dd><p>After activating the plugin, go to Settings &gt; Permalinks. You'll find a new section called \"Rewrite Bases\" where you can enter custom values for author, search, comments and pagination bases.<\/p><\/dd>\n<dt id='what%20happens%20if%20i%20leave%20a%20field%20blank%3F'><h3>What happens if I leave a field blank?<\/h3><\/dt>\n<dd><p>If you leave a field blank, the plugin will use WordPress's default language-specific term for that base.<\/p><\/dd>\n<dt id='does%20this%20plugin%20work%20with%20wmpl%20or%20other%20translation%20plugins%3F'><h3>Does this plugin work with WMPL or other translation plugins?<\/h3><\/dt>\n<dd><p>This plugins is currently not tested with WMPL or other translation plugins and does not support them.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Internationalize rewrite bases for author, search, comments and page (pagination) slugs in WordPress.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/199216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=199216"}],"author":[{"embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/timohubois"}],"wp:attachment":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=199216"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=199216"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=199216"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=199216"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=199216"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=199216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}