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

"language" concept #24

Open
Charles-Johnson opened this issue Feb 20, 2021 · 2 comments
Open

"language" concept #24

Charles-Johnson opened this issue Feb 20, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@Charles-Johnson
Copy link
Owner

Charles-Johnson commented Feb 20, 2021

This could be implement purely with Zia once string literals can be parsed

Example:

let (language -> korean) => (label_of label_of) ->  '표시'
let language -> korean
표시 표시

should output '표시'

@Charles-Johnson
Copy link
Owner Author

currently each append or modify command will unconditionally set label_of for each new concept created. If a language concept was to be properly supported then label_of should be conditionally set based on the current language. Otherwise conditionally setting label_of for another language would contradict the implicit unconditional label_of rules from previous commands.

@Charles-Johnson
Copy link
Owner Author

implicitly conditionally setting label_of has the downside that there is no fallback label if a translation hasn't been provided.

an example of where this can be a problem

let a -> b
let (language -> korean) => (label_of a) -> 'ㄱ'
let language -> korean

then what would be shown to reduce to?

@Charles-Johnson Charles-Johnson added the enhancement New feature or request label Mar 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant