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

Update snapshot resname & source #1539

Merged

Conversation

Amin-Hosseini
Copy link
Contributor

@Amin-Hosseini Amin-Hosseini commented Aug 10, 2022

Update Snapshot source

Issues #1495

@eerison eerison mentioned this pull request Aug 10, 2022
36 tasks
<trans-unit id="90" resname="snapshot">
<source>snapshot</source>
<trans-unit id="90" resname="form.group_snapshot">
<source>form.group_snapshot</source>
<target>Publications</target>
Copy link
Contributor

@eerison eerison Aug 10, 2022

Choose a reason for hiding this comment

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

Well It was a thing that confusing me, Here says publications but in the code uses snapshot,

Don't you think, we should use Snapshots instead of Publications?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

@eerison eerison Aug 10, 2022

Choose a reason for hiding this comment

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

But to translate for others languages I guess publication make more sense :/

I don't know, what do you think?

Copy link
Member

Choose a reason for hiding this comment

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

I think it should be done on another PR. What word does the user undestand more, publications or snapshots? I think snapshot is more technical word, but not sure, because I have never used this bundle.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah I guess it can be handled in other PR!

@@ -358,7 +358,7 @@
<source>sidemenu.link_list_snapshots</source>
<target>Publikationen</target>
</trans-unit>
<trans-unit id="90" resname="snapshot">
<trans-unit id="90" resname="form.group_snapshot">
<source>snapshot</source>
Copy link
Member

Choose a reason for hiding this comment

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

I think you should modify the sources for all cases. TBH not sure what is "resname"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can remove "resname" and put them instead of id numbers like SonataAdminBundle.
Should I change in this PR or better to create a PR for all translations SonataPageBundle files?

Copy link
Member

Choose a reason for hiding this comment

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

If you can do it in separate PRs it would be nice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, will do that 🙂

Copy link
Member

@jordisala1991 jordisala1991 Aug 10, 2022

Choose a reason for hiding this comment

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

Even if we do in a separate PRs, here we should fix the <source> field of translations.

@@ -358,7 +358,7 @@
<source>sidemenu.link_list_snapshots</source>
<target>Публикации</target>
</trans-unit>
<trans-unit id="90" resname="snapshot">
<trans-unit id="90" resname="form.group_snapshot">
<source>snapshot</source>
Copy link
Member

Choose a reason for hiding this comment

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

source must be modified too

Copy link
Contributor Author

@Amin-Hosseini Amin-Hosseini Aug 10, 2022

Choose a reason for hiding this comment

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

ah.. first I only updated source on en file. Done 👍

@jordisala1991 jordisala1991 merged commit 7f60121 into sonata-project:4.x Aug 10, 2022
@jordisala1991
Copy link
Member

Thanks @Amin-Hosseini

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants