Get started with PHP-Fusion

  1. PHP-Fusion Support Forums
  2. PHP-Fusion 9 Support
  3. Locales Forum

I need a little help here ...

Anything related to 9´s locales, including error reports, requests and submission of new locale packs

0 Reply 190 Views Last Updated on 3 months ago

janmol


Veteran Member

#1

Posted 3 months ago

On my testsite I get errors like this all the time:

Code Gist: Download source  

Kildekode (Linje: 88 - 108)
88            // Format the result
89            switch ($options['language']) {
90                case 'English':
91                    $form = $count == 1 ? 0 : 1;
92                    $words_array = explode("|", $words);
93                    $result = $words_array[$form];
94                    break;
95                case 'Danish':
96                    $form = $count == 1 ? 0 : 1;
97                    $words_array = explode("|", $words);
98                    $result = $words_array[$form];
Line 98 -- 28 minutter siden
Undefined offset: 1


I understand, that the error comes when the "language selector" can't find an expression like this:
Code Gist: Download source  

$locale['fmt_comment'] = "comment|comments";

- and this locale is either missing or wrongly translated.

BUT: It's impossible to see exactly what expression is missing ... I need Fusion to tell me, which locale-value give the error, so that I can correct it, Is there any way ... any at all ... that could make that possible??
Edited by janmol on 17-03-2017 12:51
...........................
Jan Mølgård
PHP-Fusion, Denmark
Phone: 004528966794
Mail:
Mail:

Testsite version 9: http://php-fusion...on_9_test/

Posts: 752

Joined: 03/03/2004

Jump to Forum:
17 users are online
0 member and 17 guests