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

generate tools #41

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

tcoupin
Copy link
Contributor

@tcoupin tcoupin commented Sep 10, 2019

Bash script generate.sh helps to maintains up to date i18n files. It use en_US files to detect all files and keys from latest version et try to fill value for desired language from latest available version for this language.

Usage:

bash ./generate.sh fr_CA => generate fr_CA from most recent version
bash ./generate.sh fr_FR develop => generate fr_FR from develop branch

Process:

  1. Create properties files by copying files from en_US, rename then with language code, and removing value inside.
  2. Extract files from most recent version for this language (branch dataverse-vXXX) or from the specified branch
  3. Fill values by searching them in extracted files, in the same filename or in all files
  4. Print "not found" keys (new keys)

@tcoupin tcoupin changed the title generate tools [WIP] generate tools Sep 11, 2019
@tcoupin tcoupin changed the title [WIP] generate tools generate tools Sep 18, 2019
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.

1 participant