diff options
author | Greg Froese <greg.froese@gmail.com> | 2009-10-19 05:34:47 +0000 |
---|---|---|
committer | Greg Froese <greg.froese@gmail.com> | 2009-10-19 05:34:47 +0000 |
commit | 81b8ba32beb3151025d3b390c0621e074bceae36 (patch) | |
tree | 716dc1767fefdd42f1a295f3b01d7d78855684d1 /views/default | |
parent | aef5c5a559959b3ffc1c1100752ba4a961ac432c (diff) | |
download | elgg-81b8ba32beb3151025d3b390c0621e074bceae36.tar.gz elgg-81b8ba32beb3151025d3b390c0621e074bceae36.tar.bz2 |
flickr integration changes
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/tidypics/forms/setupFlickr.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/views/default/tidypics/forms/setupFlickr.php b/views/default/tidypics/forms/setupFlickr.php index 8ae7c27bb..8c31d0883 100644 --- a/views/default/tidypics/forms/setupFlickr.php +++ b/views/default/tidypics/forms/setupFlickr.php @@ -7,29 +7,29 @@ $flickr_album_id = get_metadata_byname( $user->guid, "flickr_album_id" ); $action = $vars['url'] . 'action/tidypics/flickrSetup'; -$form_body = "<p>"; -$form_body .= "Please enter your Flickr username here: <input style='width: 20%;' type='text' name='flickr_username' value='$flickr_username->value' ' class='input-text' /> <br />"; +$form_body = "<p>". elgg_echo( 'flickr:intro' ) . "</p><p>"; +$form_body .= elgg_echo( 'flickr:usernamesetup') . " <input style='width: 20%;' type='text' name='flickr_username' value='$flickr_username->value' ' class='input-text' /> <br />"; $form_body .= "<input type='hidden' name='return_url' value='$_SERVER[REQUEST_URI]' />"; $albums = get_entities( "object", "album", $user->guid ); -$options = array( 0 => "Select album" ); +$options = array( 0 => elgg_echo( 'flickr:selectalbum' )); foreach( $albums as $album ) { $title = $album->title; switch( $album->access_id ) { case ACCESS_PRIVATE: - $title .= " (private)"; + $title .= " (" . elgg_echo( 'private' ) . ")"; break; case ACCESS_PUBLIC: - $title .= " (public)"; + $title .= " (" . elgg_echo( 'public' ) . ")"; break; default: - $title .= " (not sure)"; + $title .= " (no known permission set)"; break; } $options[$album->guid] = $title; } -$form_body .= "<br />Album to import photos to: "; +$form_body .= "<br />" . elgg_echo( 'flickr:albumdesc' ); $form_body .= elgg_view('input/pulldown', array('internalname' => 'album_id', 'options_values' => $options, 'value' => $flickr_album_id->value )); |