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

parse_android doesn't support importing #7

Closed
imankulov opened this issue Nov 20, 2015 · 4 comments
Closed

parse_android doesn't support importing #7

imankulov opened this issue Nov 20, 2015 · 4 comments

Comments

@imankulov
Copy link

Hi! Thanks for making serge Open Source!

When trying to import my current Android translations, I get back with a message

$ serge import myproject_android.serge

*** /home/pootle/serge-workspace/myproject_android.serge ***



*** [myproject_android]  ***

Preloading properties...
Path to source resources: [/home/pootle/serge-workspace/myproject_android/android/values]
Path to localized resources: [/home/pootle/serge-workspace/myproject_android/android/values-%LOCALE%/%FILE%]
Languages: [af,ar,bg,bn,bn_IN,ca,...,vi,zh_CN,zh_TW]
DB source: [DBI:SQLite:dbname=/home/pootle/serge-workspace/myproject_android.db3]
Preloading cache for job 'myproject_android' in namespace 'myproject_android'...

Updating database from source files...

Scanning directory structure...
Scanned in 0.000882000000000049 sec, 39 files match the criteria
        strings.xml
                        ERROR: Parser plugin didn't provide a key value in a callback. Importing translations with this plugin is not possible.

Is that right, you don't support import from Android XML files yet? Is there a workaround to populate the project with already translated strings?

@iafan iafan closed this as completed in 6c8b010 Nov 20, 2015
@iafan
Copy link
Contributor

iafan commented Nov 20, 2015

Should be fixed now. Try with the version from master

@imankulov
Copy link
Author

It works. Thank you!

@iafan
Copy link
Contributor

iafan commented Nov 20, 2015

@imankulov, one small comment on your setup: I'd recommend using canonical lowercase ISO language codes in Serge configs: bn-in zh-cn zh-tw and so on. This will allow language-based config macros to work properly. See https://serge.io/docs/configuration-files/reference/ (on this page, search for %LOCALE%, %CULTURE%, etc.)

@imankulov
Copy link
Author

Got it. Thanks for the hint

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

No branches or pull requests

2 participants