Skip to content

Case-insensitive keys and allowing a dot as section separator#75

Open
bleutzinn wants to merge 4 commits intoPhilipp15b:masterfrom
bleutzinn:master
Open

Case-insensitive keys and allowing a dot as section separator#75
bleutzinn wants to merge 4 commits intoPhilipp15b:masterfrom
bleutzinn:master

Conversation

@bleutzinn
Copy link
Copy Markdown

Keys are now case-insensitive making the matching of keys in the language files and in code more forgiving regarding differences in upper- and lowercase writing.

Also when using the helper function a dot . may be used as a section separator, for example echo L("category.somethingother");. As you are well aware this will not work when using the constant notation as in PHP the dot is not a valid character in constant names.

Updated the ReadMe file accordingly.

Make case-insensitive keys and allow use of a '.' as section separator. Using a '.' as section separator works in conjunction with the helper function only.
Make case-insensitive keys and allow use of a '.' as section separator. Using a '.' as section separator works in conjunction with the helper function only.
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

Successfully merging this pull request may close these issues.

1 participant