diff --git a/extensions/gdata/module/langs/translation-en.json b/extensions/gdata/module/langs/translation-en.json index 2da5aa3df..150432d77 100644 --- a/extensions/gdata/module/langs/translation-en.json +++ b/extensions/gdata/module/langs/translation-en.json @@ -44,7 +44,7 @@ "gdata-exporter": { "uploading": "Uploading...", "upload-error": "Upload error: ", - "upload-success": "Project was exported successfully to google drive with Id ", + "upload-success": "Project was uploaded successfully to Google Drive with Id ", "new-spreadsheet": "A new Google spreadsheet", "enter-spreadsheet": "Enter a name for the new Google spreadsheet", "new-fusion": "A new Google Fusion table", diff --git a/extensions/gdata/src/com/google/refine/extension/gdata/SpreadsheetSerializer.java b/extensions/gdata/src/com/google/refine/extension/gdata/SpreadsheetSerializer.java index bf92c0d28..20f1c506b 100644 --- a/extensions/gdata/src/com/google/refine/extension/gdata/SpreadsheetSerializer.java +++ b/extensions/gdata/src/com/google/refine/extension/gdata/SpreadsheetSerializer.java @@ -1,6 +1,8 @@ package com.google.refine.extension.gdata; import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; import java.util.ArrayList; import java.util.List; @@ -115,7 +117,8 @@ final class SpreadsheetSerializer implements TabularSerializer { requests.add(batchRequest); } - public String getUrl() { - return "https://docs.google.com/spreadsheets/d/" + spreadsheetId + "/edit#gid=0"; + public String getUrl() throws UnsupportedEncodingException { + String urlString= "https://docs.google.com/spreadsheets/d/" + spreadsheetId + "/edit#gid=0"; + return URLEncoder.encode(urlString, "UTF-8"); } } diff --git a/main/src/com/google/refine/importing/ImportingUtilities.java b/main/src/com/google/refine/importing/ImportingUtilities.java index c707625d9..bc52f9593 100644 --- a/main/src/com/google/refine/importing/ImportingUtilities.java +++ b/main/src/com/google/refine/importing/ImportingUtilities.java @@ -88,8 +88,6 @@ import org.json.JSONObject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import com.beust.jcommander.Strings; - import com.google.refine.ProjectManager; import com.google.refine.RefineServlet; import com.google.refine.importing.ImportingManager.Format; diff --git a/main/webapp/modules/core/langs/translation-en.json b/main/webapp/modules/core/langs/translation-en.json index 52b1a448e..1b7b2f1f3 100644 --- a/main/webapp/modules/core/langs/translation-en.json +++ b/main/webapp/modules/core/langs/translation-en.json @@ -275,7 +275,7 @@ "json-text": "The following JSON text encodes the options you have set in the other tabs. You can copy it out and save it for later, and paste it back in and click Apply to re-use the same options.", "choose-export-destination": "Please choose the destination for project export", "export-to-local": "Export to local", - "export-to-google-drive": "Export to google drive" + "export-to-google-drive": "Export to Google Drive" }, "core-facets": { "remove-facet": "Remove this facet",