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_pot doesn't support importing #8

Closed
imankulov opened this issue Nov 23, 2015 · 1 comment
Closed

parse_pot doesn't support importing #8

imankulov opened this issue Nov 23, 2015 · 1 comment

Comments

@imankulov
Copy link

I guess this is similar to #7.

$ serge import myproject.serge

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

*** [myproject]  ***

Preloading properties...
Path to source resources: [/home/pootle/serge-workspace/repos/myproject/templates]
Path to localized resources: [/home/pootle/serge-workspace/repos/myproject/%LOCALE%/%PATH%%NAME%.po]
Languages: [ar,bg,bn,ca,cs,cy,da,de,el,en-gb,es,...,uk,vi,zh-cn,zh-tw]
DB source: [DBI:SQLite:dbname=/home/pootle/serge-workspace/serge.db3]
Preloading cache for job 'myproject' in namespace 'myproject'...

Updating database from source files...

Scanning directory structure...
Scanned in 0.000296 sec, 1 files match the criteria
        messages.pot
                        ERROR: Parser plugin didn't provide a key value in a callback. Importing translations with this plugin is not possible.

Is there anything I can do with this? Thanks!

@iafan iafan closed this as completed in b2a3c7e Nov 23, 2015
@iafan
Copy link
Contributor

iafan commented Nov 23, 2015

Yes, historically we at Evernote didn't use serge import much, so many plugins don't export unique keys needed for alignment. Adding these is pretty easy, so please report any other plugins that you need serge import to work with, and I'll update them; then I'll deal with low-priority ones.

iafan pushed a commit that referenced this issue Dec 4, 2015
- Fix .pot parser to support importing (should finally resolve #8)
- Adjust .xliff parser to be aware of import mode
- Add `--import-mode` command-line switch to `test-parser` command to test parsers in import mode
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