-
Notifications
You must be signed in to change notification settings - Fork 85
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
Online translation #241
Conversation
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.
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?
api/src/main/java/edu/cornell/mannlib/vitro/webapp/i18n/freemarker/I18nStringTemplateModel.java
Outdated
Show resolved
Hide resolved
api/src/main/java/edu/cornell/mannlib/vitro/webapp/i18n/I18nBundle.java
Outdated
Show resolved
Hide resolved
webapp/src/main/webapp/templates/freemarker/page/partials/developerPanel.ftl
Show resolved
Hide resolved
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.
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.
* 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
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