Difference between revisions of "Template:Top 10:LanguageFile"

From OWASP
Jump to: navigation, search
(added business (en))
(Improved error message, if a 'text' has not been found)
Line 163: Line 163:
 
         <!-- BEGIN of SubSubsectionExternalReferencesTemplate -->  </noinclude>
 
         <!-- BEGIN of SubSubsectionExternalReferencesTemplate -->  </noinclude>
 
         | myUnused =                      FEHLER im 'Language File' (Aufruf des unbenutzten Objekts)
 
         | myUnused =                      FEHLER im 'Language File' (Aufruf des unbenutzten Objekts)
         | #default =                      FEHLER im 'Language File' (Aufruf des unbekannten Objekts)
+
         | #default =                      FEHLER im '<u>[[:Template:Top_10:LanguageFile|Language File]]</u>' (Aufruf des unbekannten Objekts '{{{text}}}')
 
     }} <!-- End of German -->
 
     }} <!-- End of German -->
 
<noinclude>
 
<noinclude>
Line 342: Line 342:
 
         <!-- BEGIN of SubSubsectionExternalReferencesTemplate --> </noinclude>
 
         <!-- BEGIN of SubSubsectionExternalReferencesTemplate --> </noinclude>
 
         | myUnused =                      ERROR in the 'Language File' (Use of the unused Object)
 
         | myUnused =                      ERROR in the 'Language File' (Use of the unused Object)
         | #default =                      ERROR in the 'Language File' (Use of an unknown Object)
+
         | #default =                      ERROR in the '<u>[[:Template:Top_10:LanguageFile|Language File]]</u>' (Use of unknown Object '{{{text}}}')
 
     }} <!-- End of English -->
 
     }} <!-- End of English -->
 
}}</onlyinclude>
 
}}</onlyinclude>

Revision as of 11:58, 1 January 2018

Usage:

This File contains all the text that is used by OWASP Top 10 Templates
Please leave a message to Torsten Gigler @ if you liked to add a new localization
If you use an undefined language you will get English output (default language).

{{Top_10:LanguageFile

|text=<parameter> <!-- take one of the defined parmeters, e.g. tableOfContents -->
|language=<your language> <!-- actually only English (=en) and German (=de) are valid parameters) -->
|year=<year> <!-- optional for some texts -->

}}

Example:

{{Top_10:LanguageFile|text=tableOfContents|language=de}} => Inhaltsverzeichnis


Healthcheck

tbd.
In the meantime, please check:


If you use an unknown parameter you will get the following Error message in your wiki page:
ERROR in the 'Language File' (Use of unknown Object '{{{text}}}')