122 @rtype tuple of (str, bool) |
122 @rtype tuple of (str, bool) |
123 """ |
123 """ |
124 apiKey = self.plugin.getPreferences("GoogleV2Key") |
124 apiKey = self.plugin.getPreferences("GoogleV2Key") |
125 if not apiKey: |
125 if not apiKey: |
126 return ( |
126 return ( |
127 self.tr("Google V2: A valid Google Translate key is" " required."), |
127 self.tr("Google V2: A valid Google Translate key is required."), |
128 False, |
128 False, |
129 ) |
129 ) |
130 |
130 |
131 params = QByteArray( |
131 params = QByteArray( |
132 "key={2}&source={0}&target={1}&format=text&q=".format( |
132 "key={2}&source={0}&target={1}&format=text&q=".format( |