Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1041

Move "getPluralPhrase" method from "PageHelper" into "kMultiLanguageHelper" class

    XMLWordPrintable

    Details

    • Type: Refactoring
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.0-B3
    • Fix Version/s: 5.2.0-RC1
    • Component/s: Data Management
    • Labels:
      None

      Description

      In In-Portal 5.2.0 we introduced page content revision control (see #001117 task).

      One of a goals in this task was to display number of other users, who are also editing current page alongside with current user.
      Warning message would be different based on user count:

      • 1 user is editing
      • 2 users are editing
      • 5 users are editing

      In English language text (not including number) is the same for 2 and 5 users, but in Russian and most other languages they differ.

      To display correct words near user count we crated PageHelper::getPluralPhrase method.

      I think that this method deserve better visibility for developer and I'm proposing to move it (and related methods) to kMultiLanguageHelper class.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: