Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
300
Merge Requests
300
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
32e8534d
Commit
32e8534d
authored
May 08, 2007
by
Gábor Hojtsy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#142074
by erdemkose: Bug and E_ALL: undefined variable
parent
a6084a5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
includes/locale.inc
includes/locale.inc
+3
-3
No files found.
includes/locale.inc
View file @
32e8534d
...
...
@@ -831,7 +831,7 @@ function locale_translate_delete($lid) {
function
locale_add_language
(
$langcode
,
$name
,
$native
,
$direction
=
LANGUAGE_RTL
,
$domain
=
''
,
$prefix
=
''
,
$verbose
=
TRUE
)
{
// Default prefix on language code.
if
(
empty
(
$prefix
))
{
$prefix
=
$code
;
$prefix
=
$
lang
code
;
}
db_query
(
"INSERT INTO
{
languages
}
(language, name, native, direction, domain, prefix) VALUES ('%s', '%s', '%s', %d, '%s', '%s')"
,
$langcode
,
$name
,
$native
,
$direction
,
$domain
,
$prefix
);
...
...
@@ -839,7 +839,7 @@ function locale_add_language($langcode, $name, $native, $direction = LANGUAGE_RT
// Add empty translations for strings (to optimize locale())
$result
=
db_query
(
"SELECT lid FROM
{
locales_source
}
"
);
while
(
$string
=
db_fetch_object
(
$result
))
{
db_query
(
"INSERT INTO
{
locales_target
}
(lid, language, translation) VALUES (%d,'%s', '')"
,
$string
->
lid
,
$code
);
db_query
(
"INSERT INTO
{
locales_target
}
(lid, language, translation) VALUES (%d,'%s', '')"
,
$string
->
lid
,
$
lang
code
);
}
// Set message depending on the verbosity required.
...
...
@@ -1130,7 +1130,7 @@ function _locale_import_one_string($op, $value = NULL, $mode = NULL, $lang = NUL
// Some real string to import
else
{
$comments
=
_locale_import_shorten_comments
(
$value
[
'#'
]);
$comments
=
_locale_import_shorten_comments
(
empty
(
$value
[
'#'
])
?
array
()
:
$value
[
'#'
]);
// Handle a translation for some plural string
if
(
strpos
(
$value
[
'msgid'
],
"
\0
"
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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