Theme Translation Guide - DoSomethingArchive/legacy-website GitHub Wiki
How to translate DoSomethng Congo to French:
Find hardcoded string
Let's translate string The Problem
found on campaign Zéro tolérance a l’insalubrité.
Find it in Drupal
Open translation interface and search for The Problem
.
You can also search for one word,
Problem
, or even for a word part,Probl
.
When string is found, click "edit" to add the translation.
You must be an Administrator or an Editor to access translation interface.
Translate it
Enter the translation and click "save"
Check it
Go back to the site and check whether the string is translated now.
Special cases
Sometimes string may contain placeholders, e.g. Hey, @name!
. In translation, put @name
where you want a real user name to be inserted:
When François Hollande visits DoSomething Congo, he'll see
Hé, François!
In addition to @placeholder
, placeholders can also look like !placeholder
and %placeholder
.
Just keep it as in the original string, both prefix sign !
%
@
and the following word part.