-
Notifications
You must be signed in to change notification settings - Fork 82
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
Internationalization - phase 2 #523
Comments
RESX files are complile-time, thus unsuitable for user-editing. |
Re Cottle I want:
|
So if a ".cottle" isn't found, it would revert to the default? Would the default also be a ".cottle", would it be more like a ".resx", or would we keep the defaults in the current ".json" format? |
All these are open for discussion. |
I am envisaging a per-script fallback chain exactly as for RESX, by script name, but allowing for user modification at run time. So the lookup chain might be:
|
As discussed on Discord, we're considering a structure like this for a personality called foo: |
I would have a single index file
Thoughts welcomed. |
The main disadvantage about having a single file per script is that a lot of them shares some code (as example: pluralization) which is'nt trivial to change for localization. Having ALL the scripts in the same file will help in finding/replace the same code with the localized one. Why not using some ... special comment (like {_ §021§ _} ) at the beginning of each script as an index (similar to the way certain auto-document programs reads "///" comments in C files)? About comparing the localized scripts with the "invariant" one, problem is the compare engine have to be VERY smart: |
Good points, noted. I'm going to say a hard no to the "special comment" idea though. Down that path lies madness. |
Many languages need to factor out their pluralisation rules, so I am thinking more along the lines of a global "Grammar" script to house such functions. |
Jotting down some of the items that we've discussed for future internationalization improvements
The text was updated successfully, but these errors were encountered: