-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement FluentLanguageLoader::get_lang(...) methods
This adds the following methods: - get_lang - get_lang_args - get_lang_args_concrete - get_lang_args_fluent Those methods work exactly like their non-lang counterparts but add a lang argument that can be used to specify a list of language codes without needing to change the global current language setting. This closes #59.
- Loading branch information
1 parent
ae222f3
commit 3f35f04
Showing
6 changed files
with
230 additions
and
62 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
hello-world = Hello World Localisation! | ||
only-gb = only GB | ||
different-args = this message has {$different} {$args} in different languages | ||
only-gb-args = Hello {$userName}! | ||
different-args = this message has {$different} {$args} in different languages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.