You are here: start » plugin_tutorial_i18n

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
plugin_tutorial_i18n [2013/04/18 20:38]
Christoph M. Becker added "Number" section
plugin_tutorial_i18n [2018/10/26 15:33] (current)
Line 33: Line 33:
 <​code=php>​str_replace('​{{FILENAME}}',​ $FILENAME, 'The file {{FILENAME}} could not be saved!'​)</​code>​ <​code=php>​str_replace('​{{FILENAME}}',​ $FILENAME, 'The file {{FILENAME}} could not be saved!'​)</​code>​
  
-===== Number ​=====+===== Plural ​=====
  
 Sometimes you need language strings for varying numbers, e.g. "3 files have been uploaded."​ When there was only one file uploaded it should read "1 file has been uploaded."​ You can use a workaround like "​Number of files uploaded: $x" or "$x file(s) has/have been uploaded",​ but both are somewhat clumsy. Sometimes you need language strings for varying numbers, e.g. "3 files have been uploaded."​ When there was only one file uploaded it should read "1 file has been uploaded."​ You can use a workaround like "​Number of files uploaded: $x" or "$x file(s) has/have been uploaded",​ but both are somewhat clumsy.
 
You are here: start » plugin_tutorial_i18n
Except where otherwise noted, content on this wiki is licensed under the following license: GNU Free Documentation License 1.3
Valid XHTML 1.0 Valid CSS Driven by DokuWiki