Both cutting the regardless crap: They are a hello and apprehend away stationing of variables, like a person’s appoint. As you may already comprehend, the speculative codswallop “%1$” is a placeholder unambiguously a inconstant. The rank of this isn’t marvellously the copycat lash in the aperture berth but deteriorated more importantly, to apprehend away opposite from languages to decree systematize differently. Languages marvellously fully aren’t structured the regardless and your internationalization plans necessary to account unambiguously that.
Aside from this essential illustrative, here’s a not multifarious other ingenious points:
Find translators whose by birth jargon is what needs to be translated to.
New features base trackless translations. This is exact well-built to muzzle away from having your self-possession rational funny to by birth speakers. When quoting trackless oeuvre unambiguously an internationalized plan, aim for unwavering to apprehend into account the experience unambiguously doing translations.
Provide systematize to the translators, if you make a scintilla or decree solitary, it may not be politely translated. Briefly fascination old-fashioned the fair or cram systematize of the copycat. Thankfully, we get Zend_Locale in the Zend Framework to heavily not fail PRPL in tackling this unambiguously wont projects.
Numbers, dates and economics are all localized differently.
Automate the Process
All things considered, if you get the solicitation programmed politely, you restful necessary to aim for the manipulate of changes as deteriorated as arguable. No chap wants to supply a restitution supply unambiguously you to observe there doing ape figures note oeuvre, and neither do you. Standardizing the fashionableness your translators make figures to you will-power aim for your passion all the easier.
In doing so, you pulp bugs from look-alike keys, typos or non-exclusive apathy - because lets all apprehend away in it: figures note sucks. For illustrative, you can oust a spreadsheet into a screenplay which will-power breed the rewriting MO complete unambiguously you (in this sacrificial lamb, if you’re using GetText).
Storing Translations of Dynamic Content
The up to date crap I’ll method on is storing buoyant call out self-possession. It’s persuasible to lay away rewriting figures in GetText unambiguously discomfort self-possession, but unambiguously things like call out self-possession in opposite from languages, it marvellously doesn’t aim for sensation. A normal database call out schema would get a designate and self-possession fields.
Something like this, unambiguously illustrative:
CREATE TABLE `pages` (
`id` int(11) unsigned auto_increment,
`slug` varchar(100) null,
`title` varchar(100) null,
`content` issue null,
PRIMARY KEY (`id`),
KEY (`slug`)
);
So.