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

user interface: translations #211

Merged
merged 1 commit into from
Mar 12, 2019
Merged

user interface: translations #211

merged 1 commit into from
Mar 12, 2019

Conversation

iGormilhit
Copy link

@iGormilhit iGormilhit commented Mar 11, 2019

  • NEW Updates the translations.
  • FIX Ignores the angular builds when extracting messages to translate.
  • FIX Adds a favicon for apple touche devices.

Signed-off-by: Igor Milhit [email protected]


How to test

  • pipenv run invenio collect (for the apple favicon), but you'll need to build the angluar app, so ./scripts/bootstrap is the way...
  • check the user interface (public and professional) with different locales

@@ -118,13 +121,13 @@
"Street": "Street",
"City": "City",
"No result found.": "No result found.",
"monday": "monday",
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure that the translation mechanism should be used to apply an uppercase. (this has been probably already used at other places). We can use CSS rules for this.

Copy link
Author

@iGormilhit iGormilhit Mar 11, 2019

Choose a reason for hiding this comment

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

Yes, in some place the CSS rule is a good method, but we already encounters issues with facets. It's then difficult to find the right selector to use ::first-letter, because we want only the first letter of the string to be uppercased, not each first letter of each words.

ui/admin/src/assets/i18n/en.json Outdated Show resolved Hide resolved
@@ -99,17 +99,20 @@
"has 1 patron attached": "has 1 patron attached",
"has # patrons attached": "has # patrons attached",
"The default record cannot be deleted": "The default record cannot be deleted",
"The recording contains settings": "The recording contains settings",
"The recording contains settings": "The record contains settings",
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be changed in the original string?

Copy link
Author

Choose a reason for hiding this comment

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

Ok

ui/admin/src/assets/i18n/en_US.json Outdated Show resolved Hide resolved
ui/admin/src/assets/i18n/fr.json Outdated Show resolved Hide resolved
"Closed": "Fermé",
"locations": "dépôt",
"no location": "pas de dépôt",
"{{ 'no location' | translate }}": "{{ 'no location' | translate }}",
Copy link
Contributor

Choose a reason for hiding this comment

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

not good

Copy link
Author

Choose a reason for hiding this comment

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

Corrected.

ui/admin/src/assets/i18n/it.json Outdated Show resolved Hide resolved
ui/admin/src/assets/i18n/it.json Outdated Show resolved Hide resolved
@@ -10,13 +10,13 @@
"ITEM_ON_LOAN": "ITEM_ON_LOAN",
Copy link

Choose a reason for hiding this comment

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

Item in circulation or Item checked-out

Copy link
Author

Choose a reason for hiding this comment

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

Done.

@@ -10,13 +10,13 @@
"ITEM_ON_LOAN": "ITEM_ON_LOAN",
"ITEM_RETURNED": "ITEM_RETURNED",
"ITEM_IN_TRANSIT_FOR_PICKUP": "ITEM_IN_TRANSIT_FOR_PICKUP",
Copy link

Choose a reason for hiding this comment

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

Item in transit for pick-up

Copy link
Author

Choose a reason for hiding this comment

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

Done.

@@ -10,13 +10,13 @@
"ITEM_ON_LOAN": "ITEM_ON_LOAN",
"ITEM_RETURNED": "ITEM_RETURNED",
"ITEM_IN_TRANSIT_FOR_PICKUP": "ITEM_IN_TRANSIT_FOR_PICKUP",
"ITEM_IN_TRANSIT_TO_HOUSE": "ITEM_IN_TRANSIT_TO_HOUSE",
"ITEM_IN_TRANSIT_TO_HOUSE": "Item in transit to owning library",
"ITEM_AT_DESK": "ITEM_AT_DESK",
Copy link

Choose a reason for hiding this comment

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

Item at desk

Copy link
Author

Choose a reason for hiding this comment

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

Done.

@@ -10,13 +10,13 @@
"ITEM_ON_LOAN": "ITEM_ON_LOAN",
"ITEM_RETURNED": "ITEM_RETURNED",
Copy link

Choose a reason for hiding this comment

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

Item returned or checked-in

Copy link
Author

Choose a reason for hiding this comment

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

Done.

* NEW Updates the translations.
* FIX Corrects some source strings.
* FIX Corrects template code for translations.
* FIX Ignores the angular builds when extracting messages to translate.
* FIX Adds a favicon for apple touche devices.

Signed-off-by: Igor Milhit <[email protected]>
@iGormilhit iGormilhit merged commit 0dfb364 into rero:dev Mar 12, 2019
@iGormilhit iGormilhit deleted the translation-v0a21 branch March 13, 2019 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants