-
Notifications
You must be signed in to change notification settings - Fork 29
i18n version #5
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
Open
mcrauwel
wants to merge
48
commits into
WebPA:develop
Choose a base branch
from
ICTO:upstream
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
i18n version #5
Conversation
This file contains hidden or 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
nl_BE po-files in the locale/ folder.
Breadcrumbs to be done at the end.
Use
// Setting up gettext.
$locale = "nl_BE";
putenv("LANG=".$locale);
setlocale(LC_ALL, $locale);
$domain = "webpa";
bindtextdomain($domain, "/path/to/local");
bind_textdomain_codeset($domain, "UTF-8");
textdomain($domain);
in inc_global.php to test (for now).
Gettext implementation.
Configurable separation constant.
import) via the named constant APP__SEPARATION in inc_global.php.
Adds a column module_lang to the table module to be able to define gettext language per module. A default, which is used when no module can be found, can be set with APP__DEFAULT_LOCALE in inc_global.php. The language can be changed for a module in the admin section for modules (which will list all folders of locale/ as possible languages). (It is only a quick implementation, it does not do any extensive checks.) The webpa2_administrator.sql file has also been modified to add a row into the user_module table because without this row I could not login into a new webPA installation.
Reset po-files.
Language configuration per module.
Addition of SAML support
run this file if you are upgrading an existing installation to the i18n version.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.