-
Notifications
You must be signed in to change notification settings - Fork 45
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
Relax EBNF restriction for selectors? #82
Comments
How much overlap do we have between this and #80? Do you have a use-case in mind for this? If this is just about being consistent, are there use-cases for non-simple attributes on private messages? Maybe the way to fix the inconsistency could also be to restrict attributes on private messages to simple string values? |
I don't see much overlap. Also, I don't have concrete use-cases; I was writing tests for projectfluent/fluent.js#130 and I realized it was possible to work around the restriction. Restricting attributes on private messages would also solve this, thanks. I don't see use-cases for non-simple values. |
This is being discussed as part of #97. |
According to the EBNF, message references, variant expressions nor attributes of public messages cannot be used as selectors:
fluent/spec/fluent.ebnf
Lines 70 to 74 in 589a7e9
OTOH, attributes of private messages can be used as selectors because that's how we can allow choosing the right variant for genders etc. (encoded as attributes). Attributes of private messages are language-specific which means that localizers can add any number of them to private messages.
These facts combined, it's possible to work around the EBNF like so:
Should we relax the EBNF?
The text was updated successfully, but these errors were encountered: