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

[IMP] t9n: add custom views to the existing models #3183

Open
wants to merge 3 commits into
base: master-translation-module
Choose a base branch
from

Conversation

MohammedBasioni
Copy link

@MohammedBasioni MohammedBasioni commented May 6, 2024

This commit adds the full flow starting from the home screen. The home
screen contains a list of all projects that you can click on to take you
to the list of available target languages in this project. Clicking on a
language will take you to the resources in the project then to the
different texts that need to be translated. Also, various features are
added in each custom view of those like sorting and searching. Finally,
you can add your translation for any text you want :))

Task-3783071

@robodoo
Copy link

robodoo commented May 6, 2024

This PR targets the un-managed branch odoo-dev/odoo:master-translation-module, it needs to be retargeted before it can be merged.

@MohammedBasioni MohammedBasioni force-pushed the master-translation-module-recourses-editor-basm branch 4 times, most recently from 8150e72 to 48af852 Compare May 9, 2024 14:07
@MohammedBasioni MohammedBasioni force-pushed the master-translation-module-recourses-editor-basm branch 2 times, most recently from c85795a to d7f7fd4 Compare May 16, 2024 19:37
@MohammedBasioni MohammedBasioni marked this pull request as ready for review May 16, 2024 19:41
@robodoo
Copy link

robodoo commented May 16, 2024

This PR targets the un-managed branch odoo-dev/odoo:master-translation-module, it needs to be retargeted before it can be merged.

@MohammedBasioni MohammedBasioni force-pushed the master-translation-module-recourses-editor-basm branch 2 times, most recently from 9e9414b to c5742cb Compare May 21, 2024 12:52
@MohammedBasioni MohammedBasioni force-pushed the master-translation-module-recourses-editor-basm branch from c5742cb to 49bfc3e Compare May 27, 2024 13:01
addons/t9n/static/src/web/open_resource_list_action.js Outdated Show resolved Hide resolved
Comment on lines 20 to 30
<t t-foreach="this.languages" t-as="language" t-key="language.id">
<tr>
<td>
<button class="btn btn-link " t-on-click="() => this.onClickLanguage(language.id)">
<t t-esc="language.name"/>
</button>
</td>
<td t-esc="language.native_name"/>
<td t-esc="language.code"/>
</tr>
</t>

Choose a reason for hiding this comment

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

(maybe out of the scope of this PR)
If there is no language, it would be nice to have an explanatory text and a button to add more languages

addons/t9n/models/message.py Outdated Show resolved Hide resolved

Choose a reason for hiding this comment

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

File still not formatted 😺

Copy link
Author

@MohammedBasioni MohammedBasioni Jul 17, 2024

Choose a reason for hiding this comment

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

deleted (thanks to notificationService)

image

addons/t9n/static/src/core/copy_button_popover.xml Outdated Show resolved Hide resolved
addons/t9n/static/src/core/language_list.xml Outdated Show resolved Hide resolved
@oomsveta oomsveta force-pushed the master-translation-module-recourses-editor-basm branch from 49bfc3e to bce3d89 Compare July 8, 2024 12:07
@MohammedBasioni MohammedBasioni force-pushed the master-translation-module-recourses-editor-basm branch 2 times, most recently from d374174 to 4497a55 Compare July 17, 2024 14:40
@MohammedBasioni MohammedBasioni force-pushed the master-translation-module-recourses-editor-basm branch from 4497a55 to bff3f1a Compare July 22, 2024 08:53
MohammedBasioni and others added 3 commits July 22, 2024 12:26
This commit adds the full flow starting from the home screen. The home
screen contains a list of all projects that you can click on to take you
to the list of available target languages in this project. Clicking on a
language will take you to the resources in the project then to the
different texts that need to be translated. Also, various features are
added in each custom view of those like sorting and searching. Finally,
you can add your translation for any text you want :))

Task-3783071
@MohammedBasioni MohammedBasioni force-pushed the master-translation-module-recourses-editor-basm branch from bff3f1a to 5a50327 Compare July 22, 2024 09:26
@MohammedBasioni MohammedBasioni changed the title Master translation module recourses editor basm [IMP] t9n: add custom views to the existing models Aug 14, 2024
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