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

Nextcloud integration should use language as defined in cloud settings #1293

Closed
akhil1508 opened this issue Oct 25, 2023 · 1 comment
Closed
Labels
enhancement New feature or request Nextcloud

Comments

@akhil1508
Copy link

Is your feature request related to a problem? Please describe.

  • There is a separate language setting in snappymail when I use it inside a nextcloud setup
  • This does not make sense to have two separate language settings when I want it to "integrate" with my cloud

Describe the solution you'd like

  • Use language setting from cloud
  • If the cloud language is not available in snappymail, fall back to "en"

Additional context
image
image

the-djmaze pushed a commit that referenced this issue Nov 20, 2023
@the-djmaze the-djmaze added enhancement New feature or request Nextcloud labels Nov 20, 2023
@the-djmaze
Copy link
Owner

It is now here:

public function FilterLanguage($bAdmin, &$sLanguage) : void
{
if (!\RainLoop\Api::Config()->Get('webmail', 'allow_languages_on_settings', true)) {
$sLanguage = \RainLoop\Api::Actions()->ValidateLanguage(
\OC::$server->getL10N('core')->getLocaleCode(),
$sLanguage,
$bAdmin
);
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Nextcloud
Projects
None yet
Development

No branches or pull requests

2 participants