Skip to Content
Smashing WordPress: Beyond the Blog, 2nd Edition
book

Smashing WordPress: Beyond the Blog, 2nd Edition

by Thord Daniel Hedengren
June 2011
Intermediate to advanced
351 pages
13h 45m
English
Wiley
Content preview from Smashing WordPress: Beyond the Blog, 2nd Edition
152
PART II:DESIGNING AND DEVELOPING WORDPRESS THEMES
When you release a theme or a plugin with a language  le, be sure to also make the original
.po  le available so that the users can translate it into their own language as well. It is a good
idea to encourage that, since others may bene t as well.
THE NAMING ISSUE
While it may not be entirely within your theme or plugin translation scope, a weird error
arises when a widget area gets called, and it can’t be found because the name has been
changed by the translation.  at is (or hopefully was, by the time you read this) the case with
WordPress and the Swedish translation of “Sidebar,” being a widget area located in sidebar.
php no less.  e translators translated “Sidebar” (to “Sidomeny,” which somewhat misses the
mark, but still) and by doing so the themes that made direct calls to the “Sidebar” widget area
failed, since it was translated incorrectly.
Messy? Yes, it is.  e point is, be wary so that you don’t end up translating things that are used
for calling up various features, functions, or whatever. At least not without making sure that
the actual call for whatever it is, is also altered accordingly. You might want to take a closer
look at the functions.php  le in either Twenty Ten’s or Notes Blog’s and examine how the
widget areas are localized there. By localizing both the area name (and description), and the
actual ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Smashing WordPress: Beyond the Blog, 4th Edition

Smashing WordPress: Beyond the Blog, 4th Edition

Thord Hedengren
HTML5 Multimedia Developer's Guide

HTML5 Multimedia Developer's Guide

Ken Bluttman, Lee Cottrell

Publisher Resources

ISBN: 9781119995968Purchase bookDownloads