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

i18n all options menu #6

Merged
merged 14 commits into from
Jul 13, 2021
Merged

i18n all options menu #6

merged 14 commits into from
Jul 13, 2021

Conversation

rohank07
Copy link
Collaborator

@rohank07 rohank07 requested a review from skyeturriff June 29, 2021 20:14
ca-scribner and others added 4 commits June 30, 2021 16:10
…mbers)

* Adds signatures to numericPref and checkboxPref that parse the preference Title and Description and pass them to the element in the Pane.  Some text in the EditingPreferencesPane has been ported to the user-prefs-schema.json because it is more descriptive
* Above signatures add tool tips to any option that has a description in the users-prefs-schema.json file.  This adds tooltips to many options that previously did not have them.

Most Titles/Descriptions are the same or very similar to the static strings that were in EditingPreferencesPane before, but some have slight changes.  Need to check whether there's any material reversions that have occurred.

Enumerators and statically defined headings are still todo
* Add human readable text corresponding to enumerators in user-prefs-schema.json.  Add handling of these in generate-prefs.R to export human readable enumerators to translation files/use those translations instead of hard coded text in EditingPreferencesPane.java.
* Add convenience signatures to SelectWidget
* Convert EditingPreferencesPane.java's SelectWidget's to i18n
* Remove CommandConstants.properties file that should have been removed previously
* Minor updates to user-prefs-schema.json to reconcile differences with hard-coded strings in EditingPreferencesPane.java

public class ChooseEncodingDialog extends ModalDialog<String>
{
// TODO: i18n
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there still a TODO for this one?

@skyeturriff
Copy link
Collaborator

skyeturriff commented Jul 12, 2021

Looks like quite a few are needing changes to user-prefs-schema.json in order to be i18n'd. Let's tackle these in a separate issue, so don't worry about them for this PR.
image

@skyeturriff
Copy link
Collaborator

I believe these dropdown vals can be i18n'd through ZoteroConnectionWidget (looks like they're hardcoded in the first couple lines of the constructor)
image

@skyeturriff
Copy link
Collaborator

A few more missing, these are hardcoded in PythonInterpreterSelectionDialog
image

@skyeturriff
Copy link
Collaborator

Just missing on the Cancel button
image

@rohank07 rohank07 merged commit 19833b7 into ca-scribner:i18n-init Jul 13, 2021
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