{"id":18841180,"url":"https://github.com/dcm4che/dcm4chee-arc-lang","last_synced_at":"2025-04-14T07:08:07.152Z","repository":{"id":50498778,"uuid":"238893290","full_name":"dcm4che/dcm4chee-arc-lang","owner":"dcm4che","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-24T15:03:47.000Z","size":9849,"stargazers_count":5,"open_issues_count":7,"forks_count":15,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-14T07:08:00.831Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcm4che.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-07T10:07:37.000Z","updated_at":"2025-03-24T15:03:54.000Z","dependencies_parsed_at":"2023-02-10T01:46:33.407Z","dependency_job_id":"cd3716bb-e21b-42da-b03f-8e347e8b3a64","html_url":"https://github.com/dcm4che/dcm4chee-arc-lang","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcm4che%2Fdcm4chee-arc-lang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcm4che%2Fdcm4chee-arc-lang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcm4che%2Fdcm4chee-arc-lang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcm4che%2Fdcm4chee-arc-lang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcm4che","download_url":"https://codeload.github.com/dcm4che/dcm4chee-arc-lang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837280,"owners_count":21169374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T02:50:20.086Z","updated_at":"2025-04-14T07:08:07.119Z","avatar_url":"https://github.com/dcm4che.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Resources for providing different languages for the Web UI of dcm4chee-arc-light\n\nThere are two different types of language specific resources:\n- a key/value map in JSON format used by the UI for labeling UI components, and\n- various [JSON Schema](https://json-schema.org/) files, specifying the name, type, description, default value\n  of configuration attributes of various configuration entities.\n\nFirst are located under `src/main/webapp/##.json`, second under `src/main/webapp/##/assets/schema/`,\nwith `##` as the [ISO 639-1 two-letter code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)\nof the language (e.g. `es` for Spain, `pt` for Portuguese, `ru` for Russian). \n\nFor adding support of an additional language, copy `src/main/webapp/en.json` to `src/main/webapp/##.json`,\nwith `##` as the [ISO 639-1 two-letter code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) of the new\nlanguage and replace the English property values by their translations.\n\nCreate a new directory `src/main/webapp/##/assets/schema/` and copy the JSON Schema files from `src/main/webapp/en/assets/schema/`\nto the new directory and replace the English values for `\"title\"` and `\"description\"` JSON properties.\n\nAlternatively to directly editing JSON Schema files, you may translate title and description separated by `|` in\ncorresponding key/value properties files, located in `src/props`, and committing the modified files under a\nsubdirectory named with the [ISO 639-1 two-letter code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)\nof the language:\n\n1. The English version of the key/value properties files are created/updated from the JSON Schema files by invoking\ndcm4che's utility [json2props](https://github.com/dcm4che/dcm4che/tree/master/dcm4che-tool/dcm4che-tool-json2props):\n   ```\n   $ json2props src/main/webapp/en/assets/schema src/props/en\n   src/main/webapp/en/assets/schema/hl7ExportRule.schema.json=\u003esrc/props/en/hl7ExportRule.props\n   src/main/webapp/en/aassets/schema/hl7OrderScheduledStation.schema.json=\u003esrc/props/en/hl7OrderScheduledStation.props\n   ...\n   src/main/webapp/assets/en/schema/metrics.schema.json=\u003esrc/props/en/metrics.props\n   ```\n\n2. Translated versions of the key/value properties files for one language can be converted back to JSON Schema files by\ninvoking (e.g.)\n   ```\n   $ json2props src/main/webapp/en/assets/schema src/props/hi src/main/webapp/hi/assets/schema\n   src/props/hi/hl7ExportRule.props=\u003esrc/main/webapp/hi/assets/schema/hl7ExportRule.schema.json\n   src/props/hi/hl7OrderScheduledStation.props=\u003esrc/main/webapp/hi/assets/schema/hl7OrderScheduledStation.schema.json\n   ...\n   src/props/hi/metrics.props=\u003esrc/main/webapp/hi/assets/schema/metrics.schema.json\n   ```\n   \n   If the translated key/value properties files miss some (new) entries already defined in the English version of the\n   JSON Schema files in `src/main/webapp/en/assets/schema`, the created language specific JSON Schema file are supplemented\n   with the entries from the English version.\n\n3. Converting the so created JSON Schema files back to the language specific key/value properties files by invoking (e.g.) \n   ```\n   $ json2props src/main/webapp/hi/assets/schema src/props/hi\n   src/main/webapp/hi/assets/schema/hl7ExportRule.schema.json=\u003esrc/props/hi/hl7ExportRule.props\n   src/main/webapp/hi/assets/schema/hl7OrderScheduledStation.schema.json=\u003esrc/props/hi/hl7OrderScheduledStation.props\n   :\n   src/main/webapp/hi/assets/schema/metrics.schema.json=\u003esrc/props/hi/metrics.props\n   ```\n   will add the previous missing entries in the key/value properties files, where title and description in English\n   separated by `|` can be replaced by translated terms.\n\n4. After the replacement of the supplemented new properties, the language specific JSON Schema files can be updated with\nthe new translated terms by converting the updated key/value properties files back to JSON Schema files as described in 2..\n    \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcm4che%2Fdcm4chee-arc-lang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcm4che%2Fdcm4chee-arc-lang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcm4che%2Fdcm4chee-arc-lang/lists"}