feat(i18n): add internationalization support (English + German)#136
Open
Marcel-Holzhauer wants to merge 1 commit into
Open
feat(i18n): add internationalization support (English + German)#136Marcel-Holzhauer wants to merge 1 commit into
Marcel-Holzhauer wants to merge 1 commit into
Conversation
- Add external translation files (i18n/en.xml, i18n/de.xml) - Replace inline translation blocks in XSLT with external lookups - Add xml:lang attribute to schema for language selection - Fix alignment calculations to work with variable-length translations - Add lang attribute to HTML output - Fix Snorkle typo in swiMLPT.xsl - Update README with language support documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds internationalization (i18n) support to swiML. The rendering language is now determined by an optional
xml:langattribute on the<program>element. English and German are supported as initial languages.Changes
New files
i18n/en.xml— English translation file (terms, labels, date format)i18n/de.xml— German translation fileModified files
swiML.xsd— Added optionalxml:langattribute on<program>swiML.xsl— Externalized translations, dynamic alignment calculations,langattribute on HTML outputswiMLPT.xsl— Externalized translations, fixed "Snorkle" typoswimTraining.xsl— Externalized translationsREADME.md— Addedxml:langto usage example, added "Language Support" sectionUsage