]> git.mxchange.org Git - friendica.git/commitdiff
Review updates
authorAdam Magness <adam.magness@gmail.com>
Wed, 24 Jan 2018 03:38:47 +0000 (22:38 -0500)
committerAdam Magness <adam.magness@gmail.com>
Wed, 24 Jan 2018 03:38:47 +0000 (22:38 -0500)
improve a t() call and move some to tt()

include/acl_selectors.php
include/api.php

index 67d10ef38cf3c4238efd93f3b3dd883ed651fd88..599b543ad0ee9fe76efccd897307c5a32a53d6a6 100644 (file)
@@ -357,7 +357,7 @@ function populate_acl($user = null, $show_jotnets = false) {
 
                        Addon::callHooks('jot_networks', $jotnets);
                } else {
-                       $jotnets .= L10n::t('Connectors disabled, since "%s" is enabled.', 'Hide your profile details from unknown viewers?');
+                       $jotnets .= L10n::t('Connectors disabled, since "%s" is enabled.', L10n::t('Hide your profile details from unknown viewers?'));
                }
        }
 
index b8f79ce6f66756403aefac631ae1e9ff4ba55390..722c93c87c7214ccd775dc5c45084dd7416345db 100644 (file)
@@ -1178,7 +1178,7 @@ function api_statuses_update($type)
                        if ($posts_day > $throttle_day) {
                                logger('Daily posting limit reached for user '.api_user(), LOGGER_DEBUG);
                                // die(api_error($type, L10n::t("Daily posting limit of %d posts reached. The post was rejected.", $throttle_day));
-                               throw new TooManyRequestsException(L10n::t("Daily posting limit of %d posts reached. The post was rejected.", $throttle_day));
+                               throw new TooManyRequestsException(L10n::tt("Daily posting limit of %d post reached. The post was rejected.", "Daily posting limit of %d posts reached. The post was rejected.", $throttle_day));
                        }
                }
 
@@ -1202,7 +1202,7 @@ function api_statuses_update($type)
                        if ($posts_week > $throttle_week) {
                                logger('Weekly posting limit reached for user '.api_user(), LOGGER_DEBUG);
                                // die(api_error($type, L10n::t("Weekly posting limit of %d posts reached. The post was rejected.", $throttle_week)));
-                               throw new TooManyRequestsException(L10n::t("Weekly posting limit of %d posts reached. The post was rejected.", $throttle_week));
+                               throw new TooManyRequestsException(L10n::tt("Weekly posting limit of %d post reached. The post was rejected.", "Weekly posting limit of %d posts reached. The post was rejected.", $throttle_week));
                        }
                }
 
@@ -1226,7 +1226,7 @@ function api_statuses_update($type)
                        if ($posts_month > $throttle_month) {
                                logger('Monthly posting limit reached for user '.api_user(), LOGGER_DEBUG);
                                // die(api_error($type, L10n::t("Monthly posting limit of %d posts reached. The post was rejected.", $throttle_month));
-                               throw new TooManyRequestsException(L10n::t("Monthly posting limit of %d posts reached. The post was rejected.", $throttle_month));
+                               throw new TooManyRequestsException(L10n::t("Weekly posting limit of %d post reached. The post was rejected.", "Monthly posting limit of %d posts reached. The post was rejected.", $throttle_month));
                        }
                }