aboutsummaryrefslogtreecommitdiff
path: root/actions/flickrSetup.php
diff options
context:
space:
mode:
authorGreg Froese <greg.froese@gmail.com>2009-10-19 05:34:47 +0000
committerGreg Froese <greg.froese@gmail.com>2009-10-19 05:34:47 +0000
commit81b8ba32beb3151025d3b390c0621e074bceae36 (patch)
tree716dc1767fefdd42f1a295f3b01d7d78855684d1 /actions/flickrSetup.php
parentaef5c5a559959b3ffc1c1100752ba4a961ac432c (diff)
downloadelgg-81b8ba32beb3151025d3b390c0621e074bceae36.tar.gz
elgg-81b8ba32beb3151025d3b390c0621e074bceae36.tar.bz2
flickr integration changes
Diffstat (limited to 'actions/flickrSetup.php')
-rw-r--r--actions/flickrSetup.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/actions/flickrSetup.php b/actions/flickrSetup.php
index 2a1f82315..fbc519b02 100644
--- a/actions/flickrSetup.php
+++ b/actions/flickrSetup.php
@@ -11,7 +11,7 @@ $return_url = get_input( "return_url" );
$user = get_loggedin_user();
if( empty( $flickr_username )) {
- register_error( "You must enter a username" );
+ register_error( elgg_echo( 'flickr:enterusername' ));
forward( $return_url );
die; //just in case
} else {
@@ -24,11 +24,11 @@ if( empty( $flickr_username )) {
$album = get_entity( $album_id );
}
- system_message( "Successfully saved Flickr username of $flickr_username" );
- system_message( "flickr user id: $flickr_user[id]" );
- system_message( "Album saved - $album->title" );
+ system_message( sprintf( elgg_echo( 'flickr:savedusername' ), $flickr_username ));
+ system_message( sprintf( elgg_echo( 'flickr:saveduserid' ), $flickr_user["id"] ));
+ system_message( sprintf( elgg_echo( 'flickr:savedalbum' ), $album->title ));
} else {
- register_error( "Username $flickr_username not found on Flickr" );
+ register_error( sprintf( elgg_echo( 'flickr:errorusername' ), $flickr_username ));
}
}