cannot be LC_ALL

Description

The 3rd argument ($category) of dcgettext() and the 5th argument ($category) of dcngettext() cannot be LC_ALL.

Example

<?php

dcgettext('a', 'item', LC_ALL);
dcngettext('b', 'item', 'item2', 1, LC_ALL);

?>

Solutions

  • Use one of the valid categories: LC_CTYPE, LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES and LC_ALL.

See Also