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 catch 22 #90

Closed
alerque opened this issue Jan 12, 2021 · 2 comments
Closed

Language catch 22 #90

alerque opened this issue Jan 12, 2021 · 2 comments

Comments

@alerque
Copy link
Member

alerque commented Jan 12, 2021

Current makefile load order:

  1. casile.mk
  2. Project rules file(s)
  3. rules.mk

Now, where do we load localized make variables? Currently in №3, because languages are set by project (or CLI run) most reasonable in №2. That leaves them unusable in №2. Which mean projects can't avail themselves of localized strings.

Obviously the current makefile hackery to even have localized strings is, well, dirty. We should come up with something cleaner, preferably moving localization to Fluent and loading strings earlier to be used earlier too.

@alerque
Copy link
Member Author

alerque commented Jan 26, 2021

This could get resolved by moving some configuration parameters from being Makefile variables to YAML or TOML based project configs. In that event they could be read early and defaults supplied after without screwing up GNU Make's Makefile processing order.

@alerque
Copy link
Member Author

alerque commented Feb 4, 2021

This is resolved in v0.4.1. Put language: <code> into a YAML config file and save as casile.yml. It's processed early on (before make even gets its grubby fingers on anything).

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

No branches or pull requests

1 participant