Closed (fixed)
Project:
Drupal core
Version:
5.x-dev
Component:
locale.module
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
7 Jul 2006 at 07:05 UTC
Updated:
22 Apr 2007 at 01:16 UTC
Jump to comment: Most recent file
File: locale.inc
Function: _locale_import_one_string($value, $mode, $lang = NULL)
if ($hdr["Plural-Forms"] && $p = _locale_import_parse_plural_forms($hdr["Plural-Forms"], $file->filename)) {
$file->filename is not defined and cannot be replaced by something else because filename information is not passed to _locale_import_one_string.
Nothing important.
If there is an error in the plural formula then the error message will not contain file name.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | localefilefix.patch | 2.2 KB | gábor hojtsy |
| #3 | missing-file-object.patch | 2.19 KB | gábor hojtsy |
| #1 | locale.inc_7.patch | 2.06 KB | fgm |
Comments
Comment #1
fgmProblem still exists in locale.inc 1.93, so I added the
$fileparameter needed by the function and fixed all calls needing it.Some calls, both in locale.inc and install.inc do not need this parameter, because it only applies when
$op == 'db-store'.Comment #2
drummpatching file includes/locale.inc
Hunk #1 succeeded at 535 (offset -1 lines).
Hunk #2 succeeded at 561 (offset -1 lines).
Hunk #3 succeeded at 635 (offset -1 lines).
Hunk #4 FAILED at 674.
1 out of 4 hunks FAILED -- saving rejects to file includes/locale.inc.rej
Comment #3
gábor hojtsyIndeed, this is still a bug in current Drupal 6.x-dev as of today, so a fix should be in order for both Drupal 5.x and 6.x. Patch for Drupal 5.x-dev attached, please re-version for Drupal 6.x, once comitted.
Comment #4
meba commented+1 for 6.x-dev. It's a blocker for me when developing autolocale.
Comment #5
gábor hojtsyOK, so since this did not get attention on Drupal 5.x, try to start this with Drupal 6.x-dev, after maybe we can get the fix accepted into Drupal 5.x. Patch against Drupal 6.x attached.
Comment #6
dries commentedCommitted to CVS HEAD. Needs to be committed to Drupal 5.
Comment #7
drummCommitted to 5.
Comment #8
(not verified) commented