Skip to content

Fixes 1192462 - Augment import-locales.sh and/or update-xliff.py#915

Merged
st3fan merged 1 commit intomasterfrom
st3fan/Bug1192462OnlyImportCompleteLocales
Aug 12, 2015
Merged

Fixes 1192462 - Augment import-locales.sh and/or update-xliff.py#915
st3fan merged 1 commit intomasterfrom
st3fan/Bug1192462OnlyImportCompleteLocales

Conversation

@st3fan
Copy link
Contributor

@st3fan st3fan commented Aug 12, 2015

This change to import-locales.sh adds a --only-complete flag to the script. If this is specified then the script will remove locales that are not complete, after checking out the initial l10n repository.

To keep things simple, the list of incomplete locales is kept inside the script. This means that before we do a final build, this list needs to be updated. The best place to see what locales are ready to go is the [https://l10n.mozilla-community.org/~flod/webstatus/?product=firefox-ios](L10N Dashboard).

Copy link
Contributor

Choose a reason for hiding this comment

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

What about using an array for readability?

INCOMPLETE_LOCALES=(
    "da"
    "eo"
    "es"
    "gl"
    "is"
    "ko"
    "lt"
    "ru"
    "sk"
    "son"
    "tl"
    "uz"
    "zh-CN"
    "zh-TW"
)

for i in "${!INCOMPLETE_LOCALES[@]}"; do
  rm -rf firefox-ios-l10n/${INCOMPLETE_LOCALES[$i]}
done

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you that looks nice. I am not a great shell scripter.

…llow the list of included locales to be specified
@st3fan st3fan force-pushed the st3fan/Bug1192462OnlyImportCompleteLocales branch from 5c3f3f5 to 5dddf76 Compare August 12, 2015 22:08
st3fan added a commit that referenced this pull request Aug 12, 2015
…eteLocales

Fixes 1192462 - Augment import-locales.sh and/or update-xliff.py
@st3fan st3fan merged commit 03e97cf into master Aug 12, 2015
@farhanpatel farhanpatel deleted the st3fan/Bug1192462OnlyImportCompleteLocales branch October 6, 2016 07:02
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.

2 participants