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

Add support for Fluent (l20n) #1926

Closed
nijel opened this issue Mar 23, 2018 · 11 comments
Closed

Add support for Fluent (l20n) #1926

nijel opened this issue Mar 23, 2018 · 11 comments
Assignees
Labels
enhancement Adding or requesting a new feature. translate-toolkit Issues which need to be fixed in the translate-toolkit
Milestone

Comments

@nijel
Copy link
Member

nijel commented Mar 23, 2018

Having l20n support could be useful. The problem is that this file format is quite complex and really doesn't fit into what translate-toolkit and Weblate expects from it. This is quite deeply covered in the translate-toolkit documentation: http://docs.translatehouse.org/projects/translate-toolkit/en/latest/formats/l20n.html

There is some preliminary implementation in translate-toolkit, but I think it's far from being used on real translations. See also translate/translate#3389

@nijel nijel added enhancement Adding or requesting a new feature. translate-toolkit Issues which need to be fixed in the translate-toolkit labels Mar 23, 2018
@nijel nijel added this to TODO in File format support via automation Mar 23, 2018
@nijel
Copy link
Member Author

nijel commented Apr 9, 2018

...and now there is Fluent as well, see https://www.yetanothertechblog.com/2018/04/05/why-fluent-matters-for-localization/

@silwol
Copy link

silwol commented Jul 18, 2018

Probably also interesting in this regard: https://github.com/projectfluent/fluent/wiki/Fluent-and-L20n

@nijel
Copy link
Member Author

nijel commented Jul 22, 2018

It's just separated file format syntax from the library, making it easier to use the file format elsewhere than in L20n.js. But there is now https://github.com/projectfluent/python-fluent, which might be used to get support for this.

@nijel nijel changed the title Add support for l20n Add support for Fluent (l20n) Jul 22, 2018
@eighthave
Copy link
Contributor

I'm just reading up about this, they announced 1.0:
https://hacks.mozilla.org/2019/04/fluent-1-0-a-localization-system-for-natural-sounding-translations/

This will fall under the Linguine funding effort, since Mozilla is moving Firefox to only Fluent strings.

@Jibec
Copy link
Contributor

Jibec commented Jun 19, 2019 via email

@nijel nijel added this to To do in Linguine via automation Jun 19, 2019
@eighthave
Copy link
Contributor

Linguine is the project name for working on translations for group of related project, including Tor Project, Tails, Guardian Project, F-Droid, etc.

@Erudition
Copy link

There is still nothing as advanced and natural sounding as Fluent - I can't use Weblate until it's supported!

@Doldge
Copy link

Doldge commented Mar 16, 2021

Hi,

Is someone able to outline the steps required to get Fluent support into Weblate? (I'm currently stuck using Pontoon but it's absolutely hopeless). Both Pontoon and Weblate are django apps though, so I'm hopeful that if someone is able to outline the requirements I may be able to assist with implementing them based on how Pontoon handles it.

It sounds like the current requirements are:

  • get prism.js syntax highlighting?
  • something about changing / improving the editor? (might already be done?)
  • add file format handling?
  • good to go?

Thanks.

@Jibec
Copy link
Contributor

Jibec commented Mar 17, 2021 via email

@nijel
Copy link
Member Author

nijel commented Mar 17, 2021

Having support in translate-toolkit is preferred approach and will make integration in Weblate easy.

  1. Implement Add Fluent support to Translate Toolkit translate/translate#3389
  2. Add integration in Weblate, this is typically just defining a wrapper class
  3. (optional) Syntax highlighting for Fluent
  4. (optional) Check for Fluent syntax

str4d added a commit to str4d/weblate that referenced this issue Jul 4, 2021
@nijel nijel added this to the 4.8 milestone Aug 19, 2021
@nijel nijel self-assigned this Aug 19, 2021
@nijel nijel closed this as completed in 8e9d038 Aug 19, 2021
File format support automation moved this from TODO to Done Aug 19, 2021
Linguine automation moved this from To do to Done Aug 19, 2021
@github-actions
Copy link

Thank you for your report; the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding or requesting a new feature. translate-toolkit Issues which need to be fixed in the translate-toolkit
Projects
Linguine
  
Done
Development

No branches or pull requests

6 participants