Module NumberWords: Difference between revisions

m
no edit summary
mNo edit summary
Tag: 2017 source edit
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- BEGIN origin interlang links -->
<!-- You can edit this section but do NOT remove these comments
    Links below will be automatically replicated on translated pages by PolyglotBot -->
[[fr:Module_NumberWords_FR]]
[[es:Módulo_NumberWords]]
<!-- END interlang links -->
[[Category:Complementary modules]]
[[Category:Complementary modules]]
[[Category:NumberWords]]
[[Category:NumberWords]]
[[Category:DoliCloud]]
{{TemplateDocDevEn}}
{{TemplateDocDevEn}}
{{TemplateDocUser}}
{{TemplateDocUser}}
Line 6: Line 14:
{{TemplateModuleInfo
{{TemplateModuleInfo
|modulename=Number to Words
|modulename=Number to Words
|editor=NLTechno
|editor=DoliCloud
|web=[http://www.nltechno.com www.nltechno.com]
|web={{URLNLTechno}}
|webbuy={{LinkToPluginDownloadDoliStore|keyword=}}
|webbuy={{LinkToPluginDownloadDoliStore|keyword=numberword}}
|status=stable
|status=stable
|minversion=3.2.0
|minversion=5.0
|note=
|note=
}}
}}
Line 36: Line 44:
==If you are a developer==
==If you are a developer==
You can also use, anywhere in the code, the method  
You can also use, anywhere in the code, the method  
<source lang="php">
<syntaxhighlight lang="PHP">
$langs->getLabelFromNumber($mynumber,0|1)
$langs->getLabelFromNumber($mynumber,0|1)
</source>
</syntaxhighlight>
to get full text string of a number (if second parameter is 0) or an amount (if second parameter is 1).
to get full text string of a number (if second parameter is 0) or an amount (if second parameter is 1).


= Development =
= Development =
{{TemplateModNLTechnoEn}}
{{TemplateModNLTechnoEn}}