-
Notifications
You must be signed in to change notification settings - Fork 168
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
Search Bar filter translation #9528
Search Bar filter translation #9528
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
@@ -64,12 +64,12 @@ export default defineComponent({ | |||
const locationOptions = ref<LocationOption[]>([ | |||
{ | |||
id: SearchLocationFilterConstants.currentFolder, | |||
title: $gettext('Current Folder'), | |||
title: 'Current Folder', |
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.
Please don't remove $gettext
here. This method (and its variations) are an indicator for our language string extractor to sync strings to Transifex, where they eventually get translated.
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.
Right, looks like my previous approach was better. And it seems that moving "currentFolderEnabled" prop from computed into locationOptions (as computed) fixed the issue
@@ -122,7 +122,7 @@ export default defineComponent({ | |||
emit('update:modelValue', { value: option }) | |||
} | |||
|
|||
return { currentSelection, isIndexGreaterZero, onOptionSelected, locationOptions } | |||
return { currentSelection, isIndexGreaterZero, onOptionSelected, locationOptions, $gettext } |
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.
No need to return it explicitly.
return { currentSelection, isIndexGreaterZero, onOptionSelected, locationOptions, $gettext } | |
return { currentSelection, isIndexGreaterZero, onOptionSelected, locationOptions} |
Kudos, SonarCloud Quality Gate passed!
|
* Search Bar filter translation * SearchBar filter fixing translation
* Search Bar filter translation * SearchBar filter fixing translation
* Search Bar filter translation * SearchBar filter fixing translation
* Search Bar filter translation * SearchBar filter fixing translation
* Search Bar filter translation * SearchBar filter fixing translation
This reverts commit dd2c63c.
* Revert "ct perm link (#9567)" This reverts commit 8b8c699. * Revert "Fix: show unrestricted as total quota if applies (#9577)" This reverts commit 98887c7. * Revert "Close on click stable fix" This reverts commit 8cd4e7b. * Revert "fix: loading pdf files with Safari" This reverts commit 6845e4d. * Revert "Search Bar filter translation (#9528)" This reverts commit dd2c63c. * Revert "Fix set or remove expiration date on groups not possible (#9513)" This reverts commit eb25832.
* Revert "ct perm link (#9567)" This reverts commit 8b8c699. * Revert "Fix: show unrestricted as total quota if applies (#9577)" This reverts commit 98887c7. * Revert "Close on click stable fix" This reverts commit 8cd4e7b. * Revert "fix: loading pdf files with Safari" This reverts commit 6845e4d. * Revert "Search Bar filter translation (#9528)" This reverts commit dd2c63c. * Revert "Fix set or remove expiration date on groups not possible (#9513)" This reverts commit eb25832.
* Revert "ct perm link (#9567)" This reverts commit 8b8c699. * Revert "Fix: show unrestricted as total quota if applies (#9577)" This reverts commit 98887c7. * Revert "Close on click stable fix" This reverts commit 8cd4e7b. * Revert "fix: loading pdf files with Safari" This reverts commit 6845e4d. * Revert "Search Bar filter translation (#9528)" This reverts commit dd2c63c. * Revert "Fix set or remove expiration date on groups not possible (#9513)" This reverts commit eb25832.
Description
Moving translation to template keeps language and doesn't break "current folder"
Related Issue
Types of changes
Checklist: