Translate, with help from Sovereign (translation backend needs an update/fixing)
Add Translate Chat checkbox back to chat floater, and enable it when applicable(with showTranslationCheckbox()). Spend the night making it compile with AICurl~ Make the links work all nice despite our old link-unfriendly UI code. Coax UI bits into agreeing with their new environment. Updated the links because v-d seems to still have old ones... Adv. Chat->Translation tab added.. Guess it's your move, again, Sovereign. This was old, so I updated it, yayyy~
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<combo_item name="Gestures">Gestures</combo_item>
|
||||
</combo_box>
|
||||
<check_box bottom_delta="-2" enabled="true" follows="left|top" font="SansSerifSmall" height="20" initial_value="false" label="Show Muted Text" left_delta="124" name="show mutes" width="116"/>
|
||||
<!--check_box bottom_delta="-15" enabled="true" follows="left|top" font="SansSerifSmall" height="20" initial_value="false" label="Translate Chat (powered by Google)" name="translate chat" width="100" control_name="TranslateChat"/-->
|
||||
<check_box bottom_delta="-12" follows="left|top" height="20" label="Translate chat" name="translate chat" width="100"/>
|
||||
<button bottom_delta="2" left_delta="120" follows="left|top" font="SansSerifSmall" height="20" width="100" label="Open History" name="chat_history_open" tool_tip="Click here to open chat history in external editor."/>
|
||||
<button bottom_delta="0" follows="right|top" height="20" label="< <" label_selected="> >" toggle="true" left="272" name="toggle_active_speakers_btn" right="305" tool_tip="Click here to show a list of active participants in this IM session." width="80"/>
|
||||
<text_editor type="string" length="1" bg_readonly_color="ChatHistoryBgColor" bg_writeable_color="ChatHistoryBgColor" bottom="0" enabled="false" follows="left|top|right|bottom" font="SansSerif" height="107" left="5" max_length="2147483647" name="Chat History Editor" text_color="ChatHistoryTextColor" track_bottom="true" text_readonly_color="ChatHistoryTextColor" width="300" word_wrap="true"/>
|
||||
|
||||
@@ -196,5 +196,6 @@ To use spellcheck, right-click a misspelled word
|
||||
<line_editor bottom_delta="-20" follows="left|top" bevel_style="in" border_style="line" border_thickness="1" height="20" left_delta="-5" max_length="36" name="KeywordsSound" width="300"/>
|
||||
</panel>
|
||||
|
||||
<panel border="true" left="1" bottom="-408" height="408" width="500" filename="panel_translation_settings.xml" label="Translation" name="Translation Panel"/>
|
||||
</tab_container>
|
||||
</panel>
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<panel height="310" name="panel_translation_settings" title="Translation" width="485">
|
||||
<string name="bing_api_key_not_verified">Bing appID not verified. Please try again.</string>
|
||||
<string name="google_api_key_not_verified">Google API key not verified. Please try again.</string>
|
||||
<string name="bing_api_key_verified">Bing appID verified.</string>
|
||||
<string name="google_api_key_verified">Google API key verified.</string>
|
||||
|
||||
<check_box label="Enable machine translation while chatting" left="5" name="translate_chat_checkbox" control_name="TranslateChat" bottom="-30" width="20"/>
|
||||
<text follows="left|top" left="20" bottom_delta="-20" name="translate_language_label">Translate chat into: </text>
|
||||
<combo_box allow_text_entry="true" follows="left|top" height="20" max_chars="135" name="translate_language_combo" control_name="TranslateLanguage" bottom_delta="-6" left_delta="100" width="190">
|
||||
<combo_item name="System Default Language" value="default">System Default</combo_item>
|
||||
<combo_item name="English" value="en">English</combo_item>
|
||||
<!-- After "System Default" and "English", please keep the rest of these combo_items in alphabetical order by the first character in the string. -->
|
||||
<combo_item name="Danish" value="da">Dansk (Danish)</combo_item>
|
||||
<combo_item name="German" value="de">Deutsch (German)</combo_item>
|
||||
<combo_item name="Spanish" value="es">Español (Spanish)</combo_item>
|
||||
<combo_item name="French" value="fr">Français (French)</combo_item>
|
||||
<combo_item name="Italian" value="it">Italiano (Italian)</combo_item>
|
||||
<combo_item name="Hungarian" value="hu">Magyar (Hungarian)</combo_item>
|
||||
<combo_item name="Dutch" value="nl">Nederlands (Dutch)</combo_item>
|
||||
<combo_item name="Polish" value="pl">Polski (Polish)</combo_item>
|
||||
<combo_item name="Portugese" value="pt">Português (Portuguese)</combo_item>
|
||||
<combo_item name="Russian" value="ru">Русский (Russian)</combo_item>
|
||||
<combo_item name="Turkish" value="tr">Türkçe (Turkish)</combo_item>
|
||||
<combo_item name="Ukrainian" value="uk">Українська (Ukrainian)</combo_item>
|
||||
<combo_item name="Chinese" value="zh">中文 (正體) (Chinese)</combo_item>
|
||||
<combo_item name="Japanese" value="ja">日本語 (Japanese)</combo_item>
|
||||
<combo_item name="Korean" value="ko">한국어 (Korean)</combo_item>
|
||||
</combo_box>
|
||||
|
||||
<text follows="top|left|right" left="20" bottom_delta="-18" name="tip">Choose translation service:</text>
|
||||
<radio_group draw_border="false" follows="top|left" bottom_delta="-7" left_delta="160" height="20" width="300" name="translation_service_rg" control_name="TranslationService">
|
||||
<radio_item value="bing" name="bing" bottom="0" left="0" height="20">Bing Translator</radio_item>
|
||||
<radio_item value="google" name="google" bottom="0" left_delta="60">Google Translate</radio_item>
|
||||
</radio_group>
|
||||
|
||||
<text_editor enabled="false" font="SansSerifSmall" hide_scrollbar="true" hide_border="true" bg_readonly_color="0 0 0 0" follows="top|right" height="20" width="109" bottom_delta="-24" left="5" name="bing_api_key_label">
|
||||
Bing
|
||||
</text_editor>
|
||||
<line_editor label="Enter Bing AppID and click "Verify"" follows="top|left" height="20" bottom_delta="0" left_delta="105" max_length_chars="50" top_delta="-4" name="bing_api_key" control_name="BingTranslateAPIKey" width="210"/>
|
||||
<button follows="left|top" height="20" label="Verify" bottom_delta="0" left_delta="215" name="verify_bing_api_key_btn" width="80"/>
|
||||
|
||||
<text_editor enabled="false" font="SansSerifSmall" hide_scrollbar="true" hide_border="true" bg_readonly_color="0 0 0 0" follows="top|right" height="20" bottom_delta="0" width="109" left="5" name="google_api_key_label">
|
||||
Google
|
||||
</text_editor>
|
||||
<line_editor label="Enter Google API key and click "Verify"" follows="top|left" height="20" bottom_delta="0" left_delta="105" max_length_chars="50" top_delta="-4" name="google_api_key" control_name="GoogleTranslateAPIKey" width="210"/>
|
||||
<button follows="left|top" height="20" label="Verify" bottom_delta="0" left_delta="215" name="verify_google_api_key_btn" width="80"/>
|
||||
<text_editor enabled="false" font="SansSerifSmall" hide_scrollbar="true" hide_border="true" bg_readonly_color="0 0 0 0" follows="top|right" height="20" left_delta="70" name="google_links_text" bottom_delta="0"/>
|
||||
<string name="Pricing">Pricing</string>
|
||||
<string name="Stats">Stats</string>
|
||||
</panel>
|
||||
Reference in New Issue
Block a user