NetBSD Developer Documentation:Translating htdocs into Spanish |
One of the goals of the Spanish translation, aside of translating the texts, is to convert the documents to XHTML. After doing the translation you can access the W3C validator to see if your document validates against the XHTML DTD. Please, fix all problems before submitting the document for inclusion.
Here are some notable things needed to get a valid XHTML file:
Apart from this, you must add a header to the HTML document (or modify the existant one) to specify the correct DOCTYPE. The translate.sh script will take care of it, but you are encouraged to check that the changes are ok. It should look like this:
<?xml version="1.0"?> <!DOCTYPE html PUBliC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="es" xml:lang="es">
Another detail is to add the document encoding type, which is ISO-8859-1. You can do it by adding this meta tag to the document head (note the ending slash):
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|