i18n: Use translations for theme name, content, terms, and page title#97
i18n: Use translations for theme name, content, terms, and page title#97
Conversation
…ject This will use the translated content if the request is for a rosetta site.
|
Hmm actually.. Most of the Filter tags were intended to inherit their translations from Core, I don't recall if this is strictly required to match though.. I imagine not, as I assume it's query-by-slugs. Which originally matched the strings available here: |
|
Yeah, I saw the hardcoded filter list (it's also been copied into the theme, since I suppose for tags I could pull from that list of translations instead of generating a duplicate list in |
4e78304 to
1d9884c
Compare
01b25bd to
e637c62
Compare
|
Okay, I've fixed the pagination bug and updated the tag translation to use the features list (and omitted tags from the string export). However, I realized this doesn't match core 100% because I've switched the strings to use sentence-case. So the list is back to using |
fcbd0ba to
869d8a8
Compare

Fixes #74. This uses the theme object content for themes, which should automatically use the localized theme name and description.
Additionally, I've added the in-progress i18n composite action (WordPress/wporg-repo-tools#31), which pulls down term and page titles so that they can be easily imported into GlotPress with the rest of the strings (this is the generated commit 4e78304). As this theme is not being parsed yet, this doesn't do anything, but once it's indexed it should expose those items for translation so that, for example, "Commercially Supported GPL Themes" in the local nav can be translated.
The translation code was pulled from pattern-translations.
Screenshots
The theme title & description are translated. The "Features" list will be translated once the project is in GlotPress (and translated).
How to test the changes in this Pull Request:
You can also test the page name and term name translations with Pig Latin, just disable the
en_UScheck intranslate_term. You'll see some errors about the font_subset though.