From 83a739bd898094af5837d2b29863d8e988929e1b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 18 Aug 2004 19:57:27 +0000 Subject: - Code improvements by Stefan: made all status messages consistent (and easier to translate). --- modules/path.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/path.module') diff --git a/modules/path.module b/modules/path.module index b5699f21f..cee8385fb 100644 --- a/modules/path.module +++ b/modules/path.module @@ -290,15 +290,15 @@ function path_save($edit) { $pid = $edit['pid']; if (!valid_url($src)) { - form_set_error('src', t('The system path "%src" is invalid.', array('%src' => $src))); + form_set_error('src', t('The system path %path is invalid.', array('%path' => "$src"))); } if (!valid_url($dst)) { - form_set_error('dst', t('The alias "%dst" is invalid.', array('%dst' => $dst))); + form_set_error('dst', t('The alias %alias is invalid.', array('%alias' => "$dst"))); } if (db_result(db_query("SELECT COUNT(dst) FROM {url_alias} WHERE pid != %d AND dst = '%s'", $pid, $dst))) { - form_set_error('dst', t('The alias "%dst" is already in use.', array('%dst' => $dst))); + form_set_error('dst', t('The alias %alias is already in use.', array('%alias' => "$dst"))); } if (form_get_errors()) { -- cgit v1.2.3