Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Autocomplete] Translate "Add ..." text #2108

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

jmsche
Copy link
Contributor

@jmsche jmsche commented Aug 30, 2024

Q A
Bug fix? no
New feature? yes
Issues Fix #745
License MIT

Hi, this PR fixes #745, allowing to translate the "Add Abc..." text when the create option is set to true :)

Added the translated text as comment in most translation files.

image

@carsonbot carsonbot added Autocomplete Feature New Feature Status: Needs Review Needs to be reviewed labels Aug 30, 2024
@jmsche
Copy link
Contributor Author

jmsche commented Aug 30, 2024

UX Website & Live/Twig components workflow failures are unrelated (due to Twig release from yesterday I guess).

Not sure why the Autocomplete workflow fails, the tests are working locally :/

@smnandre
Copy link
Member

@jmsche Did you check if passing option_create every time to the instance would not be interpreted by TomSelect as "create: true" ?

I believe it worked like that at a time

I would not want we add an unwanted option to every existing user :)

@jmsche
Copy link
Contributor Author

jmsche commented Sep 1, 2024

@smnandre Just checked locally, adding autocomplete on an EnumType, create option is not offered so everything seems okay :)

Copy link
Member

@smnandre smnandre left a comment

Choose a reason for hiding this comment

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

Could you update the CHANGELOG ? :)

@carsonbot carsonbot added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Sep 1, 2024
@jmsche
Copy link
Contributor Author

jmsche commented Sep 2, 2024

@smnandre Changelog entry added :)

@smnandre smnandre requested a review from Kocal September 2, 2024 17:47
@carsonbot carsonbot added Status: Needs Review Needs to be reviewed and removed Status: Reviewed Has been reviewed by a maintainer labels Sep 2, 2024
@smnandre
Copy link
Member

smnandre commented Sep 2, 2024

The Autocomplete test (PHP 8.3) are failing :|

Copy link
Member

@smnandre smnandre left a comment

Choose a reason for hiding this comment

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

Let's fix the tests and merge this :)

@carsonbot carsonbot added Status: Needs Work Additional work is needed and removed Status: Needs Review Needs to be reviewed labels Sep 2, 2024
@jmsche
Copy link
Contributor Author

jmsche commented Sep 3, 2024

@smnandre TBH I don't know why the testItReturnsBasicResults test is failing.
I've checked the code, and it shouldn't as there's only one fixture using the word "bar".

This test is passing on my local machine, and I guess if you run it again on CI it should pass 😅

@carsonbot carsonbot added Status: Needs Review Needs to be reviewed and removed Status: Needs Work Additional work is needed labels Sep 3, 2024
@carsonbot carsonbot added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Sep 3, 2024
@smnandre
Copy link
Member

smnandre commented Sep 6, 2024

Thanks @jmsche.

@smnandre smnandre merged commit cc441e2 into symfony:2.x Sep 6, 2024
6 of 8 checks passed
kbond added a commit that referenced this pull request Oct 21, 2024
…setup (Jonas De Keukelaere)

This PR was squashed before being merged into the 2.x branch.

Discussion
----------

[Autocomplete] Translate "Add ..." text with remote data setup

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Issues        | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

In #2108 the "Add..." translation has been added. But this only worked for non remote data setups. This PR makes it work for remote data setup too.

Also add translation for Dutch.

Commits
-------

d2b26d3 [Autocomplete] Translate "Add ..." text with remote data setup
symfony-splitter pushed a commit to symfony/ux-autocomplete that referenced this pull request Oct 21, 2024
…setup (Jonas De Keukelaere)

This PR was squashed before being merged into the 2.x branch.

Discussion
----------

[Autocomplete] Translate "Add ..." text with remote data setup

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Issues        | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

In symfony/ux#2108 the "Add..." translation has been added. But this only worked for non remote data setups. This PR makes it work for remote data setup too.

Also add translation for Dutch.

Commits
-------

d2b26d36 [Autocomplete] Translate "Add ..." text with remote data setup
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Autocomplete Feature New Feature Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Autocomplete] Translate "Add"
5 participants