Translating your site

  • In Drupal, non-English speaking countries can translate computer-generated text to their language using the 'Translate site' link.
  • Different countries also display dates in different ways, which can also be handled by the system.

Translating words and phrases

To translate a word/phrase/sentence, enter into the search box. The search is case sensitive so try to enter it exactly as it appears on the site in English. When you see the result you want, press 'edit' to translate it.

Note that some words might crop up many times - there will be a search result here for every place the word(s) appear on the site. Many of these results are to do with site admin, which you do not need to worry about. The main thing is to ensure that any content that the visitor sees is translated.

The context a word appears in also shows up in the search to help you see if it is admin-related or not. We have put the proper contexts in brackets beside the translations below.


Sidebar block titles

These blocks are for the Races site but the first 2 are also in the Centre site.

Navigation (/admin/build/block/list/races)
Latest news (/admin/build/block/list/races)
Latest blog entries (/admin/build/block/list/races)
Upcoming events (/admin/build/block/list/races)
Blog categories (/admin/build/block/list/races)

Event details (Races site)

When (/node/xxxx)
Where
Contact name
Contact phone
Contact email

Views (Races site)

Views allow you to automatically display list of events, results and blogs in any area of your site (for example see the French home page)

 

If you are using links instead of buttons (ie the news_events_full_link view):

Read more...
View Photos...
View results...
Enter Online...
Download entry form...

 

Translating and displaying dates (Races site)

As well as going to the global home page, dates appear in the event details of an event, as well as any views set up on your site.

There are 2 date formats used for events on the site:

Aug 27 6.00am (this version is used in the event details, if they are displayed)

August 27 (this version is used on the global front page, as well as in any views you set up on site)

Not every country displays their dates like this. For example for their events, the French site uses 27-08-09 06:00. If needed, you can submit alternative formats for your country to Nirbhasa via MMS.

However, then the names of days and months need to be translated:

Days (long form)

On the 'Translate site' page, type in 'Monday' into the search. One result you get is

!day-name Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday

Press edit for this one, and fill in the translated days, leaving the !day-name alone. For example in French:

!day-name Dimanche|Lundi|Mardi|Mercredi|Jeudi|Vendredi|Samedi

Months (long form)

Type in 'January' into the search, one result you get is

!month-name |January|February|March|April|May|June|July|August|September|October|November|December

Press edit for this one, and fill in the translated months, leaving the !month-name alone. For example in French:

!month-name |Janvier|Février|Mars|Avril|Mai|Juin|Juillet|Août|Septembre|Octobre|Novembre|Decembre

Months (abbreviation)

The date format for your country might use an abbreviated version of the month name. If that is the case, you will need to translate this seperately. Type in 'Jan' into the search, one result you get is

!month-abbreviation |Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec

Press edit for this one, and fill in the translated months, leaving the !month-abbreviation alone.

Days (abbreviation)

Type in 'Tue' into the search, one result you get is

!day-abbreviation Sun|Mon|Tue|Wed|Thu|Fri|Sat

Press edit for this one, and fill in the translated days, leaving the !day-abbreviation alone.

Repeating events

In the event details block, we can indicate that events take place every week/month, such as the 2 mile race. To translate this is a little more complicated :)

First, you need to translate (to find it just type in 'Takes place'):

Takes place !interval !bymonth !byday !count !except.<br /><em>Next race:</em>

The only things you need to translate here is 'Takes place' and 'Next race:' - the rest is placeholder text and code.For example, the French translation is:

A lieu !interval !bymonth !byday !count !except.<br /><em>Prochaine course:</em>

Then, seperately you need to translate how often it happens - 'every week' or 'every month'. If you want to say it happens 'except' a certain date/month, then you need to translate 'except' too.

Note: You dont need to literally translate things if it doesnt lead to natural sentences :) For example, if you select an event to repeat every week on Saturdays, you'll get 'Takes place every week every Saturday'. In this case, its probably better to translate 'every Saturday' to 'on Saturdays'.

 

Translating views buttons

If you are using views on your site, and you want to translate the buttons, the Photoshop files are available for download from this page (scroll down a bit). They can then be uploaded to the 'entryimages' folder on your site. It is important that they keep the same names.