summaryrefslogtreecommitdiffstats
path: root/lib/class/radio.class.php
diff options
context:
space:
mode:
authorPaul Arthur <flowerysong00@yahoo.com>2012-03-31 17:01:04 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2012-04-12 21:13:29 -0400
commitf65076b93d91fe9718cf9bef37638d64290b9f28 (patch)
tree40fbc65baffab34971d8c7b685ef9c99e0f4014f /lib/class/radio.class.php
parent15457b16f17a141fa76a3b9882892362b601787c (diff)
downloadampache-f65076b93d91fe9718cf9bef37638d64290b9f28.tar.gz
ampache-f65076b93d91fe9718cf9bef37638d64290b9f28.tar.bz2
ampache-f65076b93d91fe9718cf9bef37638d64290b9f28.zip
Switch from _() to T_()
Even if we move away from php-gettext in the future, it's easy to write a quick T_() as a simple wrapper; it's not so easy to rewrite PHP to allow redeclaration of a function.
Diffstat (limited to 'lib/class/radio.class.php')
-rw-r--r--lib/class/radio.class.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/class/radio.class.php b/lib/class/radio.class.php
index 46743614..d4be4f76 100644
--- a/lib/class/radio.class.php
+++ b/lib/class/radio.class.php
@@ -92,11 +92,11 @@ class Radio extends database_object implements media {
// Verify the incoming data
if (!$data['id']) {
- Error::add('general', _('Missing ID'));
+ Error::add('general', T_('Missing ID'));
}
if (!$data['name']) {
- Error::add('general', _('Name Required'));
+ Error::add('general', T_('Name Required'));
}
$allowed_array = array('https','http','mms','mmsh','mmsu','mmst','rtsp');
@@ -104,7 +104,7 @@ class Radio extends database_object implements media {
$elements = explode(":",$data['url']);
if (!in_array($elements['0'],$allowed_array)) {
- Error::add('general', _('Invalid URL must be mms:// , https:// or http://'));
+ Error::add('general', T_('Invalid URL must be mms:// , https:// or http://'));
}
if (Error::occurred()) {
@@ -136,7 +136,7 @@ class Radio extends database_object implements media {
// Make sure we've got a name
if (!strlen($data['name'])) {
- Error::add('name', _('Name Required'));
+ Error::add('name', T_('Name Required'));
}
$allowed_array = array('https','http','mms','mmsh','mmsu','mmst','rtsp');
@@ -144,13 +144,13 @@ class Radio extends database_object implements media {
$elements = explode(":",$data['url']);
if (!in_array($elements['0'],$allowed_array)) {
- Error::add('url', _('Invalid URL must be http:// or https://'));
+ Error::add('url', T_('Invalid URL must be http:// or https://'));
}
// Make sure it's a real catalog
$catalog = new Catalog($data['catalog']);
if (!$catalog->name) {
- Error::add('catalog', _('Invalid Catalog'));
+ Error::add('catalog', T_('Invalid Catalog'));
}
if (Error::occurred()) { return false; }