Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you output the rule based number formatters rules <code>$fnf-&gt;getPattern()</code>:</p> <pre><code>%digits-ordinal-masculine: 0: =#,##0==%%dord-mascabbrev=; -x: −&gt;%digits-ordinal-masculine&gt;; %%dord-mascabbrev: 0: :e%digits-ordinal-neutre:0: =%digits-ordinal-feminine=; %digits-ordinal-reale: 0: =%digits-ordinal-feminine=; %digits-ordinal-feminine: 0: =#,##0==%%dord-femabbrev=; -x: −&gt;%digits-ordinal-feminine&gt;; %%dord-femabbrev: 0: :e; 1: :a; 2: :a; 3: :e; 20: &gt;%%dord-femabbrev&gt;; 100: &gt;%%dord-femabbrev&gt;; %digits-ordinal: 0: =%digits-ordinal-masculine=; </code></pre> <p>You can see that the private rule set <code>dord-mascabbrev</code> only has one rule giving that value:</p> <pre><code>:e%digits-ordinal-neutre:0: 1:a </code></pre> <p>Which you will have then output after your 1, like you describe in your question.</p> <p>This is not a bug in PECL INTL, but the underlying rule is malformatted which is part of the ICU Libraries (<a href="http://bugs.icu-project.org/trac/browser/icu/trunk/source/data/rbnf/sv.txt?rev=29637#L19" rel="nofollow">that rule there</a>). About three years ago the sv number formatter rules were fixed for missing semicolons, it looks like that one line slipped through.</p> <p>These rules are taken into ICU from the CLDR (Common Locale Data Repository) at the Unicode Consortium. I opened a <a href="http://unicode.org/cldr/trac/ticket/4268" rel="nofollow">bug report there</a>, because unless this is fixed in CLDR, and then put into ICU, it can't work with the PHP INTL extension.</p> <p>The alternative might be to manually patch the ICU libraries (version 4.8) and then build the PECL package against your patched libraries.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload