Skip to content

fix init.doc field on translation.json - #1996

Open
HazizCISSE wants to merge 1 commit into
robotframework:masterfrom
HazizCISSE:fix-translation-init-json-field
Open

fix init.doc field on translation.json#1996
HazizCISSE wants to merge 1 commit into
robotframework:masterfrom
HazizCISSE:fix-translation-init-json-field

Conversation

@HazizCISSE

Copy link
Copy Markdown

I'm translating SeleniumLibrary in french with robotframework-seleniumlibrary-translation.
There is an issue on the json translation file generated by the command : "selib translation robotframework_seleniumlibrary_translation/translation_xx.json".

The init.doc field contains the same text as intro.doc field. So when you generate a html documentation with libdoc command : "python3 -m robot.libdoc "SeleniumLibrary::language=fr" selenium_xxx.html".
The generated file contains the introduction twice : once in "introduction" section and in "importing" section.

I'v tried this modification on SeleniumLibrary and it worked :
on line 48 of "SeleniumLibrary/entry/translation.py" :
old :  inspect.getdoc(selib)
new : inspect.getdoc(selib.init )

The generated json contains the right text in init.doc field and the html documentation introduction section is ok.

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 this pull request may close these issues.

1 participant