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

Add IDs to avoid rewriting during translations #3620

Merged
merged 6 commits into from
Jan 11, 2024

Conversation

remibetin
Copy link
Member

@remibetin remibetin commented Jan 4, 2024

Current Issue:

By default:

Therefore, when main headings, guidelines headings and definitions terms are translated in another language, IDs also change.

Issues include:

  • That does not work properly for non-latin characters. For example, for Simplified Chinese headings, automatically created IDs are generatedID, generatedID-0, etc.
  • Translations checks are more difficult when IDs differ from the original version.
  • Restoring the English IDs after exporting to HTML is very tedious.

Proposed Solution:

Stable IDs are manually added to main headings, guidelines headings and definition terms, so that they are not overwritten by ReSpec during translation.

In this pull request, I have used the currently generated IDs from the live original version.


Preview | Diff

@remibetin
Copy link
Member Author

remibetin commented Jan 4, 2024

Note: The preview is not working well. It cannot get the SC and terms. Is it because my branch is from a forked repo?

@iadawn iadawn changed the base branch from main to remibetin-fix-ids January 11, 2024 12:59
@iadawn iadawn merged commit 4cf2b42 into w3c:remibetin-fix-ids Jan 11, 2024
1 check failed
@remibetin remibetin deleted the ready-for-translations branch January 12, 2024 12:39
iadawn added a commit that referenced this pull request Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants