Skip to content

Commit

Permalink
v5 release
Browse files Browse the repository at this point in the history
Supported locales: English and German.
  • Loading branch information
HarveyKandola committed Apr 13, 2022
1 parent b77b4ab commit 38a790d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ All you need to provide is your database -- PostgreSQL, Microsoft SQL Server or

## Latest Release

[Community edition: v4.2.3](https://github.com/documize/community/releases)
[Community edition: v5.0.0](https://github.com/documize/community/releases)

[Community+ edition: v4.2.3](https://www.documize.com/community)
[Community+ edition: v5.0.0](https://www.documize.com/community)

The Community+ edition is the "Enterprise" offering with advanced capabilities and customer support:

Expand Down Expand Up @@ -77,6 +77,15 @@ Besides email/password login, you can also authenticate via:

When using LDAP/Active Directory, you can enable dual-authentication with email/password.

## Localization

Languages supported out-of-the-box:

- English
- German

PR's welcome for additional languages.

## Product/Technical Support

For both Community and Community+ editions, please contact our help desk for product help, suggestions and other enquiries.
Expand Down
2 changes: 1 addition & 1 deletion edition/community.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func main() {
rt.Product.Major = "5"
rt.Product.Minor = "0"
rt.Product.Patch = "0"
rt.Product.Revision = "220318131033"
rt.Product.Revision = "220413135227"
rt.Product.Version = fmt.Sprintf("%s.%s.%s", rt.Product.Major, rt.Product.Minor, rt.Product.Patch)
rt.Product.Edition = domain.CommunityEdition
rt.Product.Title = "Community"
Expand Down
8 changes: 8 additions & 0 deletions gui/app/components/user/user-profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import Component from '@ember/component';

export default Component.extend(AuthProvider, {
appMeta: service(),
router: service(),
hasFirstnameError: empty('model.firstname'),
hasLastnameError: empty('model.lastname'),
hasEmailError: computed('model.email', function() {
Expand Down Expand Up @@ -49,6 +50,7 @@ export default Component.extend(AuthProvider, {
}),
locale: { name: '' },
locales: null,
localChanged: false,

init() {
this._super(...arguments);
Expand All @@ -73,6 +75,8 @@ export default Component.extend(AuthProvider, {
actions: {
onSelectLocale(locale) {
this.set('model.locale', locale.name);

this.localChanged = true;
},

save() {
Expand Down Expand Up @@ -107,6 +111,10 @@ export default Component.extend(AuthProvider, {
this.get('save')(passwords).finally(() => {
set(this, 'password.password', '');
set(this, 'password.confirmation', '');

if (this.localChanged) {
this.get('router').transitionTo('auth.logout');
}
});
}
}
Expand Down
2 changes: 0 additions & 2 deletions gui/app/services/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ export default Service.extend({
case "de-DE":
str = this.langs.deDE[key];
break;
default:
str = this.langs.enUS[key];
}

if (_.isUndefined(str)) {
Expand Down

0 comments on commit 38a790d

Please sign in to comment.