package googleimport import ( "encoding/json" "strings" ) // Labels are caller-overridable; Text supplies the suite's twelve base locales. type Labels struct { Choose string `json:"choose"` Cancel string `json:"cancel"` Loading string `json:"loading"` Ready string `json:"ready"` Connecting string `json:"connecting"` Exporting string `json:"exporting"` Failed string `json:"failed"` Cancelled string `json:"cancelled"` Denied string `json:"denied"` TooLarge string `json:"tooLarge"` Unavailable string `json:"unavailable"` NoScript string `json:"noScript"` Disclosure string `json:"disclosure"` } func (l Labels) JSON() string { b, _ := json.Marshal(l); return string(b) } // Text falls back to English, including for apps without locale plumbing yet. func Text(locale string) Labels { base := strings.ToLower(strings.Split(strings.ReplaceAll(locale, "_", "-"), "-")[0]) if l, ok := messages[base]; ok { return l } return messages["en"] } var messages = map[string]Labels{ "en": {"Choose from Google Drive", "Cancel", "Loading Google Drive…", "Choose a file from Google Drive.", "Connecting to Google…", "Preparing your file…", "Google Drive could not connect. Try again, allowing the Google popup.", "Import cancelled. You can choose another file.", "Google did not allow this export. Choose again and grant access to the file.", "Google cannot export this file within the import size limit. Try a smaller file.", "This file could not be exported. Choose a Google document or spreadsheet you can download; if this persists, ask your administrator to check the Google setup.", "Google Drive needs JavaScript. You can download a file from Google and upload it using the form.", "Connect to Google to choose one file. Oficina imports a copy and leaves your Google original unchanged. This page contacts Google; it does not save your Google access token."}, "de": {"Aus Google Drive auswählen", "Abbrechen", "Google Drive wird geladen…", "Wählen Sie eine Datei aus Google Drive.", "Verbindung mit Google…", "Datei wird vorbereitet…", "Google Drive konnte keine Verbindung herstellen. Versuchen Sie es erneut und erlauben Sie das Google-Popup.", "Import abgebrochen. Sie können eine andere Datei auswählen.", "Google hat den Export nicht erlaubt. Wählen Sie erneut und erlauben Sie den Dateizugriff.", "Die Datei überschreitet das Importlimit von Google. Versuchen Sie eine kleinere Datei.", "Die Datei konnte nicht exportiert werden. Wählen Sie ein herunterladbares Google-Dokument oder eine Tabelle. Bleibt das Problem bestehen, lassen Sie die Google-Konfiguration prüfen.", "Google Drive benötigt JavaScript. Sie können eine Datei bei Google herunterladen und mit dem Formular hochladen.", "Verbinden Sie sich mit Google, um eine Datei auszuwählen. Oficina importiert eine Kopie; das Original bleibt unverändert. Diese Seite kontaktiert Google und speichert Ihr Google-Zugriffstoken nicht."}, "es": {"Elegir de Google Drive", "Cancelar", "Cargando Google Drive…", "Elige un archivo de Google Drive.", "Conectando con Google…", "Preparando el archivo…", "No se pudo conectar con Google Drive. Inténtalo de nuevo y permite la ventana emergente de Google.", "Importación cancelada. Puedes elegir otro archivo.", "Google no permitió exportar. Elige de nuevo y concede acceso al archivo.", "El archivo supera el límite de importación de Google. Prueba con uno más pequeño.", "No se pudo exportar. Elige un documento o una hoja de Google que puedas descargar. Si persiste, pide que revisen la configuración de Google.", "Google Drive necesita JavaScript. Puedes descargar un archivo de Google y subirlo con el formulario.", "Conecta con Google para elegir un archivo. Oficina importa una copia y deja el original sin cambios. Esta página contacta con Google; no guarda tu token de acceso."}, "fr": {"Choisir dans Google Drive", "Annuler", "Chargement de Google Drive…", "Choisissez un fichier dans Google Drive.", "Connexion à Google…", "Préparation du fichier…", "Connexion à Google Drive impossible. Réessayez en autorisant la fenêtre Google.", "Importation annulée. Vous pouvez choisir un autre fichier.", "Google a refusé l’exportation. Choisissez à nouveau et autorisez l’accès au fichier.", "Ce fichier dépasse la limite d’importation de Google. Essayez un fichier plus petit.", "Exportation impossible. Choisissez un document ou une feuille Google téléchargeable. Si le problème persiste, faites vérifier la configuration Google.", "Google Drive nécessite JavaScript. Vous pouvez télécharger un fichier depuis Google et l’importer avec le formulaire.", "Connectez-vous à Google pour choisir un fichier. Oficina importe une copie et laisse l’original intact. Cette page contacte Google sans enregistrer votre jeton d’accès."}, "it": {"Scegli da Google Drive", "Annulla", "Caricamento di Google Drive…", "Scegli un file da Google Drive.", "Connessione a Google…", "Preparazione del file…", "Impossibile connettersi a Google Drive. Riprova consentendo la finestra popup di Google.", "Importazione annullata. Puoi scegliere un altro file.", "Google non ha consentito l’esportazione. Scegli di nuovo e autorizza l’accesso al file.", "Il file supera il limite di importazione di Google. Prova un file più piccolo.", "Impossibile esportare. Scegli un documento o un foglio Google scaricabile. Se il problema persiste, chiedi di verificare la configurazione Google.", "Google Drive richiede JavaScript. Puoi scaricare un file da Google e caricarlo con il modulo.", "Connettiti a Google per scegliere un file. Oficina importa una copia e lascia invariato l’originale. Questa pagina contatta Google senza salvare il token di accesso."}, "pt": {"Escolher do Google Drive", "Cancelar", "A carregar o Google Drive…", "Escolha um ficheiro do Google Drive.", "A ligar ao Google…", "A preparar o ficheiro…", "Não foi possível ligar ao Google Drive. Tente novamente e permita a janela do Google.", "Importação cancelada. Pode escolher outro ficheiro.", "O Google não permitiu a exportação. Escolha novamente e autorize o acesso ao ficheiro.", "O ficheiro excede o limite de importação do Google. Tente um ficheiro mais pequeno.", "Não foi possível exportar. Escolha um documento ou folha Google que possa transferir. Se persistir, peça para verificarem a configuração do Google.", "O Google Drive precisa de JavaScript. Pode transferir um ficheiro do Google e carregá-lo através do formulário.", "Ligue-se ao Google para escolher um ficheiro. A Oficina importa uma cópia e mantém o original intacto. Esta página contacta o Google sem guardar o seu token de acesso."}, "nl": {"Kiezen uit Google Drive", "Annuleren", "Google Drive laden…", "Kies een bestand uit Google Drive.", "Verbinden met Google…", "Bestand voorbereiden…", "Verbinding met Google Drive mislukt. Probeer opnieuw en sta de Google-pop-up toe.", "Import geannuleerd. Je kunt een ander bestand kiezen.", "Google heeft de export geweigerd. Kies opnieuw en geef toegang tot het bestand.", "Het bestand overschrijdt de importlimiet van Google. Probeer een kleiner bestand.", "Export mislukt. Kies een Google-document of spreadsheet dat je kunt downloaden. Laat bij aanhoudende problemen de Google-instellingen controleren.", "Google Drive heeft JavaScript nodig. Je kunt een bestand van Google downloaden en via het formulier uploaden.", "Verbind met Google om één bestand te kiezen. Oficina importeert een kopie en laat het origineel ongewijzigd. Deze pagina maakt contact met Google en slaat je toegangstoken niet op."}, "pl": {"Wybierz z Dysku Google", "Anuluj", "Ładowanie Dysku Google…", "Wybierz plik z Dysku Google.", "Łączenie z Google…", "Przygotowywanie pliku…", "Nie udało się połączyć z Dyskiem Google. Spróbuj ponownie i zezwól na wyskakujące okno Google.", "Import anulowany. Możesz wybrać inny plik.", "Google odmówił eksportu. Wybierz ponownie i udziel dostępu do pliku.", "Plik przekracza limit importu Google. Spróbuj z mniejszym plikiem.", "Nie udało się wyeksportować. Wybierz dokument lub arkusz Google, który można pobrać. Jeśli problem się powtarza, poproś o sprawdzenie konfiguracji Google.", "Dysk Google wymaga JavaScript. Możesz pobrać plik z Google i przesłać go za pomocą formularza.", "Połącz się z Google, aby wybrać jeden plik. Oficina importuje kopię i pozostawia oryginał bez zmian. Ta strona łączy się z Google, ale nie zapisuje tokenu dostępu."}, "ar": {"اختيار من Google Drive", "إلغاء", "جارٍ تحميل Google Drive…", "اختر ملفًا من Google Drive.", "جارٍ الاتصال بـ Google…", "جارٍ تجهيز الملف…", "تعذر الاتصال بـ Google Drive. حاول مجددًا واسمح لنافذة Google بالظهور.", "أُلغي الاستيراد. يمكنك اختيار ملف آخر.", "لم يسمح Google بالتصدير. اختر مجددًا وامنح الإذن بالوصول إلى الملف.", "يتجاوز الملف حد الاستيراد لدى Google. جرّب ملفًا أصغر.", "تعذر تصدير الملف. اختر مستندًا أو جدول بيانات من Google يمكنك تنزيله. إذا استمرت المشكلة، اطلب مراجعة إعدادات Google.", "يتطلب Google Drive تفعيل JavaScript. يمكنك تنزيل ملف من Google ورفعه باستخدام النموذج.", "اتصل بـ Google لاختيار ملف واحد. تستورد Oficina نسخة وتترك الملف الأصلي دون تغيير. تتصل هذه الصفحة بـ Google ولا تحفظ رمز الوصول."}, "ja": {"Google ドライブから選択", "キャンセル", "Google ドライブを読み込み中…", "Google ドライブからファイルを選んでください。", "Google に接続中…", "ファイルを準備中…", "Google ドライブに接続できませんでした。Google のポップアップを許可して再試行してください。", "インポートをキャンセルしました。別のファイルを選べます。", "Google がエクスポートを許可しませんでした。再度選択してファイルへのアクセスを許可してください。", "ファイルが Google のインポート上限を超えています。小さいファイルをお試しください。", "エクスポートできませんでした。ダウンロード可能な Google ドキュメントまたはスプレッドシートを選んでください。問題が続く場合は管理者に設定の確認を依頼してください。", "Google ドライブには JavaScript が必要です。Google からファイルをダウンロードし、フォームでアップロードすることもできます。", "Google に接続してファイルを1つ選択します。Oficina はコピーをインポートし、元のファイルは変更しません。このページは Google に接続しますが、アクセストークンを保存しません。"}, "zh": {"从 Google 云端硬盘选择", "取消", "正在加载 Google 云端硬盘…", "请选择 Google 云端硬盘中的文件。", "正在连接 Google…", "正在准备文件…", "无法连接 Google 云端硬盘。请允许 Google 弹出窗口后重试。", "导入已取消。您可以选择其他文件。", "Google 未允许导出。请重新选择并授予文件访问权限。", "文件超出 Google 导入大小限制。请尝试较小的文件。", "无法导出文件。请选择可下载的 Google 文档或表格。如果问题持续,请联系管理员检查 Google 配置。", "Google 云端硬盘需要 JavaScript。您也可以从 Google 下载文件,然后通过表单上传。", "连接 Google 以选择一个文件。Oficina 会导入副本,不会修改原始文件。此页面会连接 Google,但不会保存您的访问令牌。"}, "ko": {"Google Drive에서 선택", "취소", "Google Drive 로딩 중…", "Google Drive에서 파일을 선택하세요.", "Google에 연결 중…", "파일 준비 중…", "Google Drive에 연결할 수 없습니다. Google 팝업을 허용한 후 다시 시도하세요.", "가져오기가 취소되었습니다. 다른 파일을 선택할 수 있습니다.", "Google이 내보내기를 허용하지 않았습니다. 다시 선택하고 파일 접근을 허용하세요.", "파일이 Google 가져오기 크기 제한을 초과합니다. 더 작은 파일을 시도하세요.", "파일을 내보낼 수 없습니다. 다운로드할 수 있는 Google 문서 또는 스프레드시트를 선택하세요. 문제가 계속되면 관리자에게 Google 설정 확인을 요청하세요.", "Google Drive에는 JavaScript가 필요합니다. Google에서 파일을 다운로드한 후 양식으로 업로드할 수도 있습니다.", "Google에 연결하여 파일 하나를 선택합니다. Oficina는 사본을 가져오며 원본은 변경하지 않습니다. 이 페이지는 Google에 연결하지만 접근 토큰을 저장하지 않습니다."}, }