diff --git a/ChangeLog b/ChangeLog
index 12ee40d1ef..4e2fb84740 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -42,6 +42,7 @@ phpMyAdmin - ChangeLog
- issue #12854 Drop database is broken
- issue #12863 Can't toggle Event Scheduler on
- issue #12742 Finish removing dead code references to xls/xlsx import and export, which was removed some time ago.
+- issue #12536 Rename "Relations" to "Relationships" in many places as it's the more proper term
4.6.6 (not yet released)
- issue #12759 Fix Notice regarding 'Undefined index: old_usergroup'
diff --git a/libraries/DisplayResults.php b/libraries/DisplayResults.php
index ec324e9c89..5226410d46 100644
--- a/libraries/DisplayResults.php
+++ b/libraries/DisplayResults.php
@@ -1742,7 +1742,7 @@ class DisplayResults
$options_html .= '
';
$choices = array(
'K' => __('Relational key'),
- 'D' => __('Display column for relations')
+ 'D' => __('Display column for relationships')
);
$options_html .= Util::getRadioFields(
diff --git a/libraries/config/messages.inc.php b/libraries/config/messages.inc.php
index 3dc80dda96..bb459e03c1 100644
--- a/libraries/config/messages.inc.php
+++ b/libraries/config/messages.inc.php
@@ -164,7 +164,7 @@ $strConfigExport_latex_data_continued_caption_name = __('Continued table caption
$strConfigExport_latex_data_label_name = __('Label key');
$strConfigExport_latex_mime_name = __('MIME type');
$strConfigExport_latex_null_name = __('Replace NULL with');
-$strConfigExport_latex_relation_name = __('Relations');
+$strConfigExport_latex_relation_name = __('Relationships');
$strConfigExport_latex_structure_caption_name = __('Table caption');
$strConfigExport_latex_structure_continued_caption_name
= __('Continued table caption');
@@ -177,7 +177,7 @@ $strConfigExport_odt_columns_name = __('Put columns names in the first row');
$strConfigExport_odt_comments_name = __('Comments');
$strConfigExport_odt_mime_name = __('MIME type');
$strConfigExport_odt_null_name = __('Replace NULL with');
-$strConfigExport_odt_relation_name = __('Relations');
+$strConfigExport_odt_relation_name = __('Relationships');
$strConfigExport_odt_structure_or_data_name = __('Dump table');
$strConfigExport_onserver_name = __('Save on server');
$strConfigExport_onserver_overwrite_name = __('Overwrite existing file(s)');
@@ -218,7 +218,7 @@ $strConfigExport_sql_max_query_size_name = __('Maximal length of created query')
$strConfigExport_sql_mime_name = __('MIME type');
$strConfigExport_sql_procedure_function_name
= sprintf(__('Add %s'), 'CREATE PROCEDURE / FUNCTION / EVENT');
-$strConfigExport_sql_relation_name = __('Relations');
+$strConfigExport_sql_relation_name = __('Relationships');
$strConfigExport_sql_structure_or_data_name = __('Dump table');
$strConfigExport_sql_type_name = __('Export type');
$strConfigExport_sql_use_transaction_name = __('Enclose export in a transaction');
diff --git a/libraries/controllers/table/TableRelationController.php b/libraries/controllers/table/TableRelationController.php
index bf561a8fb5..8685ffb4fe 100644
--- a/libraries/controllers/table/TableRelationController.php
+++ b/libraries/controllers/table/TableRelationController.php
@@ -279,7 +279,7 @@ class TableRelationController extends TableController
) {
$this->response->addHTML(
Util::getMessage(
- __('Internal relations were successfully updated.'),
+ __('Internal relationships were successfully updated.'),
'', 'success'
)
);
diff --git a/libraries/plugins/export/ExportSql.php b/libraries/plugins/export/ExportSql.php
index 5b51c37b83..dd7c08d4b5 100644
--- a/libraries/plugins/export/ExportSql.php
+++ b/libraries/plugins/export/ExportSql.php
@@ -1875,7 +1875,7 @@ class ExportSql extends ExportPlugin
$schema_create .= $this->_possibleCRLF()
. $this->_exportComment()
. $this->_exportComment(
- __('RELATIONS FOR TABLE') . ' '
+ __('RELATIONSHIPS FOR TABLE') . ' '
. Util::backquote($table_alias, $sql_backquotes)
. ':'
);
diff --git a/libraries/pmd_common.php b/libraries/pmd_common.php
index 1f8c976e6e..73b77dd7a6 100644
--- a/libraries/pmd_common.php
+++ b/libraries/pmd_common.php
@@ -548,7 +548,7 @@ function PMA_addNewRelation($db, $T1, $F1, $T2, $F2, $on_delete, $on_update)
if ($foreigner
&& isset($foreigner['constraint'])
) {
- return array(false, __('Error: relation already exists.'));
+ return array(false, __('Error: relationship already exists.'));
}
// note: in InnoDB, the index does not requires to be on a PRIMARY
// or UNIQUE key
@@ -594,13 +594,13 @@ function PMA_addNewRelation($db, $T1, $F1, $T2, $F2, $on_delete, $on_update)
}
$upd_query .= ';';
if ($GLOBALS['dbi']->tryQuery($upd_query)) {
- return array(true, __('FOREIGN KEY relation has been added.'));
+ return array(true, __('FOREIGN KEY relationship has been added.'));
}
$error = $GLOBALS['dbi']->getError();
return array(
false,
- __('Error: FOREIGN KEY relation could not be added!')
+ __('Error: FOREIGN KEY relationship could not be added!')
. "
" . $error
);
}
@@ -632,13 +632,13 @@ function PMA_addNewRelation($db, $T1, $F1, $T2, $F2, $on_delete, $on_update)
if (PMA_queryAsControlUser($q, false, PMA\libraries\DatabaseInterface::QUERY_STORE)
) {
- return array(true, __('Internal relation has been added.'));
+ return array(true, __('Internal relationship has been added.'));
}
$error = $GLOBALS['dbi']->getError($GLOBALS['controllink']);
return array(
false,
- __('Error: Internal relation could not be added!')
+ __('Error: Internal relationship could not be added!')
. "
" . $error
);
}
@@ -676,13 +676,13 @@ function PMA_removeRelation($T1, $F1, $T2, $F2)
. '.' . PMA\libraries\Util::backquote($T2) . ' DROP FOREIGN KEY '
. PMA\libraries\Util::backquote($foreigner['constraint']) . ';';
if ($GLOBALS['dbi']->query($upd_query)) {
- return array(true, __('FOREIGN KEY relation has been removed.'));
+ return array(true, __('FOREIGN KEY relationship has been removed.'));
}
$error = $GLOBALS['dbi']->getError();
return array(
false,
- __('Error: FOREIGN KEY relation could not be removed!')
+ __('Error: FOREIGN KEY relationship could not be removed!')
. "
" . $error
);
}
@@ -709,11 +709,11 @@ function PMA_removeRelation($T1, $F1, $T2, $F2)
$error = $GLOBALS['dbi']->getError($GLOBALS['controllink']);
return array(
false,
- __('Error: Internal relation could not be removed!') . "
" . $error
+ __('Error: Internal relationship could not be removed!') . "
" . $error
);
}
- return array(true, __('Internal relation has been removed.'));
+ return array(true, __('Internal relationship has been removed.'));
}
/**
diff --git a/templates/database/designer/delete_relation_panel.phtml b/templates/database/designer/delete_relation_panel.phtml
index cc905015e3..970baea359 100644
--- a/templates/database/designer/delete_relation_panel.phtml
+++ b/templates/database/designer/delete_relation_panel.phtml
@@ -18,7 +18,7 @@
|
- = __('Delete relation'); ?>
+ = __('Delete relationship'); ?>
|
diff --git a/templates/database/designer/new_relation_panel.phtml b/templates/database/designer/new_relation_panel.phtml
index bc449a0e53..60df319658 100644
--- a/templates/database/designer/new_relation_panel.phtml
+++ b/templates/database/designer/new_relation_panel.phtml
@@ -19,7 +19,7 @@
|
- = __('Create relation'); ?>
+ = __('Create relationship'); ?>
|
diff --git a/templates/database/designer/options_panel.phtml b/templates/database/designer/options_panel.phtml
index cfe9cbb51d..aa6b8314af 100644
--- a/templates/database/designer/options_panel.phtml
+++ b/templates/database/designer/options_panel.phtml
@@ -31,7 +31,7 @@
|
- = __('Relation operator'); ?>
+ = __('Relationship operator'); ?>
|
|
|
- = __('Relation operator'); ?>
+ = __('Relationship operator'); ?>
|
|