Skip to content

Update languages.py - #4377

Merged
pekkaklarck merged 12 commits into
robotframework:masterfrom
leeuwe:patch-1
Jul 14, 2022
Merged

pekkaklarck merged 12 commits into
robotframework:masterfrom
leeuwe:patch-1

Conversation

@leeuwe

@leeuwe leeuwe commented Jun 21, 2022 •

Copy link
Copy Markdown
Member

PT by @HelioGuilherme66
BT-br by @HelioGuilherme66
DE by @Snooz82 and @Noordsestern
NL by @pimjansen and @leeuwe
CS by @MoreFamed
PL by @bhirsz
TR by @yusufcanb
UK by @dies
ZN-cn by @nixuewei

PT by @HelioGuilherme66 
BT-br by @HelioGuilherme66 
DE by @Snooz82 and @Noordsestern
NL by @Heatzone87 @leeuwe
CS by @MoreFamed
PL by @bartek.hirsz
TR by @yusufcanb
UK by @dies
ZN-cn by @nixuewei

@pekkaklarck pekkaklarck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There are syntax errors and some style violations in the code. We should also discuss about adding the full language name somewhere because language codes aren't too explicit.

Comment thread src/robot/conf/languages.py Resolved
Comment thread src/robot/conf/languages.py Resolved
Comment thread src/robot/conf/languages.py Outdated
bdd_prefixes = {'Dado', 'Quando', 'Então', 'E', 'Mas'}

from robot.conf import Language
class PT-br(Language):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The import isn't needed and the PT-br class name is a syntax error. It should be changed to PtBr. Probably should update the script that generates this Python code as well.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I opted for Pt-Br. Should that still be changed to PtBr or is the code updated?

Comment thread src/robot/conf/languages.py Resolved
Comment thread src/robot/conf/languages.py Resolved
Comment thread src/robot/conf/languages.py Resolved
@leeuwe

leeuwe commented Jul 6, 2022

Copy link
Copy Markdown
Member Author

There's been a few updates in the strings to translate. Therefore we're down to 4 languages (and Finnish)
PT by @HelioGuilherme66
NL by @pimjansen and @leeuwe
CS by @MoreFamed
UK by @dies

@leeuwe

leeuwe commented Jul 12, 2022 •

Copy link
Copy Markdown
Member Author

@pekkaklarck Finally resolved the conflicts!
Pt by @HelioGuilherme66
Pt-Br by @HelioGuilherme66
Nl by @pimjansen and @leeuwe
Cs by @MoreFamed
Uk by @dies
De by @Snooz82 and @Noordsestern

@leeuwe
leeuwe requested a review from pekkaklarck July 12, 2022 07:01
@bhirsz

bhirsz commented Jul 12, 2022

Copy link
Copy Markdown
Contributor

@leeuwe You tagged me, but I don't see polish there? It still needs some updates though (the translation)

@leeuwe

leeuwe commented Jul 12, 2022 •

Copy link
Copy Markdown
Member Author

@leeuwe You tagged me, but I don't see polish there? It still needs some updates though (the translation)

@bhirsz Yes, initially, Polish was done if I remember correctly, but after some changes it wasn't 100% translated and I left it out. I should've written explainatory commit messages. My bad. Please head over to Crowdin if you have a few minutes to complete Polish, and I'll add it back in

@HelioGuilherme66 HelioGuilherme66 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

class Pt-Br is wrong. It should be class PtBr

Comment thread src/robot/conf/languages.py Resolved
Comment thread src/robot/conf/languages.py Resolved
@leeuwe
leeuwe requested a review from pekkaklarck July 14, 2022 16:17
@pekkaklarck

Copy link
Copy Markdown
Member

The description doesn't seem to match what's actually included. Most likely that's due to changes to settings that can be translated. Anyway, the PR actually adds these languages:

  • PT
  • PT-BR
  • DE
  • NL
  • CS
  • FR

@pekkaklarck
pekkaklarck merged commit 8495c19 into robotframework:master Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants