summaryrefslogtreecommitdiffstats
path: root/apps/contacts/templates
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-01-11 20:07:15 +0100
committerThomas Tanghus <thomas@tanghus.net>2012-01-11 20:07:15 +0100
commit237ba65a20edfbd346405e03583a96808602a2ca (patch)
treee101b9a441ac0e4704affabb3293da897c07c11d /apps/contacts/templates
parenteae3e134ff9005e50ea4e611b2c2daba94ad49ea (diff)
downloadnextcloud-server-237ba65a20edfbd346405e03583a96808602a2ca.tar.gz
nextcloud-server-237ba65a20edfbd346405e03583a96808602a2ca.zip
Localizin strings and adding error checking.
Diffstat (limited to 'apps/contacts/templates')
-rw-r--r--apps/contacts/templates/index.php2
-rw-r--r--apps/contacts/templates/part.addcardform.php10
-rw-r--r--apps/contacts/templates/part.chooseaddressbook.rowfields.php2
-rw-r--r--apps/contacts/templates/part.editaddressbook.php2
-rw-r--r--apps/contacts/templates/settings.php4
5 files changed, 7 insertions, 13 deletions
diff --git a/apps/contacts/templates/index.php b/apps/contacts/templates/index.php
index d548f17172d..5d9c312712f 100644
--- a/apps/contacts/templates/index.php
+++ b/apps/contacts/templates/index.php
@@ -4,7 +4,7 @@
<div id="controls">
<form>
<input type="button" id="contacts_newcontact" value="<?php echo $l->t('Add Contact'); ?>">
- <input type="button" id="chooseaddressbook" value="<?php echo $l->t('Address Books'); ?>">
+ <input type="button" id="chooseaddressbook" value="<?php echo $l->t('Addressbooks'); ?>">
</form>
</div>
<div id="leftcontent" class="leftcontent">
diff --git a/apps/contacts/templates/part.addcardform.php b/apps/contacts/templates/part.addcardform.php
index 510096a9e81..53b32188ddf 100644
--- a/apps/contacts/templates/part.addcardform.php
+++ b/apps/contacts/templates/part.addcardform.php
@@ -5,7 +5,7 @@
<fieldset class="inputs">
<dl class="form">
<dt>
- <label class="label" for="id"><?php echo $l->t('Group'); ?></label>
+ <label class="label" for="id"><?php echo $l->t('Addressbook'); ?></label>
</dt>
<dd>
<select name="id" size="1">
@@ -106,11 +106,5 @@
</dd>
</dl>
</fieldset>
- <fieldset class="buttons">
- <ol>
- <li class="commit button">
- <input class="create" type="submit" name="submit" value="<?php echo $l->t('Create Contact'); ?>">
- </li>
- </ol>
- </fieldset>
+ <input class="create" type="submit" name="submit" value="<?php echo $l->t('Create Contact'); ?>">
</form>
diff --git a/apps/contacts/templates/part.chooseaddressbook.rowfields.php b/apps/contacts/templates/part.chooseaddressbook.rowfields.php
index f612e39ecaf..0cbfe2bf803 100644
--- a/apps/contacts/templates/part.chooseaddressbook.rowfields.php
+++ b/apps/contacts/templates/part.chooseaddressbook.rowfields.php
@@ -1,5 +1,5 @@
<?php
-
+ // FIXME: Make this readable.
echo "<td width=\"20px\"><input id=\"active_" . $_['addressbook']["id"] . "\" type=\"checkbox\" onClick=\"Contacts.UI.Addressbooks.activation(this, " . $_['addressbook']["id"] . ")\"" . (OC_Contacts_Addressbook::isActive($_['addressbook']["id"]) ? ' checked="checked"' : '') . "></td>";
echo "<td><label for=\"active_" . $_['addressbook']["id"] . "\">" . $_['addressbook']["displayname"] . "</label></td>";
echo "<td width=\"20px\"><a href=\"#\" onclick=\"Contacts.UI.showCardDAVUrl('" . OC_User::getUser() . "', '" . $_['addressbook']["uri"] . "');\" title=\"" . $l->t("CardDav Link") . "\" class=\"action\"><img class=\"svg action\" src=\"../../core/img/actions/public.svg\"></a></td><td width=\"20px\"><a href=\"export.php?bookid=" . $_['addressbook']["id"] . "\" title=\"" . $l->t("Download") . "\" class=\"action\"><img class=\"svg action\" src=\"../../core/img/actions/download.svg\"></a></td><td width=\"20px\"><a href=\"#\" title=\"" . $l->t("Edit") . "\" class=\"action\" onclick=\"Contacts.UI.Addressbooks.editAddressbook(this, " . $_['addressbook']["id"] . ");\"><img class=\"svg action\" src=\"../../core/img/actions/rename.svg\"></a></td><td width=\"20px\"><a href=\"#\" onclick=\"Contacts.UI.Addressbooks.deleteAddressbook('" . $_['addressbook']["id"] . "');\" title=\"" . $l->t("Delete") . "\" class=\"action\"><img class=\"svg action\" src=\"../../core/img/actions/delete.svg\"></a></td>";
diff --git a/apps/contacts/templates/part.editaddressbook.php b/apps/contacts/templates/part.editaddressbook.php
index cb1371731b1..48fe5c3b378 100644
--- a/apps/contacts/templates/part.editaddressbook.php
+++ b/apps/contacts/templates/part.editaddressbook.php
@@ -6,7 +6,7 @@
* See the COPYING-README file.
*/
?>
-<td id="<?php echo $_['new'] ? 'new' : 'edit' ?>addressbook_dialog" title="<?php echo $_['new'] ? $l->t("New Address Book") : $l->t("Edit Address Book"); ?>" colspan="6">
+<td id="<?php echo $_['new'] ? 'new' : 'edit' ?>addressbook_dialog" title="<?php echo $_['new'] ? $l->t("New Addressbook") : $l->t("Edit Addressbook"); ?>" colspan="6">
<table width="100%" style="border: 0;">
<tr>
<th><?php echo $l->t('Displayname') ?></th>
diff --git a/apps/contacts/templates/settings.php b/apps/contacts/templates/settings.php
index d9130625200..c647e44c25b 100644
--- a/apps/contacts/templates/settings.php
+++ b/apps/contacts/templates/settings.php
@@ -1,7 +1,7 @@
<form id="mediaform">
<fieldset class="personalblock">
- <strong>Contacts</strong><br />
- CardDAV syncing address:
+ <strong><?php echo $l->t('Contacts'); ?></strong><br />
+ <?php echo $l->t('CardDAV syncing address:'); ?>
<?php echo OC_Helper::linkTo('apps/contacts', 'carddav.php', null, true); ?><br />
</fieldset>
</form>