Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Translation
Translation
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 28
    • Issues 28
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • TranslationTranslation
  • Issues
  • #36

Closed
Open
Opened Feb 19, 2020 by bgm@bgmOwner

Select_string only accepts integers: 1

I noticed this bug on 5.23 beta1 and dmaster, and somehow I don't think it's specific to 5.23, but I'm not seeing it elsewhere:

  • Change the CiviCRM language to another language (ex: en_UK) link
  • Use the default phpgettext, not native gettext
  • Go to Find Contacts, then click Find. (i.e. search all, doesn't matter)

Resulting fatal: Select_string only accepts integers: 1

Relevant backtrace bit:

      array(6) {
        ["file"]=>
        string(79) "/var/aegir/platforms/civicrm-d7/web/sites/all/modules/civicrm/CRM/Core/I18n.php"
        ["line"]=>
        int(451)
        ["function"]=>
        string(8) "ngettext"
        ["class"]=>
        string(14) "gettext_reader"
        ["type"]=>
        string(2) "->"
        ["args"]=>
        array(3) {
          [0]=>
          string(14) "%count Contact"
          [1]=>
          string(15) "%count Contacts"
          [2]=>
          string(3) "241"
        }
      }

This is from a ts call in ResultTasks.tpl. Oddly, that file has not changed in many years.

Enabling Native gettext (which I recommend) mitigates this problem, but obviously not a good core fix.

Can someome confirm if it is a regression?

Peek_19-02-2020_17-21

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
5.23.0
Milestone
5.23.0
Assign milestone
Time tracking
None
Due date
None
Reference: dev/translation#36