Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • mahara mahara
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • maharamahara
  • maharamahara
  • Repository
Switch branch/tag
  • mahara
  • htdocs
  • lib
  • mahara.php
Find file BlameHistoryPermalink
  • Richard Mansfield's avatar
    Modify get_string to take plural forms (bug #901051) · 52a6e7e1
    Richard Mansfield authored Sep 13, 2011
    Allows language packs to specify an array of strings (one for each
    plural form in the language) instead of a single string.
    
    The first of the variable (sprintf) arguments is assumed to be the
    number we need to check to choose a plural form.  This argument is
    passed into a language-specific function defined in langconfig.php,
    which returns the appropriate plural form based on a formula.
    
    A similar scheme is used for strings formatted by the javascript
    get_string function in mahara.js.
    
    See http://www.gnu.org/s/hello/manual/gettext/Plural-forms.html
    
    
    
    Change-Id: Ifb58ac4f1e13a54edbc57e5c0a9faaf8454e53a4
    Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
    52a6e7e1