コード例 #1
0
echo autopostMicrosoftTranslator_apf::bulid_lang_options($fromLanguage);
?>
</select>
	  </td>
	</tr>
	<tr>
      <td>
	    <textarea name="src_text" cols="50" rows="5"><?php 
echo isset($_POST['src_text']) && $_POST['src_text'] != '' ? $_POST['src_text'] : 'Hello world!';
?>
</textarea>
	  </td>
    </tr>
	<tr>
     <td><?php 
echo __('Translated into', 'wp-autopost');
?>
 : <select name="toLanguage" ><?php 
$toLanguage = $_POST['toLanguage'] != '' ? $_POST['toLanguage'] : '';
echo autopostMicrosoftTranslator_apf::bulid_lang_options($toLanguage);
?>
</select></td>
	</tr>
   </table>
   <p><input type="submit" name="test_translate" class="button-primary" value="<?php 
echo __('Test Translate', 'wp-autopost');
?>
" ></p>

  </form>
</div>
コード例 #2
0
			<?php 
        echo autopostMicrosoftTranslator_apf::bulid_lang_options('');
        ?>
		  </select>
		</td>
	  </tr>

	  <tr> 
	    <td width="16%"><?php 
        echo __('Translated into', 'wp-autopost');
        ?>
:</td>
		<td>
		  <select id="to_Language" name="to_Language" >
			<?php 
        echo autopostMicrosoftTranslator_apf::bulid_lang_options('');
        ?>
		  </select>
		</td>
	  </tr>
   </table>
  </div>

  <div id="Translator2"   style="display:none;" >
   <table width="100%">
      <tr> 
	    <td width="16%"><?php 
        echo __('Original Language', 'wp-autopost');
        ?>
:</td>
		<td>