Tłumaczenia: dwie kolumny „Upraveno” w cs, nieaktualne `reset_view_only` w 5 językach i poprawki językowe (hu, de, pl, nl, es, fr)

Closed
#277 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
php

Research direction

Start with the cited translation files under lang/ and modules/backend/lang/hu.php, then inspect tests/Unit/LangParityTest.php and its existing dataset. Update the listed translations and add the proposed placeholder and Markdown-marker parity check. Run the language parity test; done means the Czech headers are unique, the specified text fixes are present, and missing placeholders or markers fail the test.

Written by the indexing model from the issue text.

Description

code-review documentation good first issue medium-priority

Problem

Pliki kompilują się, a klucze i placeholdery są zgodne we wszystkich 12 językach. Do poprawy zostaje:

  1. cs (regresja #200): templates.is_custom (kolumna Customized) i templates.updated_at mają tę samą etykietę „Upraveno”. Lista szablonów pokazuje więc dwie kolumny „Upraveno”. Proponowane: is_custom → „Přizpůsobeno”. Opcjonalnie menu.description → „Úprava PDF šablon a správa PDF layoutů.”
  2. templates.reset_view_only w de, fr, hu, nl, pt-br dalej tłumaczy starą konstrukcję „…reset to it”, zmienioną w #256. Proponowane:
    • de: „Nur Einträge aus einer View-Datei können zurückgesetzt werden.”
    • fr: „Seuls les enregistrements provenant d'un fichier de vue peuvent être réinitialisés.”
    • hu: „Csak nézetfájlból származó rekordok állíthatók vissza.”
    • nl: „Alleen items die uit een view-bestand komen, kunnen worden teruggezet.”
    • pt-br: „Somente registros que vêm de um arquivo de view podem ser restaurados.”
  3. hu:
    • view_detached (template i layout) renderuje się jako „A Alaphelyzet” zamiast „Az”. Bezpieczne jest „A(z) :reset gomb …”.
    • templates.code_comment to polecenie, a nie opis jak przy layoucie.
    • sample_data_comment: „admin előnézet” (rozdzielna pisownia) i kalka „renderelődik”.
  4. de:
    • layout.view_follows „an Name” → „am Namen”;
    • layouts.return → „Zurück zur Layoutliste” (spójnie z „Zurück zur Vorlagenliste”).
  5. pl:
    • templates.twig_invalid „w linii” → „w wierszu” (jak w SeoManager);
    • plugin.description w trybie rozkazującym („Generuj…”) → „Generowanie…”, jak w pozostałych pluginach Renatio.
  6. nl: template.view_follows i layout.view_follows to kalka „…opslaan koppelt het los”. Lepiej: „Door … op te slaan, wordt het van die updates losgekoppeld.” W layoucie zaimek „haar” kłóci się z „hem” w delete_in_use.
  7. es, es-ar:
    • sample_data_comment z podwójnym „con … con las que” → „…con las variables que usa la vista previa del panel…”;
    • templates.size „Tamaño de papel” → „Tamaño del papel” (obok „Orientación del papel”).
  8. fr:
    • templates.is_locked „Issu d'une vue” → „Issue d'une vue” (la mise en page);
    • do decyzji: „maquette” zamiast „mise en page”, spójnie z rdzeniem fr (CMS i e-maile używają „Maquettes”).
  9. Zabezpieczenie na przyszłość: LangParityTest porównuje tylko klucze. Tłumaczenie, które zgubi :message, :templates, :code, :view, :reset, :line albo :value lub rozbije **…**/backticki, przejdzie test. Dziś wszystko jest zgodne, ale nic tego nie pilnuje.

Dowód

  • lang/cs/lang.php:30, 36 (oba „Upraveno”). Sonda wyrenderowała nagłówki listy w cs: „Název | Kód | Layout | Upraveno | Vytvořeno | Upraveno | Akce”.
  • lang/{de,fr,hu,nl,pt-br}/lang.php:45 vs git show 12fccb3 -- lang/en/lang.php. git blame wskazuje 571577c i 293a78c sprzed zmiany en.
  • lang/hu/lang.php:15, 35, 55, 68 oraz modules/backend/lang/hu/lang.php (form.reset_default = „Alaphelyzet”). Sonda wyrenderowała „A Alaphelyzet visszaállítja…”.
  • lang/de/lang.php:60, 67, lang/pl/lang.php:6, 46, lang/nl/lang.php:54, 67, 69, lang/es/lang.php:32, 35, lang/es-ar/lang.php:32, 35, lang/fr/lang.php:37.
  • tests/Unit/LangParityTest.php:6-10 (tylko array_keys(Arr::dot(...))).

Skutek

Czeski użytkownik nie odróżni kolumny „dostosowany” od daty modyfikacji. Pozostałe punkty to błędy językowe w tekstach widocznych w każdym formularzu lub na liście.

Proponowane rozwiązanie

Zmiany jak wyżej. Do LangParityTest drugi it() na tym samym datasecie, porównujący zbiory placeholderów /:([a-z_]+)/ oraz liczbę ** i backticków.

Kryteria akceptacji

  • Nagłówki listy szablonów w cs są unikalne.
  • Żadne tłumaczenie reset_view_only nie zawiera odpowiednika „to it”.
  • Poprawki z punktów 3–8 w plikach.
  • Usunięcie :message z dowolnego tłumaczenia czerwieni LangParityTest.

Powiązane issues

#200, #201, #202, #203, #227, #228, #230, #231 (poprzednie poprawki per język), #226, #250, #256.

Dominant language
PHP
Stars
30
Forks
22
Avg merge
11m
Merged PRs (30d)
80

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.