Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pl]: Missing keys + stylistical fixes, better comprehension #4761

Merged
merged 5 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions locales/pl/php-inline.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"alpha_num": "Pole może zawierać jedynie litery i cyfry.",
"array": "Pole musi być tablicą.",
"ascii": "To pole może zawierać tylko jednobajtowe znaki alfanumeryczne i symbole.",
"attached": "Pole jest już dołączone.",
"attached": "Pole jest już załączone.",
"before": "Pole musi być datą wcześniejszą od :date.",
"before_or_equal": "Pole musi być datą nie późniejszą niż :date.",
"between.array": "Pole musi składać się z :min - :max elementów.",
Expand All @@ -18,7 +18,7 @@
"between.string": "Pole musi zawierać się w granicach :min - :max znaków.",
"boolean": "Pole musi mieć wartość logiczną prawda albo fałsz.",
"can": "Pole zawiera nieautoryzowaną wartość.",
"confirmed": "Potwierdzenie pola nie zgadza się.",
"confirmed": "Potwierdzenie nie zgadza się z polem.",
"date": "Pole nie jest prawidłową datą.",
"date_equals": "Pole musi być datą równą :date.",
"date_format": "Pole nie jest w formacie :format.",
Expand All @@ -38,13 +38,13 @@
"exists": "Zaznaczona wartość jest nieprawidłowa.",
"extensions": "To pole musi mieć jedno z następujących rozszerzeń: :values.",
"file": "Pole musi być plikiem.",
"filled": "Pole nie może być puste.",
"filled": "Pole musi być wypełnione.",
"gt.array": "Pole musi mieć więcej niż :value elementów.",
"gt.file": "Pole musi być większe niż :value kilobajtów.",
"gt.numeric": "Pole musi być większe niż :value.",
"gt.string": "Pole musi być dłuższe niż :value znaków.",
"gte.array": "Pole musi mieć :value lub więcej elementów.",
"gte.file": "Pole musi być większe lub równe :value kilobajtów.",
"gte.file": "Pole musi mieć rozmiar co najmniej :value kilobajtów.",
"gte.numeric": "Pole musi być większe lub równe :value.",
"gte.string": "Pole musi być dłuższe lub równe :value znaków.",
"hex_color": "Pole musi mieć podany prawidłowy kolor w formacie szesnastkowym.",
Expand Down Expand Up @@ -82,24 +82,24 @@
"missing": "Tego pola musi brakować.",
"missing_if": "To pole musi być pominięte, gdy :other to :value.",
"missing_unless": "To pole musi być pominięte, chyba że :other to :value.",
"missing_with": "To pole musi być niedostępne, gdy występuje :values.",
"missing_with_all": "To pole musi być niedostępne, gdy jest ich :values.",
"missing_with": "To pole musi być niedostępne, gdy występuje wartość dla :values.",
"missing_with_all": "To pole musi być niedostępne, gdy jest występują wartości dla :values.",
"multiple_of": "Pole musi być wielokrotnością wartości :value",
"not_in": "Zaznaczona wartość jest nieprawidłowa.",
"not_in": "Wybrana wartość jest niedozwolona.",
"not_regex": "Format pola jest nieprawidłowy.",
"numeric": "Pole musi być liczbą.",
"password.letters": "To pole musi zawierać przynajmniej jedną literę.",
"password.mixed": "To pole musi zawierać co najmniej jedną wielką i jedną małą literę.",
"password.numbers": "To pole musi zawierać co najmniej jedną cyfrę.",
"password.symbols": "To pole musi zawierać przynajmniej jeden symbol.",
"password.uncompromised": "Podane pole pojawiło się w wycieku danych. Proszę wybrać inną wartość pola.",
"password.uncompromised": "Pole :attribute pojawiło się w wycieku danych. Należy wybrać inną wartość.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inline translation must not contain a reference to the attribute name.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

found it, pushing the fix, sorry

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can assume it should be like this here (wrote it by analogy with other fields):

Suggested change
"password.uncompromised": "Pole :attribute pojawiło się w wycieku danych. Należy wybrać inną wartość.",
"password.uncompromised": "To pole musi pojawiło się w wycieku danych. Należy wybrać inną wartość.",

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed, hope all works now, sorry again, fat fingers

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem 👌

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrey-helldar I think now we have a different problem
https://github.com/Laravel-Lang/lang/actions/runs/8966720071/job/24622816598#step:5:35

1) Tests\PluginTest::testInline
The locales/pl/json-inline.json file must not contain the value: :attribute
Podane pole :attribute pojawiło się w wycieku danych. Wybierz inną wartość pola :attribute.
Failed asserting that true is false.

"The given :attribute has appeared in a data leak. Please choose a different :attribute.": "Podane pole :attribute pojawiło się w wycieku danych. Wybierz inną wartość pola :attribute."

This test assertion is obviously wrong.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the test is correct. The inline translation file must not contain a reference to the attribute name.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, you're right, this is the original EN version:

    "The given :attribute has appeared in a data leak. Please choose a different :attribute.": "The given field has appeared in a data leak. Please choose a different field."

I was a bit confused about the :attribute key here, weird.
fix pushed, again

"present": "Pole musi być obecne.",
"present_if": "Pole musi być obecne jeżeli :other ma wartość :value.",
"present_unless": "Pole musi być obecne, chyba że :other ma wartość :value.",
"present_with": "Pole musi być obecne kiedy :values jest podany/a..",
"present_with": "Pole musi być obecne, gdy podane są :values.",
"present_with_all": "Pole musi być obecne kiedy :values są podane.",
"prohibited": "To pole jest zabronione.",
"prohibited_if": "To pole jest zabronione, gdy :other to :value.",
"prohibited_if": "Pole jest niedozwolone, gdy :other to :value.",
"prohibited_unless": "To pole jest zabronione, chyba że :other jest w :values.",
"prohibits": "Pole zabrania obecności :other.",
"regex": "Format pola jest nieprawidłowy.",
Expand All @@ -108,7 +108,7 @@
"required_array_keys": "Pole musi zawierać wartości: :values.",
"required_if": "Pole jest wymagane gdy :other ma wartość :value.",
"required_if_accepted": "To pole jest wymagane gdy :other jest zaakceptowane.",
"required_if_declined": "This field is required when :other is declined.",
"required_if_declined": "Pole jest wymagane, gdy :other zostanie odrzucone.",
"required_unless": "Pole jest wymagane jeżeli :other nie znajduje się w :values.",
"required_with": "Pole jest wymagane gdy :values jest obecny.",
"required_with_all": "Pole jest wymagane gdy wszystkie :values są obecne.",
Expand Down
22 changes: 11 additions & 11 deletions locales/pl/php.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"alpha_num": "Pole :attribute może zawierać jedynie litery i cyfry.",
"array": "Pole :attribute musi być tablicą.",
"ascii": "Pole :attribute może zawierać tylko jednobajtowe znaki alfanumeryczne i symbole.",
"attached": "Pole :attribute jest już dołączony.",
"attached": "Pole :attribute jest już dołączone.",
"before": "Pole :attribute musi być datą wcześniejszą od :date.",
"before_or_equal": "Pole :attribute musi być datą nie późniejszą niż :date.",
"between.array": "Pole :attribute musi składać się z :min - :max elementów.",
Expand All @@ -24,8 +24,8 @@
"date_equals": "Pole :attribute musi być datą równą :date.",
"date_format": "Pole :attribute nie jest w formacie :format.",
"decimal": "Pole :attribute musi mieć :decimal miejsc po przecinku.",
"declined": "Pole :attribute musi zostać odrzucony.",
"declined_if": "Pole :attribute musi zostać odrzucony, gdy :other ma wartość :value.",
"declined": "Pole :attribute musi zostać odrzucone.",
"declined_if": "Pole :attribute musi zostać odrzucone, gdy :other ma wartość :value.",
"different": "Pole :attribute oraz :other muszą się różnić.",
"digits": "Pole :attribute musi składać się z :digits cyfr.",
"digits_between": "Pole :attribute musi mieć od :min do :max cyfr.",
Expand All @@ -40,7 +40,7 @@
"extensions": "Pole :attribute musi mieć jedno z następujących rozszerzeń: :values.",
"failed": "Błędny login lub hasło.",
"file": "Pole :attribute musi być plikiem.",
"filled": "Pole :attribute nie może być puste.",
"filled": "Pole :attribute musi być wypełnione.",
"gt.array": "Pole :attribute musi mieć więcej niż :value elementów.",
"gt.file": "Pole :attribute musi być większe niż :value kilobajtów.",
"gt.numeric": "Pole :attribute musi być większe niż :value.",
Expand Down Expand Up @@ -106,19 +106,19 @@
"prohibited": "Pole :attribute jest zabronione.",
"prohibited_if": "Pole :attribute jest zabronione, gdy :other to :value.",
"prohibited_unless": "Pole :attribute jest zabronione, chyba że :other jest w :values.",
"prohibits": "Pole :attribute zabrania obecności :other.",
"prohibits": "Pole :attribute wyklucza obecność :other.",
"regex": "Format pola :attribute jest nieprawidłowy.",
"relatable": "Pole :attribute nie może być powiązany z tym zasobem.",
"relatable": "Pole :attribute nie może być powiązane z tym zasobem.",
"required": "Pole :attribute jest wymagane.",
"required_array_keys": "Pole :attribute musi zawierać wartości: :values.",
"required_if": "Pole :attribute jest wymagane gdy :other ma wartość :value.",
"required_if_accepted": "To pole jest wymagane gdy :other jest zaakceptowane.",
"required_if_declined": "The :attribute field is required when :other is declined.",
"required_if_declined": "Pole :attribute jest wymagane gdy :other jest odrzucone.",
"required_unless": "Pole :attribute jest wymagane jeżeli :other nie znajduje się w :values.",
"required_with": "Pole :attribute jest wymagane gdy :values jest obecny.",
"required_with_all": "Pole :attribute jest wymagane gdy wszystkie :values są obecne.",
"required_without": "Pole :attribute jest wymagane gdy :values nie jest obecny.",
"required_without_all": "Pole :attribute jest wymagane gdy żadne z :values nie są obecne.",
"required_with": "Pole :attribute jest wymagane gdy wartość :values jest obecna.",
"required_with_all": "Pole :attribute jest wymagane gdy wszystkie wartości :values są obecne.",
"required_without": "Pole :attribute jest wymagane gdy wartość :values nie jest obecna.",
"required_without_all": "Pole :attribute jest wymagane gdy żadne z wartości :values nie są obecne.",
"reset": "Hasło zostało zresetowane!",
"same": "Pole :attribute i :other muszą być takie same.",
"sent": "Przypomnienie hasła zostało wysłane!",
Expand Down
Loading