Permalink
Browse files

Stop using translate API, start using scraping google translate

  • Loading branch information...
1 parent 144d572 commit e612284e0aab6c4acfe55c630275ccdeb7dbbfa8 Alexander Shvets committed Oct 12, 2011
Showing with 75 additions and 25 deletions.
  1. +72 −21 .idea/workspace.xml
  2. +0 −1 README
  3. +1 −1 VERSION
  4. +1 −1 bin/translate
  5. +1 −1 google-translate.gemspec
View
@@ -2,17 +2,10 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="27826e27-f211-4f38-bd71-88309e7ed342" name="Default" comment="Renamed language lookup methods (to have more descriptive names).&#10;(cherry picked from commit 4a5e9875dc0bda29cc5cdb1e45bfb38a0970db44)&#10;">
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/google-translate.iml" afterPath="$PROJECT_DIR$/.idea/google-translate.iml" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/CHANGES" afterPath="$PROJECT_DIR$/CHANGES" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile.lock" afterPath="$PROJECT_DIR$/Gemfile.lock" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile" afterPath="$PROJECT_DIR$/Gemfile" />
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/README" afterPath="$PROJECT_DIR$/README" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/VERSION" afterPath="$PROJECT_DIR$/VERSION" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/bin/translate" afterPath="$PROJECT_DIR$/bin/translate" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/google-translate.gemspec" afterPath="$PROJECT_DIR$/google-translate.gemspec" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/google_translate.rb" afterPath="$PROJECT_DIR$/lib/google_translate.rb" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/translate_spec.rb" afterPath="$PROJECT_DIR$/spec/translate_spec.rb" />
</list>
<list id="8bceb49d-7e0c-4091-bde9-7ac2cd7ef145" name="Translate method now does POSTs rather than GETs (allows you to send up to 5,000 characters) to translate rather than being imposed by the GET query string limits.&#10;(cherry picked from commit c5e221ad627b74ca4afe932cf553196ca0be7c19)&#10;" comment="Translate method now does POSTs rather than GETs (allows you to send up to 5,000 characters) to translate rather than being imposed by the GET query string limits.&#10;(cherry picked from commit c5e221ad627b74ca4afe932cf553196ca0be7c19)&#10;" />
<list id="2012fae1-5c1c-46e0-9846-f895b7c7f6dc" name="&#10;&#10;&#10;Translate method now does POSTs rather than GETs (allows you to send up to 5,000 characters) to translate rather than being imposed by the GET query string limits.&#10;(cherry picked from commit c5e221ad627b74ca4afe932cf553196ca0be7c19)" comment="" />
@@ -64,6 +57,42 @@
</provider>
</entry>
</file>
+ <file leaf-file-name="README" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/README">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="10" column="33" selection-start="265" selection-end="265" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ <file leaf-file-name="Rakefile" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/Rakefile">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="50" column="170" selection-start="1439" selection-end="1439" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ <file leaf-file-name="CHANGES" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/CHANGES">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="41" column="35" selection-start="594" selection-end="594" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ <file leaf-file-name="translate" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/bin/translate">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="70" column="46" selection-start="1797" selection-end="1797" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
</leaf>
</component>
<component name="FindManager">
@@ -104,9 +133,10 @@
<option value="$PROJECT_DIR$/Rakefile" />
<option value="$PROJECT_DIR$/Gemfile" />
<option value="$PROJECT_DIR$/CHANGES" />
- <option value="$PROJECT_DIR$/bin/translate" />
<option value="$PROJECT_DIR$/lib/google_translate.rb" />
<option value="$PROJECT_DIR$/spec/translate_spec.rb" />
+ <option value="$PROJECT_DIR$/README" />
+ <option value="$PROJECT_DIR$/bin/translate" />
<option value="$PROJECT_DIR$/VERSION" />
</list>
</option>
@@ -185,6 +215,20 @@
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="google-translate" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="google-translate" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="bin" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
</subPane>
</pane>
</panes>
@@ -654,42 +698,49 @@
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/Rakefile">
+ <entry file="file://$PROJECT_DIR$/bin/t">
<provider selected="true" editor-type-id="text-editor">
- <state line="50" column="170" selection-start="1439" selection-end="1439" vertical-scroll-proportion="0.0">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
+ </provider>
+ </entry>
+ <entry file="file://$PROJECT_DIR$/spec/translate_spec.rb">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="28" column="40" selection-start="644" selection-end="644" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/CHANGES">
+ <entry file="file://$PROJECT_DIR$/lib/google_translate.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="45" column="68" selection-start="616" selection-end="679" vertical-scroll-proportion="0.0">
+ <state line="47" column="39" selection-start="1436" selection-end="1436" vertical-scroll-proportion="-4.769231">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/bin/t">
+ <entry file="file://$PROJECT_DIR$/Rakefile">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
+ <state line="50" column="170" selection-start="1439" selection-end="1439" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/bin/translate">
+ <entry file="file://$PROJECT_DIR$/CHANGES">
<provider selected="true" editor-type-id="text-editor">
- <state line="57" column="27" selection-start="1412" selection-end="1412" vertical-scroll-proportion="0.0">
+ <state line="41" column="35" selection-start="594" selection-end="594" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/spec/translate_spec.rb">
+ <entry file="file://$PROJECT_DIR$/bin/translate">
<provider selected="true" editor-type-id="text-editor">
- <state line="28" column="40" selection-start="644" selection-end="644" vertical-scroll-proportion="0.0">
+ <state line="70" column="46" selection-start="1797" selection-end="1797" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/lib/google_translate.rb">
+ <entry file="file://$PROJECT_DIR$/README">
<provider selected="true" editor-type-id="text-editor">
- <state line="47" column="39" selection-start="1436" selection-end="1436" vertical-scroll-proportion="-4.769231">
+ <state line="10" column="33" selection-start="265" selection-end="265" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
View
1 README
@@ -8,7 +8,6 @@
== Usage
translate list - displays the list of supported languages
- translate detect "hello world" - detects language of text
translate en:ru "hello world" - or
translate en:ru hello world - translates from en to ru
translate ru "hello world" - or
View
@@ -1 +1 @@
-0.8.1
+0.8.2
View
@@ -69,7 +69,7 @@ class Translate
# rescue Exception => e
# puts "Error: " + e.message
# end
- #end
+ end
end
end
View
@@ -5,7 +5,7 @@
Gem::Specification.new do |s|
s.name = %q{google-translate}
- s.version = "0.8.1"
+ s.version = "0.8.2"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = [%q{Alexander Shvets}]

0 comments on commit e612284

Please sign in to comment.