summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authormomo-i <momo-i@ampache>2008-08-26 22:08:13 +0000
committermomo-i <momo-i@ampache>2008-08-26 22:08:13 +0000
commitc3a0f470271cae98883d137c8d1ed10a9ed9d7f6 (patch)
tree96fbc29e03c25e49836824684f80942dfa7fc0a9 /templates
parentf54f17453d160932781295632587ef7490136e77 (diff)
downloadampache-c3a0f470271cae98883d137c8d1ed10a9ed9d7f6.tar.gz
ampache-c3a0f470271cae98883d137c8d1ed10a9ed9d7f6.tar.bz2
ampache-c3a0f470271cae98883d137c8d1ed10a9ed9d7f6.zip
if can't use gettext, emulate gettext(). update some templates.
Diffstat (limited to 'templates')
-rw-r--r--templates/show_artist.inc.php2
-rw-r--r--templates/show_democratic.inc.php2
-rw-r--r--templates/show_random.inc.php14
3 files changed, 9 insertions, 9 deletions
diff --git a/templates/show_artist.inc.php b/templates/show_artist.inc.php
index 84e200a0..62a54076 100644
--- a/templates/show_artist.inc.php
+++ b/templates/show_artist.inc.php
@@ -22,7 +22,7 @@ $web_path = Config::get('web_path');
$title = sprintf(_('Albums by %s'), $artist->full_name);
?>
<?php
-show_box_top(sprintf(ngettext('%s by %s', '%ss by %s', count(ucfirst($object_type))) , ucfirst($object_type) ,$artist->f_name),'info-box');
+show_box_top(sprintf(gettext('%s by %s'), ucfirst($object_type) ,$artist->f_name),'info-box');
if (Config::get('ratings')) {
?>
<div id="rating_"<?php echo intval($artist->id); ?>"_artist" style="display:inline;">
diff --git a/templates/show_democratic.inc.php b/templates/show_democratic.inc.php
index fa746385..85d5cecb 100644
--- a/templates/show_democratic.inc.php
+++ b/templates/show_democratic.inc.php
@@ -19,7 +19,7 @@
*/
-show_box_top(sprintf(_('Playlist %s') ,$democratic->name));
+show_box_top(sprintf(_('%s Playlist') ,$democratic->name));
?>
<div id="democratic_playlist">
<?php require_once Config::get('prefix') . '/templates/show_democratic_playlist.inc.php'; ?>
diff --git a/templates/show_random.inc.php b/templates/show_random.inc.php
index 3169717d..57f92ed4 100644
--- a/templates/show_random.inc.php
+++ b/templates/show_random.inc.php
@@ -48,13 +48,13 @@
<td>
<select name="length">
<option value="0"><?php echo _('Unlimited'); ?></option>
- <option value="15"><?php printf(ngettext('%s minute','%s minutes',15), "15"); ?></option>
- <option value="30"><?php printf(ngettext('%s minute','%s minutes',30), "30"); ?></option>
- <option value="60"><?php printf(ngettext('%s hour','%s hours',1), "1"); ?></option>
- <option value="120"><?php printf(ngettext('%s hour','%s hours',2), "2"); ?></option>
- <option value="240"><?php printf(ngettext('%s hour','%s hours',4), "4"); ?></option>
- <option value="480"><?php printf(ngettext('%s hour','%s hours',8), "8"); ?></option>
- <option value="960"><?php printf(ngettext('%s hour','%s hours',16), "16"); ?></option>
+ <option value="15"><?php printf(ngettext('%d minute','%d minutes',15), "15"); ?></option>
+ <option value="30"><?php printf(ngettext('%d minute','%d minutes',30), "30"); ?></option>
+ <option value="60"><?php printf(ngettext('%d hour','%d hours',1), "1"); ?></option>
+ <option value="120"><?php printf(ngettext('%d hour','%d hours',2), "2"); ?></option>
+ <option value="240"><?php printf(ngettext('%d hour','%d hours',4), "4"); ?></option>
+ <option value="480"><?php printf(ngettext('%d hour','%d hours',8), "8"); ?></option>
+ <option value="960"><?php printf(ngettext('%d hour','%d hours',16), "16"); ?></option>
</select>
</td>
</tr>