Skip to content

Instantly share code, notes, and snippets.

@torunar
Created January 22, 2016 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torunar/36de5a64b2fd8d7de7ec to your computer and use it in GitHub Desktop.
Save torunar/36de5a64b2fd8d7de7ec to your computer and use it in GitHub Desktop.
diff --git a/app/Tygh/Shippings/Services/Ups.php b/app/Tygh/Shippings/Services/Ups.php
index 435b28b..bd7415e 100644
--- a/app/Tygh/Shippings/Services/Ups.php
+++ b/app/Tygh/Shippings/Services/Ups.php
@@ -79,7 +79,7 @@ class Ups implements IService
$return[$service_code]['delivery_time'] = (string) $shipment->ScheduledDeliveryTime;
} elseif (!empty($shipment->GuaranteedDaysToDelivery)) {
- $return[$service_code]['delivery_time'] = (string) $shipment->GuaranteedDaysToDelivery;
+ $return[$service_code]['delivery_time'] = __("n_days", array($shipment->GuaranteedDaysToDelivery));
}
}
}
diff --git a/var/langs/en/core.po b/var/langs/en/core.po
index 760b97a..baaac96 100644
--- a/var/langs/en/core.po
+++ b/var/langs/en/core.po
@@ -16308,3 +16308,7 @@ msgstr "Failed to match the pinned key specified with CURLOPT_PINNEDPUBLICKEY."
msgctxt "Languages::curl_error_description_curle_ssl_invalidcertstatus"
msgid "Status returned failure when asked with CURLOPT_SSL_VERIFYSTATUS."
msgstr "Status returned failure when asked with CURLOPT_SSL_VERIFYSTATUS."
+
+msgctxt "Languages::n_days"
+msgid "[n] day|[n] days"
+msgstr "[n] day|[n] days"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment