summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordragonwize2009-03-17 08:17:38 (GMT)
committer dragonwize2009-03-17 08:17:38 (GMT)
commitcd7709082e452327412a58a8009924a8d2f2f5e7 (patch)
treeb2f94a708404f19e5841c475fdb982b9dfbec48a
parent1301a99eff72e540cd595422341bdbf0b9567fd9 (diff)
Fixed #404484: Missing t()'s
-rw-r--r--better-formats-defaults-admin-form.tpl.php4
-rw-r--r--better_formats_defaults.admin.inc6
2 files changed, 4 insertions, 6 deletions
diff --git a/better-formats-defaults-admin-form.tpl.php b/better-formats-defaults-admin-form.tpl.php
index e41063d..82e5280 100644
--- a/better-formats-defaults-admin-form.tpl.php
+++ b/better-formats-defaults-admin-form.tpl.php
@@ -23,7 +23,7 @@
?>
<div class="description"><?php print t('Only formats that a role has permission to use are shown.'); ?></div>
<fieldset>
- <legend><strong>Node Defaults</strong></legend>
+ <legend><strong><?php print t('Node Defaults'); ?></strong></legend>
<table id="node-format-defaults">
<thead>
<tr>
@@ -47,7 +47,7 @@
</fieldset>
<fieldset>
- <legend><strong>Comment Defaults</strong></legend>
+ <legend><strong><?php print t('Comment Defaults'); ?></strong></legend>
<table id="comment-format-defaults">
<thead>
<tr>
diff --git a/better_formats_defaults.admin.inc b/better_formats_defaults.admin.inc
index 121d13e..82ea089 100644
--- a/better_formats_defaults.admin.inc
+++ b/better_formats_defaults.admin.inc
@@ -151,14 +151,12 @@ function better_formats_get_role_default_fields($mode, $node_type = '') {
* by Drupal core's format permissions set at
* admin/settings/filters/[filter_id].
*
- * @param $default_title
- * Allows configuration of the label of the default seletion.
* @return
* Multi-dim array with role IDs for keys and list of allowed formats.
*
* @see better_formats_get_role_default_fields()
*/
-function better_formats_get_formats_per_role($default_title = 'Site') {
+function better_formats_get_formats_per_role() {
$formats = filter_formats();
$roles = user_roles();
@@ -170,7 +168,7 @@ function better_formats_get_formats_per_role($default_title = 'Site') {
foreach ($formats as $format) {
$roles_allowed = $format->roles ? explode(',', trim($format->roles, ',')) : array();
foreach ($roles as $rid => $role) {
- $format_options[$rid][0] = $default_title . ' default';
+ $format_options[$rid][0] = t('Site default');
if ($format->format == $site_default_format || in_array($rid, $admin_roles) || in_array($rid, $roles_allowed)) {
$format_options[$rid][$format->format] = $format->name;
}