def save
      tries ||= 3
      request = Net::HTTP::Post.new("/api/projects/#{Connection.api_key}/strings/#{self.string_id}/locales/#{self.locale}/translations")
      WebTranslateIt::Util.add_fields(request)
      request.body = self.to_json
      begin
        Util.handle_response(Connection.http_connection.request(request), true, true)
      rescue Timeout::Error
        puts "Request timeout. Will retry in 5 seconds."
        if (tries -= 1) > 0
          sleep(5)
          retry
        else
          success = false
        end
      end
    end
def save
      tries ||= 3
      request = Net::HTTP::Post.new("/api/projects/#{Connection.api_key}/strings/#{self.string_id}/locales/#{self.locale}/translations")
      WebTranslateIt::Util.add_fields(request)
      request.body = self.to_json
      begin
        Util.handle_response(Connection.http_connection.request(request), true, true)
      rescue Timeout::Error
        puts "Request timeout. Will retry in 5 seconds."
        if (tries -= 1) > 0
          sleep(5)
          retry
        else
          success = false
        end
      end
    end
Initialize a new WebTranslateIt::Translation

 Implementation Example:

   WebTranslateIt::Translation.new({ :string_id => "1234", :text => "Super!" })

 to instantiate a new Translation without any text.

 Save a WebTranslateIt::Translation

 Implementation Example:

   translation = WebTranslateIt::Translation.new({ :string_id => "1234", :text => "Super!" })
   WebTranslateIt::Connection.new('secret_api_token') do
     translation.save
   end