diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-10-15 05:10:35 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-10-15 05:10:35 +0000 |
commit | dfb3c3aec4f6171b814a4055635937e9d7109ab3 (patch) | |
tree | ce5290a83edccf56eb93a61cf5968777ee078e53 /modules/taxonomy | |
parent | 6a8e394301c557188e8cd1643b4556eb80dca7b9 (diff) | |
download | brdo-dfb3c3aec4f6171b814a4055635937e9d7109ab3.tar.gz brdo-dfb3c3aec4f6171b814a4055635937e9d7109ab3.tar.bz2 |
- Patch #11577 by drumm: changed t('ago') -> t('%time ago', ...) to make it
translatable in languages such as Spanish.
Diffstat (limited to 'modules/taxonomy')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index f802df531..91d33f980 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -106,7 +106,7 @@ function taxonomy_block($op = 'list', $delta = 0) { $result = db_query("SELECT d.tid, d.name, MAX(n.created) AS updated, COUNT(*) AS count FROM {term_data} d INNER JOIN {term_node} USING (tid) INNER JOIN {node} n USING (nid) WHERE n.status = 1 GROUP BY d.tid, d.name ORDER BY updated DESC, d.name"); $items = array(); while ($category = db_fetch_object($result)) { - $items[] = l("$category->name ($category->count)", 'taxonomy/term/'. $category->tid) .'<br />'. format_interval(time() - $category->updated) .' '. t('ago'); + $items[] = l($category->name .' ('. $category->count .')', 'taxonomy/term/'. $category->tid) .'<br />'. t('%time ago', array('%time' => format_interval(time() - $category->updated))); } $block['subject'] = t('Categories'); @@ -309,17 +309,17 @@ function taxonomy_del_term($tid) { } $term = taxonomy_get_term($tid); - + db_query('DELETE FROM {term_data} WHERE tid = %d', $tid); db_query('DELETE FROM {term_hierarchy} WHERE tid = %d', $tid); db_query('DELETE FROM {term_relation} WHERE tid1 = %d OR tid2 = %d', $tid, $tid); db_query('DELETE FROM {term_synonym} WHERE tid = %d', $tid); db_query('DELETE FROM {term_node} WHERE tid = %d', $tid); - + module_invoke_all('taxonomy', 'delete', 'term', $term); drupal_set_message(t('deleted term "%name".', array('%name' => $term->name))); } - + $tids = $orphans; } |