Automattic / Automattic/babble

Provide language specific template files

Open
#121 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
250
Forks
44
PR merge metrics
No merged PRs in 30d

Description

Allow theme developers to append the language code to any given WordPress template file, and have that override the non-language specific version. For example:
- `index-fr-fr.php` overrides `index.php` for French
- `taxonomy-movie-the-shining-pt-br.php` overrides `taxonomy-movie-the-shining.php` for Brazilian Portuguese
- (etc)

Contributor guide

Open the contributing guide

Research direction

Start by locating the WordPress theme template resolution entry point and reviewing how non-language-specific template files are selected. Use the examples in the issue to trace the expected precedence, and consider the work done when language-suffixed files override their base templates for the listed locale patterns.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
internationalization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.