Skip to content

allow multiple values for some properties if language differs#189

Closed
haansn08 wants to merge 1 commit intoskarim:masterfrom
haansn08:prop-l10n
Closed

allow multiple values for some properties if language differs#189
haansn08 wants to merge 1 commit intoskarim:masterfrom
haansn08:prop-l10n

Conversation

@haansn08
Copy link
Copy Markdown

This PR allows some properties (namely NAME, SUMMARY, DESCRIPTION and LOCATION) to be localized.

Here is an example item from a shopping list localized in German and Japanese which the current validator recognizes as invalid since the SUMMARY property is found twice. The logic in this PR counts the languages separately.

BEGIN:VTODO
DTSTAMP:20230916T091036Z
STATUS:COMPLETED
SUMMARY;LANGUAGE=de:Milch
SUMMARY;LANGUAGE=ja:牛乳
END:VTODO

@haansn08
Copy link
Copy Markdown
Author

I no longer think this is the correct way to implement this. Instead this functionality should be implemented with the ALTID parameter as described in https://datatracker.ietf.org/doc/html/rfc6350#section-5.4

@haansn08 haansn08 closed this Dec 27, 2024
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