03.09.2018 Views

Moodle 2.0

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3<br />

For example, the subdirectory /lang/en_us holds files for the U.S. English<br />

translation, and /lang/es_es holds the files for traditional Spanish<br />

(Espanol / Espana).<br />

The name of the subdirectory is the "language code". Knowing that code can be<br />

useful. In the example above, es_utf8 tells us the language code for International<br />

Spanish is es.<br />

Inside a language pack's directory, we see a list of files that contain the translations:<br />

For example, the file /lang/es_utf8/forum.php holds text used on the forum<br />

pages. This includes text that is displayed to the course creator when creating the<br />

forum, and text that is displayed to the students when they use the forum. Here are<br />

the first few lines from the English version of that file:<br />

$string['addanewdiscussion'] = 'Add a new discussion topic';<br />

$string['addanewtopic'] = 'Add a new topic';<br />

$string['advancedsearch'] = 'Advanced search';<br />

And here are the same first three lines from the Spanish version of that file:<br />

$string['addanewdiscussion'] = 'Colocar un nuevo tema de discusión<br />

aquí';<br />

$string['addanewtopic'] = 'Agregar un nuevo tema';<br />

$string['advancedsearch'] = 'Búsqueda avanzada';<br />

[ 99 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!