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

Split user language (UI translation) from locale (formatted values) #4595

Merged
merged 18 commits into from Jan 29, 2024

Conversation

kevinpapst
Copy link
Member

@kevinpapst kevinpapst commented Jan 29, 2024

Description

This PR adds a new user setting to differentiate between the language for the UI translations and the locale (for formatting money, time, numbers and dates):

Bildschirmfoto 2024-01-29 um 13 24 19

It also:

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I verified that my code applies to the guidelines (composer code-check)
  • I updated the documentation (see here)
  • I agree that this code is used in Kimai (see license)

Copy link

codecov bot commented Jan 29, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (12ef19d) 88.16% compared to head (be657ab) 88.17%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #4595      +/-   ##
============================================
+ Coverage     88.16%   88.17%   +0.01%     
- Complexity     8781     8797      +16     
============================================
  Files           784      785       +1     
  Lines         29361    29415      +54     
============================================
+ Hits          25885    25936      +51     
- Misses         3476     3479       +3     
Files Coverage Δ
...rializer/ValidationFailedExceptionErrorHandler.php 100.00% <100.00%> (ø)
src/Controller/SystemConfigurationController.php 98.13% <100.00%> (ø)
src/DependencyInjection/AppExtension.php 72.81% <100.00%> (-1.26%) ⬇️
src/Entity/User.php 90.18% <100.00%> (+0.22%) ⬆️
src/Entity/UserPreference.php 94.20% <ø> (ø)
src/EventSubscriber/ThemeOptionsSubscriber.php 80.76% <100.00%> (ø)
src/EventSubscriber/UserEnvironmentSubscriber.php 77.77% <100.00%> (+2.77%) ⬆️
src/EventSubscriber/UserPreferenceSubscriber.php 100.00% <100.00%> (ø)
src/Form/Helper/ProjectHelper.php 97.95% <100.00%> (ø)
src/Form/Type/LanguageType.php 100.00% <100.00%> (ø)
... and 8 more

... and 2 files with indirect coverage changes

@kevinpapst kevinpapst marked this pull request as ready for review January 29, 2024 22:47
@kevinpapst kevinpapst merged commit df3ca9d into main Jan 29, 2024
5 checks passed
@kevinpapst kevinpapst deleted the split-translation-from-locale branch January 29, 2024 23:09
@kevinpapst kevinpapst removed this from the Planned features milestone Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant