mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
* Addressbook - Allow specifying the charset when importing vcard
This commit is contained in:
parent
cde347a463
commit
6ef91a5696
@ -76,9 +76,9 @@ class addressbook_import_vcard implements importexport_iface_import_plugin {
|
||||
protected $errors = array();
|
||||
|
||||
/**
|
||||
* List of actions, and how many times that action was taken
|
||||
*/
|
||||
protected $results = array();
|
||||
* List of actions, and how many times that action was taken
|
||||
*/
|
||||
protected $results = array();
|
||||
|
||||
/**
|
||||
* imports entries according to given definition object.
|
||||
@ -342,7 +342,17 @@ class addressbook_import_vcard implements importexport_iface_import_plugin {
|
||||
* )
|
||||
*/
|
||||
public function get_options_etpl() {
|
||||
// lets do it!
|
||||
return array(
|
||||
'name' => 'addressbook.import_vcard',
|
||||
'content' => array(
|
||||
'file_type' => 'vcard,ical,vcf',
|
||||
'vcard_charset' => $GLOBALS['egw_info']['user']['preferences']['addressbook']['vcard_charset']
|
||||
),
|
||||
'sel_options' => array(
|
||||
'charset' => Api\Translation::get_installed_charsets()
|
||||
),
|
||||
'preserv' => array()
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
24
addressbook/templates/default/import_vcard.xet
Normal file
24
addressbook/templates/default/import_vcard.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="addressbook.import_vcard" 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