Difference between revisions of "Localisation"
From WikipediaPlus
Line 20: | Line 20: | ||
|} | |} | ||
− | == | + | == How To Add A Language == |
The software locale consists of two strings to describe the extension (''Name'' and ''Description''), plus the following 6 files, of total size about 15K. | The software locale consists of two strings to describe the extension (''Name'' and ''Description''), plus the following 6 files, of total size about 15K. | ||
* {{file|name=wikipediaPlus.dtd}} | * {{file|name=wikipediaPlus.dtd}} | ||
Line 29: | Line 29: | ||
* {{file|name=addEditSite.properties}} | * {{file|name=addEditSite.properties}} | ||
− | Around half of these files (the right-hand half) | + | Around half of these files (the right-hand half) needs translating. |
+ | The '<font face="courier">.properties</font>' files are like this: | ||
{| | {| | ||
|'''InternalName (Not translated)''' | |'''InternalName (Not translated)''' | ||
Line 47: | Line 48: | ||
|= | |= | ||
|en | |en | ||
+ | |} | ||
+ | |||
+ | The '<font face="courier">.dtd</font>' files are like this: | ||
+ | {| | ||
+ | |'''InternalName (Not translated)''' | ||
+ | | | ||
+ | |'''Displayed Text (Needs translation)''' | ||
+ | |- | ||
+ | |<font face="courier"><!ENTITY addEdit.use.current</font> | ||
+ | | | ||
+ | |<font face="courier">"</font>Use current<font face="courier">"></font> | ||
+ | |- | ||
+ | |<font face="courier"><!ENTITY addEdit.use.current.tip</font> | ||
+ | | | ||
+ | |<font face="courier">"</font>Add the current URL to the website list<font face="courier">"></font> | ||
+ | |- | ||
+ | |<font face="courier"><!ENTITY addEdit.language.single</font> | ||
+ | | | ||
+ | |<font face="courier">"</font>Single language<font face="courier">"></font> | ||
|} | |} |