summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-05-05 13:11:34 +0200
committerAleksander Machniak <alec@alec.pl>2013-05-05 13:12:17 +0200
commitac2df4e65814cc1c8d05bba19717b6a3099b657a (patch)
treed14c94521a21eadc9261e5b6890def06efe3a571 /program/lib
parent13a77deef43e179aa0521652d5d31ffc15144978 (diff)
Fix csv import from Thunderbird with French localization (#1489059)
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/Roundcube/rcube_csv2vcard.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_csv2vcard.php b/program/lib/Roundcube/rcube_csv2vcard.php
index 0d3276b84..506a4b740 100644
--- a/program/lib/Roundcube/rcube_csv2vcard.php
+++ b/program/lib/Roundcube/rcube_csv2vcard.php
@@ -353,6 +353,12 @@ class rcube_csv2vcard
if (!empty($this->local_label_map)) {
for ($i = 0; $i < $size; $i++) {
$label = $this->local_label_map[$elements[$i]];
+
+ // special localization label
+ if ($label && $label[0] == '_') {
+ $label = substr($label, 1);
+ }
+
if ($label && !empty($this->csv2vcard_map[$label])) {
$map2[$i] = $this->csv2vcard_map[$label];
}