Feature #34762 » detailed-error-when-csv-is-malformed.patch
| app/controllers/imports_controller.rb | ||
|---|---|---|
| 55 | 55 | |
| 56 | 56 |
rescue CSV::MalformedCSVError, EncodingError => e |
| 57 | 57 |
if e.is_a?(CSV::MalformedCSVError) && e.message !~ /Invalid byte sequence/ |
| 58 |
flash.now[:error] = l(:error_invalid_csv_file_or_settings) |
|
| 58 |
flash.now[:error] = l(:error_invalid_csv_file_or_settings, e.message)
|
|
| 59 | 59 |
else |
| 60 | 60 |
flash.now[:error] = l(:error_invalid_file_encoding, :encoding => ERB::Util.h(@import.settings['encoding'])) |
| 61 | 61 |
end |
| config/locales/ar.yml | ||
|---|---|---|
| 1139 | 1139 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1140 | 1140 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1141 | 1141 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1142 |
settings below |
|
| 1142 |
settings below (%{value})
|
|
| 1143 | 1143 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1144 | 1144 |
permission_import_issues: Import issues |
| 1145 | 1145 |
label_import_issues: Import issues |
| config/locales/az.yml | ||
|---|---|---|
| 1231 | 1231 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1232 | 1232 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1233 | 1233 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1234 |
settings below |
|
| 1234 |
settings below (%{value})
|
|
| 1235 | 1235 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1236 | 1236 |
permission_import_issues: Import issues |
| 1237 | 1237 |
label_import_issues: Import issues |
| config/locales/bg.yml | ||
|---|---|---|
| 224 | 224 |
warning_attachments_not_saved: "%{count} файла не бяха записани."
|
| 225 | 225 |
error_password_expired: Вашата парола е с изтекъл срок или администраторът изисква да я смените. |
| 226 | 226 |
error_invalid_file_encoding: Файлът няма валидно %{encoding} кодиране.
|
| 227 |
error_invalid_csv_file_or_settings: Файлът не е CSV файл или не съответства на зададеното по-долу |
|
| 227 |
error_invalid_csv_file_or_settings: Файлът не е CSV файл или не съответства на зададеното по-долу (%{value})
|
|
| 228 | 228 |
error_can_not_read_import_file: Грешка по време на четене на импортирания файл |
| 229 | 229 |
error_attachment_extension_not_allowed: Файлове от тип %{extension} не са позволени
|
| 230 | 230 |
error_ldap_bind_credentials: Невалидни LDAP име/парола |
| config/locales/bs.yml | ||
|---|---|---|
| 1152 | 1152 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1153 | 1153 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1154 | 1154 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1155 |
settings below |
|
| 1155 |
settings below (%{value})
|
|
| 1156 | 1156 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1157 | 1157 |
permission_import_issues: Import issues |
| 1158 | 1158 |
label_import_issues: Import issues |
| config/locales/ca.yml | ||
|---|---|---|
| 1134 | 1134 |
notice_import_finished: "%{count} element/s han sigut importats"
|
| 1135 | 1135 |
notice_import_finished_with_errors: "%{count} de %{total} elements no s'ha pogut importar"
|
| 1136 | 1136 |
error_invalid_file_encoding: "El fitxer no utilitza una codificació valida (%{encoding})"
|
| 1137 |
error_invalid_csv_file_or_settings: "El fitxer no es un CSV o no coincideix amb la configuració" |
|
| 1137 |
error_invalid_csv_file_or_settings: "El fitxer no es un CSV o no coincideix amb la configuració (%{value})"
|
|
| 1138 | 1138 |
error_can_not_read_import_file: "S'ha produït un error mentre es llegia el fitxer a importar" |
| 1139 | 1139 |
permission_import_issues: "Importar assumptes" |
| 1140 | 1140 |
label_import_issues: "Importar assumptes" |
| config/locales/cs.yml | ||
|---|---|---|
| 1139 | 1139 |
notice_import_finished_with_errors: "%{count} z %{total} položek nemohlo být naimportováno"
|
| 1140 | 1140 |
error_invalid_file_encoding: Soubor není platným souborem s kódováním %{encoding}
|
| 1141 | 1141 |
error_invalid_csv_file_or_settings: Soubor není CSV soubor nebo neodpovídá |
| 1142 |
níže uvedenému nastavení |
|
| 1142 |
níže uvedenému nastavení (%{value})
|
|
| 1143 | 1143 |
error_can_not_read_import_file: Chyba při čtení souboru pro import |
| 1144 | 1144 |
permission_import_issues: Import úkolů |
| 1145 | 1145 |
label_import_issues: Import úkolů |
| config/locales/da.yml | ||
|---|---|---|
| 1156 | 1156 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1157 | 1157 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1158 | 1158 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1159 |
settings below |
|
| 1159 |
settings below (%{value})
|
|
| 1160 | 1160 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1161 | 1161 |
permission_import_issues: Import issues |
| 1162 | 1162 |
label_import_issues: Import issues |
| config/locales/de.yml | ||
|---|---|---|
| 1178 | 1178 |
notice_import_finished: "%{count} Einträge wurden importiert"
|
| 1179 | 1179 |
notice_import_finished_with_errors: "%{count} von %{total} Einträgen konnten nicht importiert werden"
|
| 1180 | 1180 |
error_invalid_file_encoding: Die Datei ist keine gültige %{encoding}-kodierte Datei
|
| 1181 |
error_invalid_csv_file_or_settings: Die Datei ist keine CSV-Datei oder entspricht nicht den unten stehenden Einstellungen |
|
| 1181 |
error_invalid_csv_file_or_settings: Die Datei ist keine CSV-Datei oder entspricht nicht den unten stehenden Einstellungen (%{value})
|
|
| 1182 | 1182 |
error_can_not_read_import_file: Beim Einlesen der Datei ist ein Fehler aufgetreten |
| 1183 | 1183 |
permission_import_issues: Tickets importieren |
| 1184 | 1184 |
label_import_issues: Tickets importieren |
| config/locales/el.yml | ||
|---|---|---|
| 1139 | 1139 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1140 | 1140 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1141 | 1141 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1142 |
settings below |
|
| 1142 |
settings below (%{value})
|
|
| 1143 | 1143 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1144 | 1144 |
permission_import_issues: Import issues |
| 1145 | 1145 |
label_import_issues: Import issues |
| config/locales/en-GB.yml | ||
|---|---|---|
| 1146 | 1146 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1147 | 1147 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1148 | 1148 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1149 |
settings below |
|
| 1149 |
settings below (%{value})
|
|
| 1150 | 1150 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1151 | 1151 |
permission_import_issues: Import issues |
| 1152 | 1152 |
label_import_issues: Import issues |
| config/locales/en.yml | ||
|---|---|---|
| 221 | 221 |
warning_attachments_not_saved: "%{count} file(s) could not be saved."
|
| 222 | 222 |
error_password_expired: "Your password has expired or the administrator requires you to change it." |
| 223 | 223 |
error_invalid_file_encoding: "The file is not a valid %{encoding} encoded file"
|
| 224 |
error_invalid_csv_file_or_settings: "The file is not a CSV file or does not match the settings below" |
|
| 224 |
error_invalid_csv_file_or_settings: "The file is not a CSV file or does not match the settings below (%{value})"
|
|
| 225 | 225 |
error_can_not_read_import_file: "An error occurred while reading the file to import" |
| 226 | 226 |
error_attachment_extension_not_allowed: "Attachment extension %{extension} is not allowed"
|
| 227 | 227 |
error_ldap_bind_credentials: "Invalid LDAP Account/Password" |
| config/locales/es-PA.yml | ||
|---|---|---|
| 1174 | 1174 |
notice_import_finished_with_errors: "%{count} de %{total} elementos no pudieron ser importados"
|
| 1175 | 1175 |
error_invalid_file_encoding: El archivo no utiliza %{encoding} válida
|
| 1176 | 1176 |
error_invalid_csv_file_or_settings: El archivo no es un archivo CSV o no coincide con la |
| 1177 |
configuración |
|
| 1177 |
configuración (%{value})
|
|
| 1178 | 1178 |
error_can_not_read_import_file: Ocurrió un error mientras se leía el archivo a importar |
| 1179 | 1179 |
permission_import_issues: Importar incidencias |
| 1180 | 1180 |
label_import_issues: Importar incidencias |
| config/locales/es.yml | ||
|---|---|---|
| 1172 | 1172 |
notice_import_finished_with_errors: "%{count} de %{total} elementos no pudieron ser importados"
|
| 1173 | 1173 |
error_invalid_file_encoding: El archivo no utiliza %{encoding} válida
|
| 1174 | 1174 |
error_invalid_csv_file_or_settings: El archivo no es un archivo CSV o no coincide con la |
| 1175 |
configuración |
|
| 1175 |
configuración (%{value})
|
|
| 1176 | 1176 |
error_can_not_read_import_file: Ocurrió un error mientras se leía el archivo a importar |
| 1177 | 1177 |
permission_import_issues: Importar Peticiones |
| 1178 | 1178 |
label_import_issues: Importar petición |
| config/locales/et.yml | ||
|---|---|---|
| 1144 | 1144 |
notice_import_finished: "%{count} rida imporditud"
|
| 1145 | 1145 |
notice_import_finished_with_errors: "%{count} rida %{total}st ei õnnestunud importida"
|
| 1146 | 1146 |
error_invalid_file_encoding: "See fail ei ole õige %{encoding} kodeeringuga"
|
| 1147 |
error_invalid_csv_file_or_settings: "See fail kas ei ole CSV formaadis või ei klapi allolevate sätetega" |
|
| 1147 |
error_invalid_csv_file_or_settings: "See fail kas ei ole CSV formaadis või ei klapi allolevate sätetega (%{value})"
|
|
| 1148 | 1148 |
error_can_not_read_import_file: "Importfaili sisselugemisel ilmnes viga" |
| 1149 | 1149 |
permission_import_issues: "Impordi teemasid" |
| 1150 | 1150 |
label_import_issues: "Impordi teemad" |
| config/locales/eu.yml | ||
|---|---|---|
| 1140 | 1140 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1141 | 1141 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1142 | 1142 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1143 |
settings below |
|
| 1143 |
settings below (%{value})
|
|
| 1144 | 1144 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1145 | 1145 |
permission_import_issues: Import issues |
| 1146 | 1146 |
label_import_issues: Import issues |
| config/locales/fa.yml | ||
|---|---|---|
| 218 | 218 |
warning_attachments_not_saved: "%{count} پرونده نتوانست ذخیره شود."
|
| 219 | 219 |
error_password_expired: "گذرواژهی شما منقضی شده است یا راهبر درخواست تغییر آن را داده است." |
| 220 | 220 |
error_invalid_file_encoding: "این پرونده یک پرونده با کدگذاری %{encoding} نیست"
|
| 221 |
error_invalid_csv_file_or_settings: "این پرونده یک پرونده CSV نیست یا با تنظیمات زیر همخوان نیست." |
|
| 221 |
error_invalid_csv_file_or_settings: "این پرونده یک پرونده CSV نیست یا با تنظیمات زیر همخوان نیست. (%{value})"
|
|
| 222 | 222 |
error_can_not_read_import_file: "در هنگام خواندن پرونده برای ورود، خطایی رخ داد" |
| 223 | 223 |
error_attachment_extension_not_allowed: "پسوند %{extension} برای پیوست یک پسوند مجاز نیست"
|
| 224 | 224 |
error_ldap_bind_credentials: "حساب/گذرواژه نامعتبر LDAP" |
| config/locales/fi.yml | ||
|---|---|---|
| 1160 | 1160 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1161 | 1161 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1162 | 1162 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1163 |
settings below |
|
| 1163 |
settings below (%{value})
|
|
| 1164 | 1164 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1165 | 1165 |
permission_import_issues: Import issues |
| 1166 | 1166 |
label_import_issues: Import issues |
| config/locales/fr.yml | ||
|---|---|---|
| 234 | 234 |
warning_attachments_not_saved: "%{count} fichier(s) n'ont pas pu être sauvegardés."
|
| 235 | 235 |
error_password_expired: "Votre mot de passe a expiré ou nécessite d'être changé." |
| 236 | 236 |
error_invalid_file_encoding: "Le fichier n'est pas un fichier %{encoding} valide"
|
| 237 |
error_invalid_csv_file_or_settings: "Le fichier n'est pas un fichier CSV ou n'est pas conforme aux paramètres sélectionnés" |
|
| 237 |
error_invalid_csv_file_or_settings: "Le fichier n'est pas un fichier CSV ou n'est pas conforme aux paramètres sélectionnés (%{value})"
|
|
| 238 | 238 |
error_can_not_read_import_file: "Une erreur est survenue lors de la lecture du fichier à importer" |
| 239 | 239 |
error_attachment_extension_not_allowed: "L'extension %{extension} n'est pas autorisée"
|
| 240 | 240 |
error_ldap_bind_credentials: "Identifiant ou mot de passe LDAP incorrect" |
| config/locales/gl.yml | ||
|---|---|---|
| 1147 | 1147 |
notice_import_finished_with_errors: "%{count} dun total de %{total} elementos non puideron ser importados"
|
| 1148 | 1148 |
error_invalid_file_encoding: O ficheiro non é un ficheiro codificado %{encoding} válido
|
| 1149 | 1149 |
error_invalid_csv_file_or_settings: O ficheiro non é un arquivo CSV ou non coincide coas |
| 1150 |
opcións de abaixo |
|
| 1150 |
opcións de abaixo (%{value})
|
|
| 1151 | 1151 |
error_can_not_read_import_file: Aconteceu un erro lendo o ficheiro a importar |
| 1152 | 1152 |
permission_import_issues: Importar peticións |
| 1153 | 1153 |
label_import_issues: Importar peticións |
| config/locales/he.yml | ||
|---|---|---|
| 1144 | 1144 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1145 | 1145 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1146 | 1146 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1147 |
settings below |
|
| 1147 |
settings below (%{value})
|
|
| 1148 | 1148 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1149 | 1149 |
permission_import_issues: Import issues |
| 1150 | 1150 |
label_import_issues: Import issues |
| config/locales/hr.yml | ||
|---|---|---|
| 1136 | 1136 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1137 | 1137 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1138 | 1138 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1139 |
settings below |
|
| 1139 |
settings below (%{value})
|
|
| 1140 | 1140 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1141 | 1141 |
permission_import_issues: Import issues |
| 1142 | 1142 |
label_import_issues: Import issues |
| config/locales/hu.yml | ||
|---|---|---|
| 1158 | 1158 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1159 | 1159 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1160 | 1160 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1161 |
settings below |
|
| 1161 |
settings below (%{value})
|
|
| 1162 | 1162 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1163 | 1163 |
permission_import_issues: Import issues |
| 1164 | 1164 |
label_import_issues: Import issues |
| config/locales/id.yml | ||
|---|---|---|
| 1141 | 1141 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1142 | 1142 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1143 | 1143 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1144 |
settings below |
|
| 1144 |
settings below (%{value})
|
|
| 1145 | 1145 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1146 | 1146 |
permission_import_issues: Import issues |
| 1147 | 1147 |
label_import_issues: Import issues |
| config/locales/it.yml | ||
|---|---|---|
| 1134 | 1134 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1135 | 1135 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1136 | 1136 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1137 |
settings below |
|
| 1137 |
settings below (%{value})
|
|
| 1138 | 1138 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1139 | 1139 |
permission_import_issues: Import issues |
| 1140 | 1140 |
label_import_issues: Importa segnalazioni |
| config/locales/ja.yml | ||
|---|---|---|
| 1162 | 1162 |
notice_import_finished: "%{count}件のデータをすべてインポートしました"
|
| 1163 | 1163 |
notice_import_finished_with_errors: "全%{total}件中%{count}件のデータがインポートできませんでした"
|
| 1164 | 1164 |
error_invalid_file_encoding: このファイルのエンコーディングは正しい%{encoding}ではありません
|
| 1165 |
error_invalid_csv_file_or_settings: このファイルはCSVファイルではないか、以下の設定と一致していません |
|
| 1165 |
error_invalid_csv_file_or_settings: このファイルはCSVファイルではないか、以下の設定と一致していません (%{value})
|
|
| 1166 | 1166 |
error_can_not_read_import_file: インポート元のファイルを読み込み中にエラーが発生しました |
| 1167 | 1167 |
permission_import_issues: チケットのインポート |
| 1168 | 1168 |
label_import_issues: チケットのインポート |
| config/locales/ko.yml | ||
|---|---|---|
| 1180 | 1180 |
notice_import_finished: "총 %{count} 건을 가져왔습니다"
|
| 1181 | 1181 |
notice_import_finished_with_errors: "총 %{total} 건 중 %{count} 건을 가져오지 못했습니다"
|
| 1182 | 1182 |
error_invalid_file_encoding: 이 파일은 정상적인 %{encoding} 파일이 아닙니다.
|
| 1183 |
error_invalid_csv_file_or_settings: 이 파일은 CSV 파일이 아니거나 아래 조건에 맞지 않습니다. |
|
| 1183 |
error_invalid_csv_file_or_settings: 이 파일은 CSV 파일이 아니거나 아래 조건에 맞지 않습니다. (%{value})
|
|
| 1184 | 1184 |
error_can_not_read_import_file: 가져오기 파일을 읽을 수 없습니다. |
| 1185 | 1185 |
permission_import_issues: 일감 가져오기 |
| 1186 | 1186 |
label_import_issues: 일감 가져오기 |
| config/locales/lt.yml | ||
|---|---|---|
| 218 | 218 |
warning_attachments_not_saved: "%{count} byla(-ų) negali būti išsaugota."
|
| 219 | 219 |
error_password_expired: "Jūsų slaptažodžio galiojimo laikas baigėsi arba administratorius reikalauja jūsų jį pasikeisti" |
| 220 | 220 |
error_invalid_file_encoding: "Failas nėra tinkamas %{encoding} koduotės failas"
|
| 221 |
error_invalid_csv_file_or_settings: "Failas nėra CSV failas arba neatitinka žemiau esančių nustatymų" |
|
| 221 |
error_invalid_csv_file_or_settings: "Failas nėra CSV failas arba neatitinka žemiau esančių nustatymų (%{value})"
|
|
| 222 | 222 |
error_can_not_read_import_file: "Iškilo klaida skaitant importuojamą failą" |
| 223 | 223 |
error_attachment_extension_not_allowed: "Priedo plėtinys %{extension} negalimas"
|
| 224 | 224 |
error_ldap_bind_credentials: "Netinkamas LDAP Vartotojo vardas/Slaptažodis" |
| config/locales/lv.yml | ||
|---|---|---|
| 1133 | 1133 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1134 | 1134 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1135 | 1135 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1136 |
settings below |
|
| 1136 |
settings below (%{value})
|
|
| 1137 | 1137 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1138 | 1138 |
permission_import_issues: Import issues |
| 1139 | 1139 |
label_import_issues: Import issues |
| config/locales/mk.yml | ||
|---|---|---|
| 1139 | 1139 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1140 | 1140 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1141 | 1141 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1142 |
settings below |
|
| 1142 |
settings below (%{value})
|
|
| 1143 | 1143 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1144 | 1144 |
permission_import_issues: Import issues |
| 1145 | 1145 |
label_import_issues: Import issues |
| config/locales/mn.yml | ||
|---|---|---|
| 1139 | 1139 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1140 | 1140 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1141 | 1141 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1142 |
settings below |
|
| 1142 |
settings below (%{value})
|
|
| 1143 | 1143 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1144 | 1144 |
permission_import_issues: Import issues |
| 1145 | 1145 |
label_import_issues: Import issues |
| config/locales/nl.yml | ||
|---|---|---|
| 1116 | 1116 |
notice_import_finished: "%{count} items werden geïmporteerd"
|
| 1117 | 1117 |
notice_import_finished_with_errors: "%{count} van in totaal %{total} items kunnen niet geïmporteerd worden"
|
| 1118 | 1118 |
error_invalid_file_encoding: Het bestand is geen geldig geëncodeerd %{encoding} bestand
|
| 1119 |
error_invalid_csv_file_or_settings: Het bestand is geen CSV-bestand of voldoet niet aan onderstaande instellingen |
|
| 1119 |
error_invalid_csv_file_or_settings: Het bestand is geen CSV-bestand of voldoet niet aan onderstaande instellingen (%{value})
|
|
| 1120 | 1120 |
error_can_not_read_import_file: Er is een fout opgetreden bij het inlezen van het bestand |
| 1121 | 1121 |
permission_import_issues: Issues importeren |
| 1122 | 1122 |
label_import_issues: Issues importeren |
| config/locales/no.yml | ||
|---|---|---|
| 1129 | 1129 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1130 | 1130 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1131 | 1131 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1132 |
settings below |
|
| 1132 |
settings below (%{value})
|
|
| 1133 | 1133 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1134 | 1134 |
permission_import_issues: Import issues |
| 1135 | 1135 |
label_import_issues: Import issues |
| config/locales/pl.yml | ||
|---|---|---|
| 1152 | 1152 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1153 | 1153 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1154 | 1154 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1155 |
settings below |
|
| 1155 |
settings below (%{value})
|
|
| 1156 | 1156 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1157 | 1157 |
permission_import_issues: Import issues |
| 1158 | 1158 |
label_import_issues: Import issues |
| config/locales/pt-BR.yml | ||
|---|---|---|
| 1157 | 1157 |
notice_import_finished_with_errors: "%{count} fora de %{total} não puderam ser importados"
|
| 1158 | 1158 |
error_invalid_file_encoding: O arquivo não é válido %{encoding} é a codificação do arquivo
|
| 1159 | 1159 |
error_invalid_csv_file_or_settings: O arquivo não é um arquivo CSV ou não corresponde às |
| 1160 |
definições abaixo |
|
| 1160 |
definições abaixo (%{value})
|
|
| 1161 | 1161 |
error_can_not_read_import_file: Ocorreu um erro ao ler o arquivo para importação |
| 1162 | 1162 |
permission_import_issues: Importar tarefas |
| 1163 | 1163 |
label_import_issues: Importar tarefas |
| config/locales/pt.yml | ||
|---|---|---|
| 1139 | 1139 |
notice_import_finished: "%{count} registos foram importados"
|
| 1140 | 1140 |
notice_import_finished_with_errors: "%{count} de %{total} registos não poderam ser importados"
|
| 1141 | 1141 |
error_invalid_file_encoding: 'O ficheiro não possui a codificação correcta: {encoding}'
|
| 1142 |
error_invalid_csv_file_or_settings: O ficheiro não é um ficheiro CSV ou não respeita as definições abaixo |
|
| 1142 |
error_invalid_csv_file_or_settings: O ficheiro não é um ficheiro CSV ou não respeita as definições abaixo (%{value})
|
|
| 1143 | 1143 |
error_can_not_read_import_file: Ocorreu um erro ao ler o ficheiro a importar |
| 1144 | 1144 |
permission_import_issues: Importar tarefas |
| 1145 | 1145 |
label_import_issues: Importar tarefas |
| config/locales/ro.yml | ||
|---|---|---|
| 1134 | 1134 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1135 | 1135 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1136 | 1136 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1137 |
settings below |
|
| 1137 |
settings below (%{value})
|
|
| 1138 | 1138 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1139 | 1139 |
permission_import_issues: Import issues |
| 1140 | 1140 |
label_import_issues: Import issues |
| config/locales/ru.yml | ||
|---|---|---|
| 1238 | 1238 |
notice_import_finished: "%{count} элемент(а, ов) были импортированы"
|
| 1239 | 1239 |
notice_import_finished_with_errors: "%{count} из %{total} элемент(а, ов) не могут быть импортированы"
|
| 1240 | 1240 |
error_invalid_file_encoding: Кодировка файла не соответствует выбранной %{encoding}
|
| 1241 |
error_invalid_csv_file_or_settings: Файл не является файлом CSV или не соответствует представленным настройкам |
|
| 1241 |
error_invalid_csv_file_or_settings: Файл не является файлом CSV или не соответствует представленным настройкам (%{value})
|
|
| 1242 | 1242 |
error_can_not_read_import_file: Во время чтения файла для импорта произошла ошибка |
| 1243 | 1243 |
permission_import_issues: Импорт задач |
| 1244 | 1244 |
label_import_issues: Импорт задач |
| config/locales/sk.yml | ||
|---|---|---|
| 1128 | 1128 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1129 | 1129 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1130 | 1130 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1131 |
settings below |
|
| 1131 |
settings below (%{value})
|
|
| 1132 | 1132 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1133 | 1133 |
permission_import_issues: Import issues |
| 1134 | 1134 |
label_import_issues: Import issues |
| config/locales/sl.yml | ||
|---|---|---|
| 1139 | 1139 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1140 | 1140 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1141 | 1141 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1142 |
settings below |
|
| 1142 |
settings below (%{value})
|
|
| 1143 | 1143 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1144 | 1144 |
permission_import_issues: Import issues |
| 1145 | 1145 |
label_import_issues: Import issues |
| config/locales/sq.yml | ||
|---|---|---|
| 1135 | 1135 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1136 | 1136 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1137 | 1137 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1138 |
settings below |
|
| 1138 |
settings below (%{value})
|
|
| 1139 | 1139 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1140 | 1140 |
permission_import_issues: Import issues |
| 1141 | 1141 |
label_import_issues: Import issues |
| config/locales/sr-YU.yml | ||
|---|---|---|
| 1141 | 1141 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1142 | 1142 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1143 | 1143 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1144 |
settings below |
|
| 1144 |
settings below (%{value})
|
|
| 1145 | 1145 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1146 | 1146 |
permission_import_issues: Import issues |
| 1147 | 1147 |
label_import_issues: Import issues |
| config/locales/sr.yml | ||
|---|---|---|
| 1140 | 1140 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1141 | 1141 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1142 | 1142 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1143 |
settings below |
|
| 1143 |
settings below (%{value})
|
|
| 1144 | 1144 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1145 | 1145 |
permission_import_issues: Import issues |
| 1146 | 1146 |
label_import_issues: Import issues |
| config/locales/sv.yml | ||
|---|---|---|
| 1172 | 1172 |
notice_import_finished_with_errors: "%{count} av %{total} artiklar kunde inte importeras"
|
| 1173 | 1173 |
error_invalid_file_encoding: Filen är inte en %{encoding}-kodad fil
|
| 1174 | 1174 |
error_invalid_csv_file_or_settings: Filen är inte en CSV-fil eller stämmer inte med |
| 1175 |
inställningarna nedan |
|
| 1175 |
inställningarna nedan (%{value})
|
|
| 1176 | 1176 |
error_can_not_read_import_file: Fel vid läsning av fil att importera |
| 1177 | 1177 |
permission_import_issues: Importera ärenden |
| 1178 | 1178 |
label_import_issues: Importera ärenden |
| config/locales/th.yml | ||
|---|---|---|
| 1135 | 1135 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1136 | 1136 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1137 | 1137 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1138 |
settings below |
|
| 1138 |
settings below (%{value})
|
|
| 1139 | 1139 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1140 | 1140 |
permission_import_issues: Import issues |
| 1141 | 1141 |
label_import_issues: Import issues |
| config/locales/tr.yml | ||
|---|---|---|
| 1146 | 1146 |
notice_import_finished: "%{count} kayıt içeri aktarıldı"
|
| 1147 | 1147 |
notice_import_finished_with_errors: "%{total} kayıttan %{count} tanesi aktarılamadı"
|
| 1148 | 1148 |
error_invalid_file_encoding: Dosyanın karakter kodlaması geçerli bir %{encoding} kodlaması değil.
|
| 1149 |
error_invalid_csv_file_or_settings: Dosya CSV dosyası değil veya aşağıdaki ayarlara uymuyor |
|
| 1149 |
error_invalid_csv_file_or_settings: Dosya CSV dosyası değil veya aşağıdaki ayarlara uymuyor (%{value})
|
|
| 1150 | 1150 |
error_can_not_read_import_file: İçeri aktarılacak dosyayı okurken bir hata oluştu |
| 1151 | 1151 |
permission_import_issues: İşleri içeri aktarma |
| 1152 | 1152 |
label_import_issues: İşleri içeri aktar |
| config/locales/uk.yml | ||
|---|---|---|
| 1140 | 1140 |
notice_import_finished: "%{count} елементи(ів) було імпортовано"
|
| 1141 | 1141 |
notice_import_finished_with_errors: "%{count} з %{total} елементи(ів) неможливо імпортувати"
|
| 1142 | 1142 |
error_invalid_file_encoding: Кодування файлу не відповідає видраній(ому) %{encoding}
|
| 1143 |
error_invalid_csv_file_or_settings: Файл не є файлом CSV або не відповідає вибраним налаштуванням |
|
| 1143 |
error_invalid_csv_file_or_settings: Файл не є файлом CSV або не відповідає вибраним налаштуванням (%{value})
|
|
| 1144 | 1144 |
error_can_not_read_import_file: Під час читання файлу для імпорту виникла помилка |
| 1145 | 1145 |
permission_import_issues: Імпорт задач |
| 1146 | 1146 |
label_import_issues: Імпорт задач |
| config/locales/vi.yml | ||
|---|---|---|
| 1191 | 1191 |
notice_import_finished_with_errors: "%{count} out of %{total} items could not be imported"
|
| 1192 | 1192 |
error_invalid_file_encoding: The file is not a valid %{encoding} encoded file
|
| 1193 | 1193 |
error_invalid_csv_file_or_settings: The file is not a CSV file or does not match the |
| 1194 |
settings below |
|
| 1194 |
settings below (%{value})
|
|
| 1195 | 1195 |
error_can_not_read_import_file: An error occurred while reading the file to import |
| 1196 | 1196 |
permission_import_issues: Import issues |
| 1197 | 1197 |
label_import_issues: Import issues |
| config/locales/zh-TW.yml | ||
|---|---|---|
| 298 | 298 |
warning_attachments_not_saved: "%{count} 個附加檔案無法被儲存。"
|
| 299 | 299 |
error_password_expired: "您的密碼已經過期或是管理員要求您變更密碼." |
| 300 | 300 |
error_invalid_file_encoding: "這個檔案不是一個有效的 %{encoding} 編碼檔案"
|
| 301 |
error_invalid_csv_file_or_settings: "這個檔案不是一個 CSV 檔案,或是未符合下面所列之設定值" |
|
| 301 |
error_invalid_csv_file_or_settings: "這個檔案不是一個 CSV 檔案,或是未符合下面所列之設定值 (%{value})"
|
|
| 302 | 302 |
error_can_not_read_import_file: "讀取匯入檔案時發生錯誤" |
| 303 | 303 |
error_attachment_extension_not_allowed: "附件之附檔名不允許使用 %{extension}"
|
| 304 | 304 |
error_ldap_bind_credentials: "無效的 LDAP 帳號/密碼" |
| config/locales/zh.yml | ||
|---|---|---|
| 1135 | 1135 |
notice_import_finished: 成功导入 %{count} 个项目
|
| 1136 | 1136 |
notice_import_finished_with_errors: 有 %{count} 个项目无法导入(共计 %{total} 个)
|
| 1137 | 1137 |
error_invalid_file_encoding: 这不是一个有效的 %{encoding} 编码文件
|
| 1138 |
error_invalid_csv_file_or_settings: 这不是一个CSV文件或者不符合以下设置 |
|
| 1138 |
error_invalid_csv_file_or_settings: 这不是一个CSV文件或者不符合以下设置 (%{value})
|
|
| 1139 | 1139 |
error_can_not_read_import_file: 读取导入文件时发生错误 |
| 1140 | 1140 |
permission_import_issues: 问题导入 |
| 1141 | 1141 |
label_import_issues: 问题导入 |
| test/fixtures/files/unclosed_quoted_field.csv | ||
|---|---|---|
| 1 |
subject;description |
|
| 2 |
foo;"Unclosed quoted field |
|
| test/functional/imports_controller_test.rb | ||
|---|---|---|
| 159 | 159 |
assert_select 'div#flash_error', /not a valid Shift_JIS encoded file/ |
| 160 | 160 |
end |
| 161 | 161 | |
| 162 |
def test_post_settings_with_mailformed_csv_should_display_error |
|
| 163 |
import = generate_import('unclosed_quoted_field.csv')
|
|
| 164 | ||
| 165 |
post( |
|
| 166 |
:settings, |
|
| 167 |
:params => {
|
|
| 168 |
:id => import.to_param, |
|
| 169 |
:import_settings => {
|
|
| 170 |
:separator => ';', |
|
| 171 |
:wrapper => '"', |
|
| 172 |
:encoding => 'US-ASCII' |
|
| 173 |
} |
|
| 174 |
} |
|
| 175 |
) |
|
| 176 |
assert_response 200 |
|
| 177 |
import.reload |
|
| 178 |
assert_nil import.total_items |
|
| 179 | ||
| 180 |
assert_select 'div#flash_error', /The file is not a CSV file or does not match the settings below \([[:print:]]+\)/ |
|
| 181 |
end |
|
| 182 | ||
| 162 | 183 |
def test_get_mapping_should_display_mapping_form |
| 163 | 184 |
import = generate_import('import_iso8859-1.csv')
|
| 164 | 185 |
import.settings = {'separator' => ";", 'wrapper' => '"', 'encoding' => "ISO-8859-1"}
|
- « Previous
- 1
- 2
- Next »