On Friday 14 March 2014 11:18 Fiorenza Meini wrote:
> Hi there,
> where can I see in the source code to have the name of default Address
> Book fixed to "Contacts" instead of the one which reflect the
> localization (first automatically created during first login) ?
> I started from an installation of Owncloud version 5.x, then upgraded to
> Owncloud version 6.x. Now I see that there are users that have
> "Contacts", other "Contatti". I need that all have the same, because I
> have a webmail installation where it isn't possible to follow the
> localization of ownlocloud: the address book synchronization doesn't
> work for all in this way, because it work or on "Contatti" or "Contacts".
Currently the translation is done in App.php[1], but that is likely to
change in ownCloud 7, as it's kind of a hack.
Change
$id = $backend->createAddressBook(array('displayname' =>
self::$l10n->t('Contacts')));
to
$id = $backend->createAddressBook(array('displayname' => 'Contacts'));
May I ask how you synchronize the address books? It shouldn't be dependant
on the display name, as the user can change that, but they cannot change
the ID or URI.
[1] https://github.com/owncloud/contacts/blob/stable6/lib/app.php#L103
--
Med venlig hilsen / Best Regards
Thomas Tanghus
_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user