Open Arc676 opened 7 years ago
Hi @Arc676, have you tried the --appname
option?
I tried localize-mainmenu de.xliff de_done.xliff --appname 'Crystal Ball Mac'
and I got the same output.
Okay strange. I tried to reproduce it with my macOS app without success. Could you email your de.xliff?
I've attached the XLIFF file in a ZIP. de.xliff.zip
I'm thinking it might have something to do with targets? Crystal Ball Mac is the Mac target in a project that also includes an iOS target named Crystal Ball.
I get this output running it with your de.xliff
:
$ localize-mainmenu de.xliff de_done.xliff --appname 'Crystal Ball Mac'
no 'de' translation found for key 'Crystal Ball Mac' in file 'Crystal Ball Mac/Base.lproj/Main.storyboard'
no 'de' translation found for key 'Main Menu' in file 'Crystal Ball Mac/Base.lproj/Main.storyboard'
no 'de' translation found for key 'Crystal Ball Mac Help' in file 'Crystal Ball Mac/Base.lproj/Main.storyboard'
no 'de' translation found for key 'Data Detectors' in file 'Crystal Ball Mac/Base.lproj/Main.storyboard'
no 'de' translation found for key 'Crystal Ball Mac' in file 'Crystal Ball Mac/Base.lproj/Main.storyboard'
I'm not sure if this is expected behavior or if I'm just using the command incorrectly.
I exported to XLIFF and ran
localize-mainmenu de.xliff de_done.xliff
and got these warnings:Is there a way to let
localize-mainmenu
know what the app name is so it can translate words like 'Hide' and 'Quit'?