Skip to content

Translation

Jody Garnett edited this page Feb 24, 2022 · 5 revisions

Correcting a translation is an example of a quick pull-request that can be made directly in GitHub.

  1. Login in to GitHub, you will need an account.

  2. Navigate to the file you wish to change and click the edit icon

  3. Use the editor to modify the file.

  4. Scroll to the bottom of the page, provide a commit comment and submit.

    GitHub will:

    • Create a fork and submit a pull request on your behalf; or
    • Immediately make the change for those with commit access

Although small corrections like this are non-functional you are asked to respect and agree to project contributing polices.

Presentation of values

These definitions are formally defined by a third-party, however if using war-overlay technique you may wish to customize these descriptions with additional clarifications for your organization.

Example:

    <entry>
      <code>publication</code>
      <label>Publication</label>
      <description>Date identifies when the resource was issued</description>
    </entry>
    <entry>
      <code>publication</code>
      <label>Publication</label>
      <description>Date à laquelle la ressource est publiée</description>
    </entry>

Translation of plugin labels and tooltips

Internationalization of plugin contents is managed in the plugin/iso19139.ca.HNAP/loc folder:

The iso19139.ca.HNAP values above supplement and override the core-geonetwork plugin/iso19139/loc/ contents:

Example strings.xml:

  <relatedResources>Related services and linked data</relatedResources>
  <relatedResources>Service disponible et données associées</relatedResources>

Example labels.xml:

  <element name="code">
    <label>System code</label>
    <description>Code. i.e. EPSG code.</description>
  </element>
  <element name="code">
    <label>Code du système</label>
    <description>Code. Par exemple, le code epsg.</description>
  </element>

Translation of error messages and warnings

Check loc folders for schematron-rules-* files containing error messages and warnings:

The iso19139.ca.HNAP schematron-rules-* files supplement and override the iso19139 error messages and warnings:

Example:

  <invalidURLCheck>Online Resource Link Check</invalidURLCheck>
  <invalidURLCheck>Vérification des URLs</invalidURLCheck>