Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ocsms.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Ross <greg@toolstack.com>2018-07-09 21:49:38 +0300
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-07-09 21:49:38 +0300
commit44d7736e67c0541f518320bb127d4063c7d5e4af (patch)
tree3440b14ee5c4a0ed403a97a11eb6d9f93973e598 /templates
parent9b3d3808bf2b7e5a360c51da1c36d2102fe69e22 (diff)
Minor text cleanups and translation support. (#259)
* Minor text cleanups. * Add support for translation of strings. And one additional minor tweak to a string.
Diffstat (limited to 'templates')
-rw-r--r--templates/main.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/templates/main.php b/templates/main.php
index c66223b..04587e0 100644
--- a/templates/main.php
+++ b/templates/main.php
@@ -26,35 +26,35 @@ use \OCA\OcSms\Lib\CountryCodes;
</button>
</div>
<div id="app-settings-content">
- <div><label for="setting_msg_per_page">Max messages on tab loading</label>
+ <div><label for="setting_msg_per_page">Max messages to load per conversation</label>
<input type="number" min="10" max="10000" name="setting_msg_per_page" ng-model="vsettings.messageLimit" ng-change="vsettings.sendMessageLimit()" to-int />
- <span class="label-invalid-input" ng-if="vsettings.messageLimit == null || vsettings.messageLimit == undefined">Invalid message limit</span>
+ <span class="label-invalid-input" ng-if="vsettings.messageLimit == null || vsettings.messageLimit == undefined"><?php p($l->t('Invalid message limit'));?></span>
</div>
- <div><label for="intl_phone">Country code</label>
+ <div><label for="intl_phone"><?php p($l->t('Default country code'));?></label>
<select name="intl_phone" id="sel_intl_phone">
<?php foreach (CountryCodes::$codes as $code => $cval) { ?>
- <option><?php p($code); ?></option>
+ <option><?php p($l->t($code)); ?></option>
<?php } ?>
</select>
<button class="new-button primary icon-checkmark-white" ng-click="vsettings.sendCountry();"></button>
</div>
<div>
- <label for="setting_contact_order">Contact ordering</label>
+ <label for="setting_contact_order"><?php p($l->t('Contact ordering'));?></label>
<select name="setting_contact_order" ng-model="vsettings.contactOrderBy" ng-change="vsettings.sendContactOrder()">
- <option value="lastmsg">Last message</option>
- <option value="label">Label</option>
+ <option value="lastmsg"><?php p($l->t('Last message'));?></option>
+ <option value="label"><?php p($l->t('Label'));?></option>
</select>
- <label for "setting_contact_order_reverse">Reverse ?</label>
+ <label for "setting_contact_order_reverse"><?php p($l->t('Reverse ?'));?></label>
<input type="checkbox" ng-model="vsettings.reverseContactOrder" ng-change="vsettings.sendContactOrder()" />
</div>
<div>
- <label for"setting_notif">Notification settings</label>
+ <label for"setting_notif"><?php p($l->t('Notification settings'));?></label>
<select name="setting_notif" ng-model="vsetting.enableNotifications" ng-change="vsettings.sendNotificationFlag()">
- <option value="1">Enable</option>
- <option value="0">Disable</option>
+ <option value="1"><?php p($l->t('Enable'));?></option>
+ <option value="0"><?php p($l->t('Disable'));?></option>
</select>
</div>
</div> <!-- app-settings-content -->
@@ -72,7 +72,7 @@ use \OCA\OcSms\Lib\CountryCodes;
<div id="ocsms-contact-details">
<div id="ocsms-phone-label">{{ selectedContact.label }} </div>
<div id="ocsms-phone-opt-number">{{ selectedContact.opt_numbers }}</div>
- <div id="ocsms-phone-msg-nb">{{ messages.length }} message(s) shown. {{ totalMessageCount }} message(s) stored in database.</div>
+ <div id="ocsms-phone-msg-nb"><?php p($l->t('%s message(s) shown of %s message(s) stored in database.', array( '{{ messages.length }}', '{{ totalMessageCount }}')));?></div>
</div>
<div id="ocsms-contact-actions">
<div id="ocsms-conversation-removal" class="icon-delete icon-delete-white svn delete action" ng-click="removeConversation();"></div>
@@ -80,7 +80,7 @@ use \OCA\OcSms\Lib\CountryCodes;
</div>
<div id="app-content-wrapper" ng-show="!isConvLoading">
- <div ng-show="messages.length == 0" id="ocsms-empty-conversation">Please choose a conversation on the left menu</div>
+ <div ng-show="messages.length == 0" id="ocsms-empty-conversation"><?php p($l->t('Please select a conversation from the list to load it.'));?></div>
<div ng-show="messages.length > 0" class="ocsms-messages-container">
<div ng-repeat="message in messages | orderBy:'date'">
<div class="msg-{{ message.type }}">