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

[i18n] Translate angular-bootstrap #28650

Merged
merged 7 commits into from
Jan 28, 2019

Conversation

Bamieh
Copy link
Member

@Bamieh Bamieh commented Jan 12, 2019

src/ui/public/angular-bootstrap

strings inside src/ui/public/angular-bootstrap/pagination/pagination.js are not localized yet.

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@maryia-lapata maryia-lapata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, please fix missing quotes.
I've checked with pseudo-locale.

src/ui/public/angular-bootstrap/datepicker/month.html Outdated Show resolved Hide resolved
src/ui/public/angular-bootstrap/datepicker/month.html Outdated Show resolved Hide resolved
@elasticmachine
Copy link
Contributor

💔 Build Failed

@pavel06081991
Copy link
Contributor

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@maryia-lapata maryia-lapata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please translate src/ui/public/angular-bootstrap/pagination/pagination.js

@pavel06081991
Copy link
Contributor

@maryia-lapata I've translated src/ui/public/angular-bootstrap/pagination/pagination.js and src/ui/public/angular-bootstrap/datepicker/datepickerjs directives. But could not test locally because could't find where they are used.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@maryia-lapata maryia-lapata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one suggestion

@@ -183,8 +193,12 @@ angular.module('ui.bootstrap.pagination', [])

.constant('pagerConfig', {
itemsPerPage: 10,
previousText: '« Previous',
nextText: 'Next »',
previousText: i18n.translate('common.ui.angularBootstrap.pagination.pagerConfig.previousLabel', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should move « out of translation label to exclude symbol order change:

previousText: '« ' + i18n.translate('common.ui.angularBootstrap.pagination.pagerConfig.previousLabel', {
    defaultMessage: 'Previous'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked with pseudo locale

image

currentText: 'Today',
clearText: 'Clear',
closeText: 'Done',
currentText: i18n.translate('common.ui.angularBootstrap.datepicker.datepickerPopupConfig.todayLabel', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've checked with pseudo locale

image
👍

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

previousText: 'Previous',
nextText: 'Next',
lastText: 'Last',
firstText: i18n.translate('common.ui.angularBootstrap.pagination.paginationConfig.firstLabel', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked with pseudo locale

image

@elasticmachine
Copy link
Contributor

💔 Build Failed

@maryia-lapata
Copy link
Contributor

retest

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@pavel06081991 pavel06081991 requested review from spalger and removed request for timroes January 23, 2019 15:07
Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pavel06081991 pavel06081991 merged commit a8a492f into elastic:master Jan 28, 2019
@pavel06081991 pavel06081991 deleted the localize-angular-bootstrap branch January 28, 2019 06:53
pavel06081991 pushed a commit to pavel06081991/kibana that referenced this pull request Jan 28, 2019
localize angular-bootstrap/datepicker
pavel06081991 added a commit that referenced this pull request Jan 28, 2019
localize angular-bootstrap/datepicker
chrisronline pushed a commit to chrisronline/kibana that referenced this pull request Jan 29, 2019
localize angular-bootstrap/datepicker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants