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

[WIP] fix: remove extra return -> in laravel keys #4728

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

Simoneu01
Copy link

@Simoneu01 Simoneu01 commented Sep 30, 2022

Close #4563

Close WeblateOrg/weblate#5633

This is still a WIP please do not review now

Next steps:

  • remove extra return -> from keys
  • remove unused code
  • fix comments
  • fix empty line
  • use the name of the file if available as key

'apples' => 'There is one apple|There are many apples',
];
"""
phpsource = open("./laravel/plurals.php").read()
Copy link
Member

@nijel nijel Oct 25, 2022

Choose a reason for hiding this comment

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

You cannot make assumptions about current working directory. Either derive the filename from __file__ and make sure the test files are included in the package, or inline it as it was done before.

@nijel nijel marked this pull request as draft December 6, 2022 13:47
@nijel
Copy link
Member

nijel commented Dec 7, 2022

@Simoneu01 Any progress on this?

@jekkos
Copy link

jekkos commented Sep 3, 2023

I tried this patch on weblate 3.14 and it resolves the issue with Laravel language import. What is holding us back to merge it?

@Simoneu01
Copy link
Author

@Simoneu01 Any progress on this?

Sorry, I've been busy IRL.

I tried this patch on weblate 3.14 and it resolves the issue with Laravel language import. What is holding us back to merge it?

This PR has some issues when the language file has comments on it, and also breaks the indentation. I'll look into it in the next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants