mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
* Calendar - Allow specifying the charset when importing ical
This commit is contained in:
parent
6ef91a5696
commit
0c5d8a5784
@ -346,7 +346,7 @@ class addressbook_import_vcard implements importexport_iface_import_plugin {
|
|||||||
'name' => 'addressbook.import_vcard',
|
'name' => 'addressbook.import_vcard',
|
||||||
'content' => array(
|
'content' => array(
|
||||||
'file_type' => 'vcard,ical,vcf',
|
'file_type' => 'vcard,ical,vcf',
|
||||||
'vcard_charset' => $GLOBALS['egw_info']['user']['preferences']['addressbook']['vcard_charset']
|
'charset' => $GLOBALS['egw_info']['user']['preferences']['addressbook']['vcard_charset']
|
||||||
),
|
),
|
||||||
'sel_options' => array(
|
'sel_options' => array(
|
||||||
'charset' => Api\Translation::get_installed_charsets()
|
'charset' => Api\Translation::get_installed_charsets()
|
||||||
|
@ -279,7 +279,17 @@ class calendar_import_ical implements importexport_iface_import_plugin {
|
|||||||
* )
|
* )
|
||||||
*/
|
*/
|
||||||
public function get_options_etpl() {
|
public function get_options_etpl() {
|
||||||
// lets do it!
|
return array(
|
||||||
|
'name' => 'addressbook.import_vcard',
|
||||||
|
'content' => array(
|
||||||
|
'file_type' => 'ical',
|
||||||
|
'charset' => $GLOBALS['egw_info']['user']['preferences']['common']['csv_charset']
|
||||||
|
),
|
||||||
|
'sel_options' => array(
|
||||||
|
'charset' => Api\Translation::get_installed_charsets()
|
||||||
|
),
|
||||||
|
'preserv' => array()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
24
calendar/templates/default/import_ical.xet
Normal file
24
calendar/templates/default/import_ical.xet
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE overlay PUBLIC "-//EGroupware GmbH//eTemplate 2//EN" "http://www.egroupware.org/etemplate2.dtd">
|
||||||
|
<!-- $Id$ -->
|
||||||
|
<overlay>
|
||||||
|
<template id="calendar.import_ical" template="" lang="" group="0" version="1.9.001">
|
||||||
|
<grid>
|
||||||
|
<columns>
|
||||||
|
<column/>
|
||||||
|
<column width="180px"/>
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<description value="Charset of file"/>
|
||||||
|
<menulist class="width180">
|
||||||
|
<menupopup id="charset" no_lang="1"/>
|
||||||
|
</menulist>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<styles>
|
||||||
|
.width180 select { width:150px;}
|
||||||
|
</styles>
|
||||||
|
</template>
|
||||||
|
</overlay>
|
Loading…
Reference in New Issue
Block a user