- The structure of transtable.xml is revised. <word> should be bracketed with <group>. - A sorting order of the FreeBSD mirror sites rendered using mirrors.xml has been determined by sort(1). - A template "transtable-lookup" has been added for localization on word-by-word basis. - Replace English month names in news.xml, press.xml, and advisories.xml with numbers that correspond to the names. The number->name translation is performed on the fly. - Since information in mirrors.xml is used in www/ tree, it depends on doc/ tree now. When WITHOUT_DOC is defined it can be built without doc/ tree, but some information becomes unavailable. For example, a list of the mirror sites generated in index.html becomes a dummy one, and calling "transtable-lookup" with a word returns the word itself. Neither www/ nor doc/ build should be broken due to this commit, but until the necessary changes are applied in the localized directories, the transtable does not work; it simply generates non-localized contents even if transtable.xsl is used.
		
			
				
	
	
		
			86 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			86 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="iso-8859-1"?>
 | |
| <!-- $FreeBSD$ -->
 | |
| 
 | |
| <!--
 | |
| 
 | |
|   This is a translation table used in transtable-common.xsl.
 | |
|   For example:
 | |
| 
 | |
|   <group id="country">
 | |
|     <word>
 | |
|       <orig>word in English</orig>
 | |
|       <tran>word in your language</tran>
 | |
|     </word>
 | |
|   </group>
 | |
| 
 | |
| -->
 | |
| 
 | |
| <transtable>
 | |
|   <cvs:keywords xmlns:cvs="http://www.FreeBSD.org/XML/CVS" version="1.0">
 | |
|     <cvs:keyword name="freebsd">
 | |
|       $FreeBSD$
 | |
|     </cvs:keyword>
 | |
|   </cvs:keywords>
 | |
| 
 | |
|   <group id="number-month">
 | |
|     <word>
 | |
|       <orig>1</orig>
 | |
|       <tran>January</tran>
 | |
|     </word>
 | |
| 
 | |
|     <word>
 | |
|       <orig>2</orig>
 | |
|       <tran>February</tran>
 | |
|     </word>
 | |
| 
 | |
|     <word>
 | |
|       <orig>3</orig>
 | |
|       <tran>March</tran>
 | |
|     </word>
 | |
| 
 | |
|     <word>
 | |
|       <orig>4</orig>
 | |
|       <tran>April</tran>
 | |
|     </word>
 | |
| 
 | |
|     <word>
 | |
|       <orig>5</orig>
 | |
|       <tran>May</tran>
 | |
|     </word>
 | |
| 
 | |
|     <word>
 | |
|       <orig>6</orig>
 | |
|       <tran>June</tran>
 | |
|     </word>
 | |
| 
 | |
|     <word>
 | |
|       <orig>7</orig>
 | |
|       <tran>July</tran>
 | |
|     </word>
 | |
| 
 | |
|     <word>
 | |
|       <orig>8</orig>
 | |
|       <tran>August</tran>
 | |
|     </word>
 | |
| 
 | |
|     <word>
 | |
|       <orig>9</orig>
 | |
|       <tran>September</tran>
 | |
|     </word>
 | |
| 
 | |
|     <word>
 | |
|       <orig>10</orig>
 | |
|       <tran>October</tran>
 | |
|     </word>
 | |
| 
 | |
|     <word>
 | |
|       <orig>11</orig>
 | |
|       <tran>November</tran>
 | |
|     </word>
 | |
| 
 | |
|     <word>
 | |
|       <orig>12</orig>
 | |
|       <tran>December</tran>
 | |
|     </word>
 | |
|   </group>
 | |
| </transtable>
 |