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

Comments attached to messages #39

Closed
stasm opened this issue Feb 11, 2020 · 4 comments
Closed

Comments attached to messages #39

stasm opened this issue Feb 11, 2020 · 4 comments
Labels
out-of-scope? requirements Issues related with MF requirements list resolve-candidate This issue appears to have been answered or resolved, and may be closed soon.

Comments

@stasm
Copy link
Collaborator

stasm commented Feb 11, 2020

Is your feature request related to a problem? Please describe.
Besides the source text, message typically have a lot of metadata about them: comments explaining the context and the purpose, clarifying vocabulary and expectations about the translations, and types of interpolated variables. The metadata is typically used by CAT tools to aid translators. it is also usually not relevant to the act of formatting the message at the runtime.

Describe the solution you'd like
Formalize how this metadata is stored in the data model and in the syntax.

Describe why your solution should shape the standard
CAT tools will benefit from the standard defining how this metadata is stored.

Additional context or examples
Fluent has three types of comments: message comments, group comments and resource comments. Message comments start with a single # and must be written on the line above the message id. See https://projectfluent.org/fluent/guide/comments.html. Example:

# Variables:
#   $extension (String) - file extension (e.g .TXT)
applications-file-ending = {$extension} file
@stasm stasm mentioned this issue Feb 11, 2020
@romulocintra
Copy link
Collaborator

This is completely needed, just wondering how we can make it work independently of resource format.

@nbouvrette nbouvrette mentioned this issue Feb 15, 2020
@mihnita
Copy link
Collaborator

mihnita commented Feb 15, 2020

I would expand this to more than messages.

I would propose:

  1. Attach "metadata" to X (X is TBD)
    Not only comments, but also examples, links to screenshots, directives about the maximum length of the messages, etc.

  2. Places to attach metadata to (the X above)

  • groups of messages
  • messages
  • sub-messages (the feminine or the linux or the spoken variant of the message)
  • placeholders

@mihnita mihnita added the requirements Issues related with MF requirements list label Sep 24, 2020
@aphillips aphillips added resolve-candidate This issue appears to have been answered or resolved, and may be closed soon. out-of-scope? labels Jul 19, 2023
@aphillips
Copy link
Member

See comments elsewhere, such as #40. This would be in-scope for a resource file format working group.

@aphillips
Copy link
Member

Closing resolve-candidates per discussion in 2023-07-24 call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
out-of-scope? requirements Issues related with MF requirements list resolve-candidate This issue appears to have been answered or resolved, and may be closed soon.
Projects
None yet
Development

No branches or pull requests

4 participants