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

Machine translator failure after adding new language to project #215

Closed
jamiegough opened this issue Jan 7, 2021 · 1 comment
Closed
Labels

Comments

@jamiegough
Copy link
Contributor

jamiegough commented Jan 7, 2021

I'm running BartyCrouch with Microsoft Machine Translator. This worked fine up until I added a localisation language to the XCode project that isn't supported by Microsoft Machine Translator (Zulu - zu.lproj).

Expected Behavior

Continue translating files and skip the language (Zulu) that isn't supported by the translator

Actual Behavior

Fails when it reaches a file that is in the unsupported language with BartyCrouch: The operation couldn’t be completed. (MungoHealer.MungoFatalError error 1.)

Is there a way to skip over unsupported languages throughout the project (zu.lproj) and continue translating for all other localisable files? The translations for Zulu will be added to the project manually.

.toml Setup:

[update]
tasks = ["interfaces", "code", "transform", "normalize", "translate"]

[update.translate]
paths = ["Components", "Storyboards", "Localisation"]
secret = "XXX"
sourceLocale = "en"

[update.interfaces]
paths = ["Components", "Storyboards", "Localisation"]
defaultToBase = false
ignoreEmptyStrings = false
unstripped = false

[update.code]
codePaths = ["Components", "Storyboards", "Localisation"]
localizablePaths = ["Components", "Storyboards", "Localisation"]
defaultToKeys = false
additive = true
unstripped = false
plistArguments = true

[update.transform]
codePaths = ["Components", "Storyboards", "Localisation"]
localizablePaths = ["Components", "Storyboards", "Localisation"]
transformer = "foundation"
supportedLanguageEnumPath = "."
typeName = "BartyCrouch"
translateMethodName = "translate"

[update.normalize]
paths = ["Components", "Storyboards", "Localisation"]
sourceLocale = "en"
harmonizeWithSource = true
sortByKeys = true

[lint]
paths = ["Components", "Storyboards", "Localisation"]
duplicateKeys = true
emptyValues = true

Build Output

...
Task 'Code Transform' took 0.584 seconds.
Starting Task 'Normalize' ...
Task 'Normalize' took 0.54 seconds.
Starting Task 'Translate' ...
info: BartyCrouch: Translated file '/Users/Jamie/Documents/Projects/Tribe/Development/iOS/Components/TableView/af.lproj/ScheduleTableViewCell.strings' with 0 changes.
info: BartyCrouch: Translated file '/Users/Jamie/Documents/Projects/Tribe/Development/iOS/Components/TableView/fr.lproj/ScheduleTableViewCell.strings' with 0 changes.
error: BartyCrouch: The operation couldn’t be completed. (MungoHealer.MungoFatalError error 1.)
Starting Task 'Lint' ...
...

@jamiegough jamiegough added the bug label Jan 7, 2021
@jamiegough jamiegough changed the title Machine Translation Failure Machine translator failure after adding new language to project Jan 7, 2021
@Jeehut
Copy link
Member

Jeehut commented Jan 16, 2021

Fixed by #219. Preparing a release now ...

@Jeehut Jeehut closed this as completed Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants