Skip to content

Section header translations are unnecessarily required to be in title case #4411

Closed

Description

@MoreFamed

I am testing the Czech localization. It works just partially for me. I cannot use Czech variants of *** Keyword ***, *** Keywords ***, *** Test Case *** and *** Test Cases *** because of the error Unrecognized section header '*** Testovací případy ***'. Valid sections: 'Settings', 'Variables', etc. The other ones I tested (12 other items) seem to be OK when run with robot --language CS. I noticed that those problematic ones are those that should be written into asterisks and together with it they consist of more than one word. Document at https://robotframework.crowdin.com/translate/ seems to be good.

RF 5.1 alpha 1

Activity

  1. pekkaklarck commented on Jul 19, 2022

    @pekkaklarck
    Member

    The reason is that these headers are specified in the language definition like

    test_case_headers = {'Testovací případ', 'Testovací případy', 'Testovací případy', 'Testovací případy'}

    and header matching code converts the actual header to title case before comparison. This same problem was actually already reported by @HelioGuilherme66 in PR #4396 and I thought I fixed it in d20dd1c. The problem is that I only fixed it with setting names, not with header names. In other words, the problem Hélio reported wasn't actually fixed either.

    I'll fix the problem with headers soon and probably create alpha 2 later this week. We already have gotten some new translations and would be nice to get them out as well. Also BDD prefixes seem to have this issue so I'll fix that as well.

    Some questions:

    • Do you @MoreFamed prefer format Testovací případy over Testovací Případy in general? After my fix Robot will accept both values in headers, but I expect that the values we use in our language definitions will be later used by editors and other external tools. With English we've decided to prefer the title cased format but different languages have different preferences. Whatever is the preferred format should be used in the language definition.
    • As you can see, the language definition currently contains Testovací případy three times and it seems that other headers also have duplicates. I assume removing the dupes is fine. Should we @leeuwe possibly enhance crowdin.py script to avoid such duplicates?
    • Should we start requiring tests for translations? They would have found this bug but I*m not certain how many similar bugs there are anymore. Adding and updating tests for all languages is some work.
  2. added this to the v5.1 milestone on Jul 19, 2022
  3. changed the title [-]Unrecognized headers in Czech localization[/-] [+]Section header translations are unnecessarily required to be in title case[/+] on Jul 19, 2022
  4. pekkaklarck commented on Jul 19, 2022

    @pekkaklarck
    Member

    This bug affected French, Czech and Portuguese but ought to be fixed now.

    I also removed the duplicated Czech header translations. No other language seemed to have dupes.

  5. MoreFamed commented on Jul 19, 2022

    @MoreFamed
    Author

    @pekkaklarck , I do prefer it: in Czech language, titles are written just with the first letter of the first word being capital.

    There are four variants corresponding to four morphological numbers for several items which should be translated. We have only two of them (singular and plural) in Czech, but the software marked such items as only partially translated when I filled just two ones... This is why I redundantly filled all of them.

  6. pekkaklarck commented on Jul 19, 2022

    @pekkaklarck
    Member

    Ok, let's go with the non-title-case variant then. After the above fix it ought to work.

    Only one value should be required for headers. Can you @leeuwe check that?

  7. added theissue type on Dec 2, 2025
  8. added
    no notes
    on May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    alpha 2no notespriority: high

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions