-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
French translation #3770
French translation #3770
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3770 +/- ##
==========================================
+ Coverage 47.1% 47.13% +0.02%
==========================================
Files 171 171
Lines 7971 7971
Branches 62 62
==========================================
+ Hits 3755 3757 +2
+ Misses 3976 3973 -3
- Partials 240 241 +1
Continue to review full report at Codecov.
|
cc6b26c
to
92b4d66
Compare
Let us know when you would like to receive some feedback/review. |
Feedbacks are welcome at this point. Thanks
|
@@ -13,7 +13,7 @@ | |||
"start:frontend:https": "node aio/scripts/version.js && ng serve --progress=false --aot --proxy-config aio/https-proxy.conf.json --ssl --host=0.0.0.0", | |||
"start:backend": "gulp serve --kubeconfig $npm_package_config_kubeconfig", | |||
"start:backend:https": "gulp serve --kubeconfig $npm_package_config_kubeconfig --autoGenerateCerts true --defaultCertDir $npm_package_config_kubeconfig_dir", | |||
"start:prod": "npm run build && ./$npm_package_config_dashboard_binary_path --kubeconfig $npm_package_config_kubeconfig", | |||
"start:prod": "npm run build && (cd $(dirname ./$npm_package_config_dashboard_binary_path) && ./$(basename $npm_package_config_dashboard_binary_path) --kubeconfig $npm_package_config_kubeconfig)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cd
looks ugly here. Can we avoid using it from npm
scripts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The purpose is to exec the process from its own directory, because the file ./locale_conf.json is referenced in the code.
I did not find the definition of the $npm_package_config_dashboard_binary_path variable, where is it defined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is defined in .npmrc.
@@ -15,11 +15,13 @@ | |||
--> | |||
|
|||
<div class="kd-notifications-container"> | |||
<span style="display: none" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are trying to not use styles from templates. Why do you need it? What are these 3 lines doing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The content is used some lines below, for the matTooltip translation. Unfortunately, there is a current limitation in the i18n angular code and it is not possible to use ICU ({VAR, select, ...}) in a i18n-matTooltip (or any i18n-*), so we need to create an invisible element for that.
It seems it is not possible either to use an ng-template element.
@ocombe do you have some advice on this problem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So most likely the content of i18n-matTooltip is used by the directive directly and is not analyzed as template code, which is why the ICU doesn't work?
ng-template
should work though
you can also use ng-container
to create an invisible element
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the exact description of the problem: angular/angular#21615
And an explanation of the hack I'm using: http://chrisgriffing.com/coding/angular/2017/07/22/angular-i18n-icu-messages-attributes/
Unfortunately, that does not work with ng-container (the content is not invisible) or ng-template (the textContent is empty)
I've replaced the style="display: none" with an hidden attribute
@@ -35,10 +35,11 @@ | |||
class="kd-card-actions kd-muted"> | |||
<ng-content select="[actions]"></ng-content> | |||
</div> | |||
|
|||
<span style="display: none" | |||
#translatedTooltip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above.
I have finished the translation of the templates. I will have to look at the MSG_ and figure out how to translate from the TS code (probably in another pull request). |
Please rebase/merge master to fix the issues with the CI job. Sorry for the inconvenience. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: feloy, jeefy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I don't want to revert it because overall it is really good work, but I'd address 2 things.
|
I will work on this asap |
@maciaszczykm I have proposed a patch on #3812 |
Fixes #3574