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

From OWASP
Jump to: navigation, search
(Improved error message, if a 'text' has not been found)
(top10TmpMessage (en): unterlined link and fixed default)
 
(3 intermediate revisions by the same user not shown)
Line 181: Line 181:
 
         | top10TmpMessage =  
 
         | top10TmpMessage =  
 
           {{#switch: {{{year}}}  
 
           {{#switch: {{{year}}}  
             | 2017 =              ==The OWASP Top 10-2017 have been released. This wiki page will be updated, soon.==<br/><br/>==Please use the <u>[[Media:OWASP_Top_10-2017_(en).pdf.pdf| PDF version of the OWASP Top 10 - 2017]]</u> for now.==<br/><br/>More information available <u>[[:Category:OWASP_Top_Ten_Project|here]]</u>.
+
             | 2017 =              <noinclude>==The OWASP Top 10-2017 have been released. This wiki page will be updated, soon.==<br/><br/>==Please use the <u>[[Media:OWASP_Top_10-2017_(en).pdf.pdf| PDF version of the OWASP Top 10 - 2017]]</u> for now.==<br/><br/>More information available <u>[[:Category:OWASP_Top_Ten_Project|here]]</u>.</noinclude>
             | 2013 =              <noinclude>==The Top 10-2013 Wiki is under Construction. The Content is Not Finished yet==</noinclude>
+
             | 2013                 <noinclude>= ==The Top 10-2013 Wiki is under Construction. The Content is Not Finished yet==</noinclude>
 +
            | #default =          NOTE: THIS IS NOT THE LATEST VERSION. Please visit the <u>[[:Category:OWASP_Top_Ten_Project|OWASP Top 10 project page]]</u> to find the latest edition.
 
           }}
 
           }}
 
         | top10TmpMessageDeveloperEdition =  ==The Top 10-2013 Developer Edition Wiki is under Connstruction. The Content is Not Finished yet==
 
         | top10TmpMessageDeveloperEdition =  ==The Top 10-2013 Developer Edition Wiki is under Connstruction. The Content is Not Finished yet==
Line 192: Line 193:
 
         | centerLink2 =
 
         | centerLink2 =
 
           {{#switch: {{{year}}}
 
           {{#switch: {{{year}}}
             | 2017    = [[Top 10-{{{year}}} Top 10|{{{year}}} Top 10 List]]
+
             | 2017    = [[Media:OWASP_Top_10-2017_(en).pdf.pdf| PDF version]] <noinclude>
 +
      <!--- | 2017    = [[Top 10-{{{year}}} Top 10|{{{year}}} Top 10 List]] ----></noinclude>
 
             | #default = [[Top_10_{{{year}}}-Top 10|{{{year}}} Top 10 List]]
 
             | #default = [[Top_10_{{{year}}}-Top 10|{{{year}}} Top 10 List]]
 
           }}
 
           }}
Line 267: Line 269:
 
         | csrfShort =                    CSRF
 
         | csrfShort =                    CSRF
 
         | usingVulnerableComponents =    Using Components with Known Vulnerabilities
 
         | usingVulnerableComponents =    Using Components with Known Vulnerabilities
         | vulnComponents =                vuln. Components
+
         | vulnComponents =                Vulnerable Components
 
         | unvalidatedRedirectsForwards =  Unvalidated Redirects and Forwards
 
         | unvalidatedRedirectsForwards =  Unvalidated Redirects and Forwards
 
         | unvalRedirects =                unval. Redirects
 
         | unvalRedirects =                unval. Redirects

Latest revision as of 06:46, 4 February 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}}}')