Il 14/03/2014 15:08, Thomas Tanghus ha scritto:
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
Thank for your response!
I have this app.php files:
./public/appframework/app.php
./public/app.php
./private/appframework/app.php
./private/app.php
Which of them have I to modify ?
Regards
Fiorenza
--
Fiorenza Meini
Spazio Web S.r.l.
V. Dante Alighieri, 10 - 13900 Biella
Tel.: 015.2431982 - 015.9526066
Fax: 015.2522600
Reg. Imprese, CF e P.I.: 02414430021
Iscr. REA: BI - 188936
Iscr. CCIAA: Biella - 188936
Cap. Soc.: 30.000,00 Euro i.v.
_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user