Skip to content

Commit

Permalink
Merge branch '4.4' into 5.4
Browse files Browse the repository at this point in the history
* 4.4:
  Added  Urdu Language Translation in Form Component, Security Core and in Validator Component
  Merge upgrade notes for Serializer component
  Throw LogicException instead of Error when trying to generate logout-URL without request
  • Loading branch information
fabpot committed Oct 23, 2022
2 parents d39de28 + f26878a commit f4d2370
Show file tree
Hide file tree
Showing 5 changed files with 633 additions and 4 deletions.
4 changes: 0 additions & 4 deletions UPGRADE-5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -525,10 +525,6 @@ Serializer
were removed, use the default context instead.
* The `AbstractNormalizer::handleCircularReference()` method has two new `$format` and `$context` arguments.
* Removed support for instantiating a `DataUriNormalizer` with a default MIME type guesser when the `symfony/mime` component isn't installed.

Serializer
----------

* Removed the `XmlEncoder::TYPE_CASE_ATTRIBUTES` constant. Use `XmlEncoder::TYPE_CAST_ATTRIBUTES` instead.

Stopwatch
Expand Down
139 changes: 139 additions & 0 deletions src/Symfony/Component/Form/Resources/translations/validators.ur.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="ur" datatype="plaintext" original="file.ext">
<body>
<trans-unit id="28">
<source>This form should not contain extra fields.</source>
<target>اس فارم میں اضافی فیلڈز نہیں ہونی چاہئیں</target>
</trans-unit>
<trans-unit id="29">
<source>The uploaded file was too large. Please try to upload a smaller file.</source>
<target>اپ لوڈ کردھ فائل بہت بڑی تھی۔ براہ کرم ایک چھوٹی فائل اپ لوڈ کرنے کی کوشش کریں</target>
</trans-unit>
<trans-unit id="30">
<source>The CSRF token is invalid. Please try to resubmit the form.</source>
<target>ٹوکن غلط ہے۔ براۓ کرم فارم کو دوبارہ جمع کرانے کی کوشش کریں CSRF</target>
</trans-unit>
<trans-unit id="99">
<source>This value is not a valid HTML5 color.</source>
<target>ر نگ نھیں ھےHTML یھ ولیو در ست</target>
</trans-unit>
<trans-unit id="100">
<source>Please enter a valid birthdate.</source>
<target>براۓ کرم درست تاریخ پیدائش درج کریں</target>
</trans-unit>
<trans-unit id="101">
<source>The selected choice is invalid.</source>
<target>منتخب کردہ انتخاب غلط ہے</target>
</trans-unit>
<trans-unit id="102">
<source>The collection is invalid.</source>
<target>یھ مجموعہ غلط ہے</target>
</trans-unit>
<trans-unit id="103">
<source>Please select a valid color.</source>
<target>براۓ کرم ایک درست رنگ منتخب کریں</target>
</trans-unit>
<trans-unit id="104">
<source>Please select a valid country.</source>
<target>براۓ کرم ایک درست ملک منتخب کریں</target>
</trans-unit>
<trans-unit id="105">
<source>Please select a valid currency.</source>
<target>براۓ کرم ایک درست کرنسی منتخب کریں</target>
</trans-unit>
<trans-unit id="106">
<source>Please choose a valid date interval.</source>
<target>براۓ کرم ایک درست تاریخی وقفھہ منتخب کریں</target>
</trans-unit>
<trans-unit id="107">
<source>Please enter a valid date and time.</source>
<target>براۓ کرم ایک درست تاریخ اور وقت درج کریں</target>
</trans-unit>
<trans-unit id="108">
<source>Please enter a valid date.</source>
<target>براۓ کرم ایک درست تاریخ درج کریں</target>
</trans-unit>
<trans-unit id="109">
<source>Please select a valid file.</source>
<target>براۓ کرم ایک درست فائل منتخب کریں</target>
</trans-unit>
<trans-unit id="110">
<source>The hidden field is invalid.</source>
<target>پوشیدھہ فیلڈ غلط ہے</target>
</trans-unit>
<trans-unit id="111">
<source>Please enter an integer.</source>
<target>براۓ کرم ایک عدد درج کریں</target>
</trans-unit>
<trans-unit id="112">
<source>Please select a valid language.</source>
<target>براۓ کرم ایک درست زبان منتخب کریں</target>
</trans-unit>
<trans-unit id="113">
<source>Please select a valid locale.</source>
<target>براۓ کرم ایک درست مقام منتخب کریں</target>
</trans-unit>
<trans-unit id="114">
<source>Please enter a valid money amount.</source>
<target>براۓ کرم ایک درست رقم درج کریں</target>
</trans-unit>
<trans-unit id="115">
<source>Please enter a number.</source>
<target>براۓ کرم ایک نمبر درج کریں</target>
</trans-unit>
<trans-unit id="116">
<source>The password is invalid.</source>
<target>پاس ورڈ غلط ہے</target>
</trans-unit>
<trans-unit id="117">
<source>Please enter a percentage value.</source>
<target>براہ کرم فیصد کی ويلو درج کریں</target>
</trans-unit>
<trans-unit id="118">
<source>The values do not match.</source>
<target>ويليوذ ٹھيک نہیں ہیں</target>
</trans-unit>
<trans-unit id="119">
<source>Please enter a valid time.</source>
<target>براۓ کرم ایک درست وقت درج کریں</target>
</trans-unit>
<trans-unit id="120">
<source>Please select a valid timezone.</source>
<target>براۓ کرم ایک درست ٹائم زون منتخب کریں</target>
</trans-unit>
<trans-unit id="121">
<source>Please enter a valid URL.</source>
<target>براۓ کرم ایک درست ادريس درج کریں</target>
</trans-unit>
<trans-unit id="122">
<source>Please enter a valid search term.</source>
<target>براۓ کرم ایک درست ويلو تلاش کيلۓ درج کریں</target>
</trans-unit>
<trans-unit id="123">
<source>Please provide a valid phone number.</source>
<target>براۓ کرم ایک درست فون نمبر فراہم کریں</target>
</trans-unit>
<trans-unit id="124">
<source>The checkbox has an invalid value.</source>
<target>چیک باکس میں ایک غلط ويلو ہے</target>
</trans-unit>
<trans-unit id="125">
<source>Please enter a valid email address.</source>
<target>براۓ مہربانی قابل قبول ای میل ایڈریس لکھیں</target>
</trans-unit>
<trans-unit id="126">
<source>Please select a valid option.</source>
<target>براۓ کرم ایک درست آپشن منتخب کریں</target>
</trans-unit>
<trans-unit id="127">
<source>Please select a valid range.</source>
<target>براۓ کرم ایک درست رینج منتخب کریں</target>
</trans-unit>
<trans-unit id="128">
<source>Please enter a valid week.</source>
<target>براۓ کرم ایک درست ہفتہ درج کریں</target>
</trans-unit>
</body>
</file>
</xliff>
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="ur" datatype="plaintext" original="file.ext">
<body>
<trans-unit id="1">
<source>An authentication exception occurred.</source>
<target>ایک تصدیقي خرابی پیش آگئی ۓ</target>
</trans-unit>
<trans-unit id="2">
<source>Authentication credentials could not be found.</source>
<target>درج کردھ ریکارڈ نہیں مل سکا</target>
</trans-unit>
<trans-unit id="3">
<source>Authentication request could not be processed due to a system problem.</source>
<target>سسٹم کی خرابی کی وجہ سے تصدیق کی درخواست پر کارروائی نہیں ہو سکی</target>
</trans-unit>
<trans-unit id="4">
<source>Invalid credentials.</source>
<target>غلط ڈیٹا</target>
</trans-unit>
<trans-unit id="5">
<source>Cookie has already been used by someone else.</source>
<target>کوکی پہلے ہی کسی اور کے ذریعہ استعمال ہو چکی ہے</target>
</trans-unit>
<trans-unit id="6">
<source>Not privileged to request the resource.</source>
<target>وسائل کی درخواست کرنے کا اختیار نہیں ہے</target>
</trans-unit>
<trans-unit id="7">
<source>Invalid CSRF token.</source>
<target>ٹوکن غلط ہے CSRF</target>
</trans-unit>
<trans-unit id="9">
<source>No authentication provider found to support the authentication token.</source>
<target>تصدیقی ٹوکن کو سپورٹ کرنے کے لیے کوئی تصدیقی کنندہ نہیں ملا</target>
</trans-unit>
<trans-unit id="10">
<source>No session available, it either timed out or cookies are not enabled.</source>
<target>کوئی سیشن دستیاب نہیں ہے، یا تو اس کا وقت ختم ہو گیا ہے یا کوکیز فعال نہیں ہیں</target>
</trans-unit>
<trans-unit id="11">
<source>No token could be found.</source>
<target>کوئی ٹوکن نہیں مل سکا</target>
</trans-unit>
<trans-unit id="12">
<source>Username could not be found.</source>
<target>يوذر نہیں مل سکا</target>
</trans-unit>
<trans-unit id="13">
<source>Account has expired.</source>
<target>اکاؤنٹ کی میعاد ختم ہو گئی ہے</target>
</trans-unit>
<trans-unit id="14">
<source>Credentials have expired.</source>
<target>اسناد کی میعاد ختم ہو چکی ہے</target>
</trans-unit>
<trans-unit id="15">
<source>Account is disabled.</source>
<target>اکاؤنٹ بند کر دیا گیا ہے</target>
</trans-unit>
<trans-unit id="16">
<source>Account is locked.</source>
<target>اکاؤنٹ لاک ہے</target>
</trans-unit>
<trans-unit id="17">
<source>Too many failed login attempts, please try again later.</source>
<target>لاگ ان کی بہت زیادہ ناکام کوششیں ہو چکی ہیں، براۓ کرم بعد میں دوبارہ کوشش کریں</target>
</trans-unit>
<trans-unit id="18">
<source>Invalid or expired login link.</source>
<target>غلط یا ختم شدھ لاگ ان لنک</target>
</trans-unit>
<trans-unit id="19">
<source>Too many failed login attempts, please try again in %minutes% minute.</source>
<target>منٹ باد %minutes% لاگ ان کی بہت زیادہ ناکام کوششیں ہو چکی ہیں، براۓ کرم دوبارھ کوشيش کريں </target>
</trans-unit>
<trans-unit id="20">
<source>Too many failed login attempts, please try again in %minutes% minutes.</source>
<target>منٹ باد %minutes% لاگ ان کی بہت زیادہ ناکام کوششیں ہو چکی ہیں، براۓ کرم دوبارھ کوشيش کريں </target>
</trans-unit>
</body>
</file>
</xliff>
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ private function generateLogoutUrl(?string $key, int $referenceType): string

$request = $this->requestStack->getCurrentRequest();

if (!$request) {
throw new \LogicException('Unable to generate the logout URL without a Request.');
}

$url = UrlGeneratorInterface::ABSOLUTE_URL === $referenceType ? $request->getUriForPath($logoutPath) : $request->getBaseUrl().$logoutPath;

if (!empty($parameters)) {
Expand Down

0 comments on commit f4d2370

Please sign in to comment.