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

%L NLSPATH handling: just use locale name, skip language code #2

Open
jelmd opened this issue Aug 23, 2017 · 0 comments
Open

%L NLSPATH handling: just use locale name, skip language code #2

jelmd opened this issue Aug 23, 2017 · 0 comments

Comments

@jelmd
Copy link
Owner

jelmd commented Aug 23, 2017

Right now ast's NLSPATH resolver creates 2 paths to search for a catalog if it encounters a %L: one time it gets replaced by the locale name (as POSIX suggests) and in the 2nd variant it gets replaced by the locale's language code (unless both are equal), e.g. with 'de_DE' and 'de'. Couldn't find any specs, which says to do it this way (i.e. to generate a 2nd variant, where %L gets replaced by language code). It also seems to be redundant, because if one really wants to include a ${language_code}/ dir in the catalog lookup, one can do it by adding a the same path to NLSPATH but having %L replaced by %l.

So finally the resolver should replace %L just by the locale name, and that's it (would simplify the related code as well).

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