Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
85c0b42e
Commit
85c0b42e
authored
Sep 19, 2004
by
Steven Wittens
Browse files
#10859
: Locale string duplication bug.
parent
ec287382
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/locale.inc
View file @
85c0b42e
...
...
@@ -204,7 +204,7 @@ function _locale_import_po($file, $lang, $mode) {
db_query
(
"INSERT INTO
{
locales_source
}
(location, source) VALUES ('%s', '%s')"
,
$comments
,
$english
);
$loc
=
db_fetch_object
(
db_query
(
"SELECT lid FROM
{
locales_source
}
WHERE source = '%s'"
,
$english
));
$lid
=
$loc
->
lid
;
db_query
(
"INSERT INTO
{
locales_target
}
(lid, locale, translation, plid, plural) VALUES (%d, '%s', '%s')"
,
$lid
,
$lang
,
$trans
,
$plid
,
$key
);
db_query
(
"INSERT INTO
{
locales_target
}
(lid, locale, translation, plid, plural) VALUES (%d, '%s', '%s'
, %d, %d
)"
,
$lid
,
$lang
,
$trans
,
$plid
,
$key
);
if
(
$trans
!=
''
)
{
$additions
++
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment