summaryrefslogtreecommitdiff
path: root/modules/translation
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-01-30 07:59:26 +0000
committerDries Buytaert <dries@buytaert.net>2010-01-30 07:59:26 +0000
commitea51c3215bc3defc45e87619f7b2232f85895fef (patch)
treedcef9202a1fec6385914c4ee48b13e80c25f3ce2 /modules/translation
parent1e8da1f9ae32ccd1c6d19e24215e1cb293e97bbf (diff)
downloadbrdo-ea51c3215bc3defc45e87619f7b2232f85895fef.tar.gz
brdo-ea51c3215bc3defc45e87619f7b2232f85895fef.tar.bz2
- Patch #606526 by axyjo, scor: remove trailing whitespaces and add newlines at end of files.
Diffstat (limited to 'modules/translation')
-rw-r--r--modules/translation/translation.module8
-rw-r--r--modules/translation/translation.pages.inc8
2 files changed, 8 insertions, 8 deletions
diff --git a/modules/translation/translation.module b/modules/translation/translation.module
index 2074bb63a..b1348c948 100644
--- a/modules/translation/translation.module
+++ b/modules/translation/translation.module
@@ -210,7 +210,7 @@ function translation_node_prepare($node) {
isset($_GET['translation']) &&
isset($_GET['language']) &&
is_numeric($_GET['translation'])) {
-
+
$source_node = node_load($_GET['translation']);
if (empty($source_node) || !node_access('view', $source_node)) {
// Source node not found or no access to view. We should not check
@@ -218,13 +218,13 @@ function translation_node_prepare($node) {
// to edit the source node but should still be able to translate.
return;
}
-
+
$language_list = language_list();
if (!isset($language_list[$_GET['language']]) || ($source_node->language == $_GET['language'])) {
// If not supported language, or same language as source node, break.
return;
}
-
+
// Ensure we don't have an existing translation in this language.
if (!empty($source_node->tnid)) {
$translations = translation_node_get_translations($source_node->tnid);
@@ -233,7 +233,7 @@ function translation_node_prepare($node) {
return;
}
}
-
+
// Populate fields based on source node.
$node->language = $_GET['language'];
$node->translation_source = $source_node;
diff --git a/modules/translation/translation.pages.inc b/modules/translation/translation.pages.inc
index 50d8849ee..70fa7fd10 100644
--- a/modules/translation/translation.pages.inc
+++ b/modules/translation/translation.pages.inc
@@ -55,12 +55,12 @@ function translation_node_overview($node) {
}
drupal_set_title(t('Translations of %title', array('%title' => $node->title)), PASS_THROUGH);
-
+
$build['translation_node_overview'] = array(
- '#theme' => 'table',
- '#header' => $header,
+ '#theme' => 'table',
+ '#header' => $header,
'#rows' => $rows,
);
-
+
return $build;
}