Changeset 28863


Ignore:
Timestamp:
06/29/14 23:14:05 (5 years ago)
Author:
mistic100
Message:

update helps

Location:
extensions/oAuth
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/oAuth/admin/template/providers.tpl

    r28826 r28863  
    8484    <div class="help"> 
    8585    {if $provider.new_app_link} 
     86      {assign var=callback_url value=$OAUTH_CALLBACK|cat:$p} 
     87       
    8688      <ol> 
    8789        <li>{'Go to <a href="%s" target="_blank">%s</a> and create a new application'|translate:$provider.new_app_link:$provider.new_app_link}</li> 
     90        <li>{'Fill out any required fields such as the application name and description'|translate}</li> 
    8891         
    89       {if $p=='Google'} 
    90         <li>{'On the <b>APIs & auth -> Credentials</b> tab, <b>Create new client ID</b>'|translate}</li> 
    91       {else} 
    92         <li>{'Fill out any required fields such as the application name and description'|translate}</li> 
    93       {/if} 
     92      {if $p=='Facebook'} 
     93        <li>{'Go to <b>Settings -> Advanced</b> and set <b>Valid OAuth redirect URIs</b> to <em>%s</em>'|translate:$callback_url}</li> 
     94        <li>{'Go to <b>Settings -> Basic</b> and fill the contact email'|translate}</li> 
     95        <li>{'Click on <b>Add Platform</b>, choose <b>Website</b> and set the <b>Site URL</b> to <em>%s</em>'|translate:$WEBSITE}</li> 
     96        <li>{'Go to <b>Status & Review</b> and set the app public by clicking the big button on top-right'|translate}</li> 
    9497         
    95       {if $provider.callback && $p!='Yahoo'} 
    96         <li> 
    97           {'Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'|translate:($OAUTH_CALLBACK|cat:$p)} 
    98         </li> 
    99       {/if} 
     98      {elseif $p=='Google'} 
     99        <li>{'Once the process is finished, click on the newly created project'|translate}</li> 
     100        <li>{'On the <b>APIS & AUTH -> Credentials</b> tab, and click <b>Create new client ID</b>'|translate}</li> 
     101        <li>{'Set <b>%1s</b> to <em>%2s</em>'|translate:'Application Type':'Web Application'}</li> 
     102        <li>{'Put your website domain in the <b>%1s</b> field. It must match with the current hostname: <em>%2s</em>'|translate:'<b>Authorized Javascript origins</b>':$SERVERNAME}</li> 
     103        <li>{'Enter <em>%1s</em> for <b>%2s</b>'|translate:$callback_url:'Authorized redirect URI'}</li> 
    100104       
    101       {if $p=='Live'} 
    102         <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate:'<b>Redirect Domain</b>':$WEBSITE}</li> 
    103       {elseif $p=='Facebook'} 
    104         <li>{'Go to <b>Settings->Advanced</b> and activate <em>Client OAuth Login</em>'|translate}</li> 
    105         <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate:'<b>Valid OAuth redirect URIs</b>':$SERVERNAME}</li> 
     105      {elseif $p=='Instagram'} 
     106        <li>{'Put your website domain in the <b>%1s</b> field. It must match with the current hostname: <em>%2s</em>'|translate:'<b>Website</b>':$WEBSITE}</li> 
     107        <li>{'Enter <em>%1s</em> for <b>%2s</b>'|translate:$callback_url:'OAuth redirect_uri'}</li> 
     108         
    106109      {elseif $p=='LinkedIn'} 
    107         <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate:'<b>Website URL</b>':$WEBSITE}</li> 
    108         <li>{'Set <b>%s</b> to <em>%s</em>'|translate:'Application Type':'Web Application'}</li> 
    109         <li>{'Set <b>%s</b> to <em>%s</em>'|translate:'Default Scope':'r_basicprofile & r_emailaddress'}</li> 
     110        <li>{'Put your website domain in the <b>%1s</b> field. It must match with the current hostname: <em>%2s</em>'|translate:'<b>Website URL</b>':$WEBSITE}</li> 
     111        <li>{'Set <b>%1s</b> to <em>%2s</em>'|translate:'Default Scope':'r_basicprofile & r_emailaddress'}</li> 
     112        <li>{'Enter <em>%1s</em> for <b>%2s</b>'|translate:$callback_url:'OAuth 2.0 Redirect URLs'}</li> 
     113       
     114      {elseif $p=='Tumblr'} 
     115        <li>{'Put your website domain in the <b>%1s</b> field. It must match with the current hostname: <em>%2s</em>'|translate:'<b>Application website</b>':$WEBSITE}</li> 
     116        <li>{'Enter <em>%1s</em> for <b>%2s</b>'|translate:$callback_url:'Default callback URL'}</li> 
     117       
     118      {elseif $p=='Twitter'} 
     119        <li>{'Put your website domain in the <b>%1s</b> field. It must match with the current hostname: <em>%2s</em>'|translate:'<b>Website</b>':$WEBSITE}</li> 
     120        <li>{'Enter <em>%1s</em> for <b>%2s</b>'|translate:$callback_url:'Callback URL'}</li> 
     121       
     122      {elseif $p=='Live'} 
     123        <li>{'Go to <b>API Parameters</b> and set <em>%s</em> for <b>Redirect URL</b>'|translate:$WEBSITE} 
     124       
    110125      {elseif $p=='Yahoo'} 
    111         <li>{'Set <b>%s</b> to <em>%s</em>'|translate:'Kind of Application':'Web-based'}</li> 
    112         <li>{'Set <b>%s</b> to <em>%s</em>'|translate:'Access Scopes':'This app requires access to private user data'}</li> 
    113         <li>{'Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'|translate:($OAUTH_CALLBACK|cat:$p)}</li> 
    114         <li>{'Select these APIs: <b>Contacts</b> as <em>Read</em> and <b>Social Directory</b> <em>Read Public</em>'|translate}</li> 
    115       {elseif $p=='Twitter'} 
    116         <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate:'<b>Website</b>':$WEBSITE}</li> 
    117       {elseif $p=='Tumblr'} 
    118         <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate:'<b>Application Website</b>':$WEBSITE}</li> 
    119       {elseif $p=='Instagram'} 
    120         <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate:'<b>Website</b>':$WEBSITE}</li> 
    121       {elseif $p=='Google'} 
    122         <li>{'Set <b>%s</b> to <em>%s</em>'|translate:'Application Type':'Web Application'}</li> 
    123         <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate:'<b>Authorized Javascript origins </b>':$SERVERNAME}</li> 
     126        <li>{'Set <b>%1s</b> to <em>%2s</em>'|translate:'Kind of Application':'Web-based'}</li> 
     127        <li>{'Put your website domain in the <b>%1s</b> field. It must match with the current hostname: <em>%2s</em>'|translate:'<b>Home Page URL</b>':$WEBSITE}</li> 
     128        <li>{'Set <b>%1s</b> to <em>%2s</em>'|translate:'Access Scopes':'This app requires access to private user data'}</li> 
     129        <li>{'Enter <em>%1s</em> for <b>%2s</b>'|translate:$callback_url:'Callback Domain'}</li> 
     130        <li>{'Select these APIs: <b>Contacts</b> as <em>Read</em> and <b>Social Directory</b> as <em>Read Public</em>'|translate}</li> 
     131       
    124132      {elseif $p=='px500'} 
     133        <li>{'Put your website domain in the <b>%1s</b> field. It must match with the current hostname: <em>%2s</em>'|translate:'<b>Application URL</b>':$WEBSITE}</li> 
     134        <li>{'Enter <em>%1s</em> for <b>%2s</b>'|translate:$callback_url:'Callback URL'}</li> 
    125135        <li>{'Once the application is created, click <b>See application details</b>'|translate}</li> 
     136       
    126137      {/if} 
    127138       
  • extensions/oAuth/language/en_UK/help.lang.php

    r28826 r28863  
    33$lang['Based on OpenID'] = 'Based on OpenID'; 
    44$lang['Go to <a href="%s" target="_blank">%s</a> and create a new application'] = 'Go to <a href="%s" target="_blank">%s</a> and create a new application'; 
    5 $lang['On the <b>APIs & auth -> Credentials</b> tab, <b>Create new client ID</b>'] = 'On the <b>APIs & auth -> Credentials</b> tab, <b>Create new client ID</b>'; 
    65$lang['Fill out any required fields such as the application name and description'] = 'Fill out any required fields such as the application name and description'; 
    7 $lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = 'Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'; 
    8 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = 'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'; 
    9 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Set <b>%s</b> to <em>%s</em>'; 
    106$lang['Once you have registered, copy and past the created application credentials into this setup page'] = 'Once you have registered, copy and past the created application credentials into this setup page'; 
    117$lang['No registration required'] = 'No registration required'; 
    12 $lang['Select these APIs: <b>Contacts</b> as <em>Read</em> and <b>Social Directory</b> <em>Read Public</em>'] = 'Select these APIs: <b>Contacts</b> as <em>Read</em> and <b>Social Directory</b> <em>Read Public</em>'; 
    13 $lang['Go to <b>Settings->Advanced</b> and activate <em>Client OAuth Login</em>'] = 'Go to <b>Settings->Advanced</b> and activate <em>Client OAuth Login</em>'; 
    148$lang['Once the application is created, click <b>See application details</b>'] = 'Once the application is created, click <b>See application details</b>'; 
     9$lang['Click on <b>Add Platform</b>, choose <b>Website</b> and set the <b>Site URL</b> to <em>%s</em>'] = 'Click on <b>Add Platform</b>, choose <b>Website</b> and set the <b>Site URL</b> to <em>%s</em>'; 
     10$lang['Enter <em>%1s</em> for <b>%2s</b>'] = 'Enter <em>%1s</em> for <b>%2s</b>'; 
     11$lang['Go to <b>API Parameters</b> and set <em>%s</em> for <b>Redirect URL</b>'] = 'Go to <b>API Parameters</b> and set <em>%s</em> for <b>Redirect URL</b>'; 
     12$lang['Go to <b>Settings -> Advanced</b> and set <b>Valid OAuth redirect URIs</b> to <em>%s</em>'] = 'Go to <b>Settings -> Advanced</b> and set <b>Valid OAuth redirect URIs</b> to <em>%s</em>'; 
     13$lang['Go to <b>Settings -> Basic</b> and fill the contact email'] = 'Go to <b>Settings -> Basic</b> and fill the contact email'; 
     14$lang['Go to <b>Status & Review</b> and set the app public by clicking the big button on top-right'] = 'Go to <b>Status & Review</b> and set the app public by clicking the big button on top-right'; 
     15$lang['Once the process is finished, click on the newly created project'] = 'Once the process is finished, click on the newly created project'; 
     16$lang['On the <b>APIS & AUTH -> Credentials</b> tab, and click <b>Create new client ID</b>'] = 'On the <b>APIS & AUTH -> Credentials</b> tab, and click <b>Create new client ID</b>'; 
     17$lang['Put your website domain in the <b>%1s</b> field. It must match with the current hostname: <em>%2s</em>'] = 'Put your website domain in the <b>%1s</b> field. It must match with the current hostname: <em>%2s</em>'; 
     18$lang['Select these APIs: <b>Contacts</b> as <em>Read</em> and <b>Social Directory</b> as <em>Read Public</em>'] = 'Select these APIs: <b>Contacts</b> as <em>Read</em> and <b>Social Directory</b> as <em>Read Public</em>'; 
     19$lang['Set <b>%1s</b> to <em>%2s</em>'] = 'Set <b>%1s</b> to <em>%2s</em>'; 
  • extensions/oAuth/language/en_UK/plugin.lang.php

    r28668 r28863  
    3131$lang['Allow users to merge existing account with new <i>Social Connect</i> identity'] = 'Allow users to merge existing account with new <i>Social Connect</i> identity'; 
    3232$lang['For security reason, the main webmaster account can\'t be merged with a remote account, but you can use another webmaster account.'] = 'For security reason, the main webmaster account can\'t be merged with a remote account, but you can use another webmaster account.'; 
    33  
    34 ?> 
     33$lang['Unable to perform login'] = 'Unable to perform login'; 
     34$lang['User not found'] = 'User not found'; 
     35$lang['Close'] = 'Close'; 
  • extensions/oAuth/template/identification_common.tpl

    r26740 r28863  
    136136      }, 
    137137      error: function() { 
    138         alert('Unknown error'); 
     138        alert('{'Unable to perform login'|translate|escape:'javascript'}'); 
     139        navigator.id.logout(); 
    139140      } 
    140141    }); 
Note: See TracChangeset for help on using the changeset viewer.