Our content types for the site are still using English for the content type name on the "Create content" page, and for field names when making new content.
1. Go to AdministersSite buildingsModules (admin/build/modules) and enable the Strings and Content Types modules. You should see a message upon enabling that indicates a number of new strings were created.
2. Go to AdministersSite buildingsTranslate interface (admin/build/translate) and you will see a new column, "Content type," added to the Language table. It shows the number of new strings that the Internationalization module has created. You can see the new column in Figure 8-30 and compare that to the table as shown in Figure 8-3 from earlier in the chapter. The percent translated should still be 0, because we haven't translated any content types yet.
Thfs page provides an overview of available translatable strings. Drupal displays translatable strings in text groups; modules may define additional text groups containing other translatable strings. Because text groups provide a method of grouping related strings, they are often used to focus translation efforts on specific areas of the Drupal interface.
Review the languages page for more information on adding support for additional languages.
Language Built-in interface Content type
Figure 8-30. "Book page" string editing screen showing two translations
3. Click the Search tab and search for "Book page." You should see two results, just like Figure 8-31: one that is already translated from the "Built-in" interface group and another, not translated, in the "Content type" group.
Figure 8-31. String search results for "Book page"
4. Click the "edit" link for the "Content type" string and translate it to Boekpagina. (you can also add the French Page de livre if you like), as shown in Figure 8-32.
Figure 8-32. A "Content type" strings column has been added to the Translate interface table
5. After saving the new translation, if you go to "Create content" and switch to Dutch, you will see that the content type name for the Book page is now displayed in Dutch. Click the Boekpagina link as if to create a new book page. You will see that the Title field is still in English. You should also see a message that more strings were created.
6. Let's go back to Administers Site buildingsTranslate interface (admin/build/ translate) and change the Title field name.
7. Go to the Search tab and enter Title. We also know that we only want to look for Content type changes right now, so select the "Content type" radio button under the "Limit search to:" section of the search form as shown in Figure 8-33. Then click Search.
Translate interface Migratory Patterns Q | > )^ (j^) 0*0 ^ http://il8n/adfnin,■•build/translate/search w~ ▼ - f[G|' Google Q")
String contains: Title
Leave blank to show all strings. Tine search is case sensitive Language:
^ All languages
- English (provided by Drupal) C Dutch _ French Search in:
Both translated and untranslated strings
— Only translated strings _ Only untranslated strings Limit search to: _ All text groups
Built-in interface Content type
Figure 8-33. Limiting a string search by content type
8. We get one result for this. Click the edit link for it, translate it to the Dutch Titel (Titre for French), and save it.
9. Go back to "Create content" and switch to Dutch.
10. Click on Boekpagina to make a Book page and you will see that the "Title" field now says "Titel."
My account Create content Administer Content management Site building Blocks Menus Modules Themes
Translate interface Site configuration User management Reports Help Log out
Was this article helpful?