Open Nikulinnn opened 3 years ago
Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:
Thanks for raising this 😊 it looks like sphinx has a translatable
node type which might help here. I'll add this in, but may ask you to run the change with an example as I'm not familiar with building with translation!
@foster999 , I will gladly test the change once it is available. Thank you very much for taking the time to work on this issue!
Thanks @Nikulinnn, please could you try with branch 137-translatable-tabs
? This can be installed using pip install git+https://github.com/executablebooks/sphinx-tabs.git@137-translatable-tabs
.
Failing this, please could you provide (or point to) a minimal example that I can run for testing.
@foster999 , thank you for the update! Unfortunately, this fix did not solve the issue. I will make and attach an archive with an example for testing. Thanks once again for taking the time to fix this issue. I will be right back.
@Nikulinnn Hi! Did you had time to check whats going wrong in the solution? Or should I provide some test files? Stumbling on the same issue as well.
@migasQ , I am sorry for the delay in my answer. I have not had the time to provide a test example so far. I will be able to get back to this subject in a couple weeks. If you happen to have the time to provide an example prior this time, please, do so.
No problem, here's an example I compiled. Need to run pip first with the requirements.txt
file (there are some unnecessary packages in the requirements.txt
but I had no time to clean it up). When building it with make html
(default German) and make -e SPHINXOPTS="-D language='en'" html
(English) you will notice that the tab headers are not translated:
Example: example_tab.tar.gz
Hi, and thanks for this great extension! I am also interested in being able to translate tab headings, although I don't think I can help much, apart from testing the fix :)
Thanks, and have a great day!
Describe the problem
Tab headers are generated to po files and therefore can be translated. However, translations do not apply once building the translated version.
I am not sure if this is a problem within the extension or not, but any hints on how to fix it would much appreciated.
PS thanks for a great extension!
Link to your repository or website
No response
Steps to reproduce
Add a tabs directive to the document, for example:
The version of Python you're using
No response
Your operating system
No response
Versions of your packages
No response
Additional context
No response