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

Online translation #241

Merged
merged 8 commits into from
Apr 7, 2022
Merged

Conversation

litvinovg
Copy link
Contributor

@litvinovg litvinovg commented Jul 6, 2021

JIRA Issue VIVO-2002

What does this pull request do?

Adds option for VIVO and Vitro localization on website with downloading results in .properties file. This should simplify process of Vitro and VIVO interface translation.

What's new?

Added option to export translations with keys and arguments to HTML and parse HTML with javascripts to provide and interface for convinient translation of *.properties files in website context.

How should this be tested?

Enable online translation checkbox in Developer's panel
Try to translate VIVO or Vitro instance, download saved results (Export all), update properties files from Vitro and VIVO (Update file), import saved results from saved file and clean translations.

Interested parties

@VIVO-project/vivo-committers

@litvinovg litvinovg changed the base branch from rel-1.12.0-RC to main October 21, 2021 09:03
@chenejac chenejac added the large PR A large pull request label Dec 14, 2021
@chenejac chenejac requested review from chenejac, a user and gneissone December 14, 2021 10:03
Copy link
Contributor

@chenejac chenejac left a comment

Choose a reason for hiding this comment

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

It works as described. However, I have added a couple of small comments. @litvinovg can you please check those comments before we merge this PR into the repository?

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

There are some spurious whitespaces. Additional concerns of maintaining JavaScript of this nature without a more modern JavaScript dependency management and bundle process. Otherwise, looks good to me.

@chenejac chenejac merged commit bbd714c into vivo-project:main Apr 7, 2022
ghost pushed a commit that referenced this pull request Feb 23, 2023
* Online translation added to Developer panel settings

* Added special characters conversion on file import and export for online translations

* fix: Parse text nodes separately

* fix: broken js on page prevents working developer panel

* fix: workaround for online translations using freemarker template models

* fix: safe way to convert array of objects to array of strings

* fix: convert char codes on read/write property files

* refact: corrected constant names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
large PR A large pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants