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

serge import with parse_rc returns ERROR: Parser plugin didn't provide a key value in a callback. #92

Closed
icnocop opened this issue Nov 16, 2018 · 0 comments · May be fixed by #97
Closed

Comments

@icnocop
Copy link
Contributor

icnocop commented Nov 16, 2018

serge import --dry-run --debug

Loading command plugin: clean_ts
Loading command plugin: gendocs
Loading command plugin: help
Loading command plugin: import
Loading command plugin: sync
Loading command plugin: test_parser
Scanning .serge files in 'C:\serge'... 1 files found

*** DRY RUN ***

*** C:\serge\MyConfig.serge ***

Loading plugin: Serge::Engine::Plugin::parse_rc
Created plugin instance: 'Windows .RC parser plugin'
Validating plugin data
Loading plugin: Serge::Engine::Plugin::serialize_po
Created plugin instance: '.PO (Gettext) Serializer'
Validating plugin data


*** [MyJobId]  ***

*** Will use the full list of destination languages
Path to source resources: [C:/source/MyProject]
Path to localized resources: [C:/source/MyProject/MyResourceFile%LANG%.rc]
Languages: [de,es,fr,it,ja,ko,pt,ru,tr,zh-Hans,zh-Hant]
DB source: [DBI:SQLite:dbname=./translate.db3]
Preloading cache for job 'MyJobId' in namespace 'my_project'...
::phase 'before_job' has no callbacks defined
::phase 'before_update_database_from_source_files' has no callbacks defined

Updating database from source files...

Scanning directory structure...
::phase 'rewrite_path' has no callbacks defined
Scanned in 0.002778 sec, 1 files match the criteria
	MyProject/MyResourceFileENU.rc
::phase 'after_load_file' has no callbacks defined
::phase 'after_load_source_file_for_processing' has no callbacks defined
::phase 'is_file_orphaned' has no callbacks defined
::phase 'can_process_source_file' has no callbacks defined

<snipped>

STRINGTABLE 
[m=,d=,s=1,b=0]
[STRINGTABLE]
BEGIN
[m=,d=,s=1,b=1]
[BEGIN]
    IDS_EMAIL "Email"
[m=,d=,s=1,b=1]
[IDS_EMAIL "Email"]
			ERROR: Parser plugin didn't provide a key value in a callback. Importing translations with this plugin is not possible, unless you use `--disambiguate-keys` option.

From what I've read on a couple of other issues with the same error message, this means that serge doesn't support importing translations using parse_rc.

Thank you.

icnocop added a commit to icnocop/serge that referenced this issue Nov 18, 2018
icnocop added a commit to icnocop/serge that referenced this issue Nov 18, 2018
icnocop added a commit to icnocop/serge that referenced this issue Dec 21, 2018
icnocop added a commit to icnocop/serge that referenced this issue Dec 21, 2018
icnocop added a commit to icnocop/serge that referenced this issue Dec 21, 2018
icnocop added a commit to icnocop/serge that referenced this issue Dec 21, 2018
icnocop added a commit to icnocop/serge that referenced this issue Dec 21, 2018
@icnocop icnocop mentioned this issue Dec 21, 2018
@iafan iafan closed this as completed in #99 Dec 21, 2018
iafan pushed a commit that referenced this issue Dec 21, 2018
icnocop added a commit to icnocop/serge that referenced this issue Mar 8, 2019
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 a pull request may close this issue.

1 participant