Skip to content

Commit

Permalink
add some translations for foratter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Eichar committed Jan 30, 2015
1 parent fd0e5b8 commit a81fc79
Show file tree
Hide file tree
Showing 6 changed files with 117 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<strings>
<noFormatName>Aucun nom de format</noFormatName>
<noThesaurusName>Pas de nom de thésaurus</noThesaurusName>
<wms-link>URLs de serveur Web Map</wms-link>
<general>Général</general>
<kml-link>Fichier KML pour téléchargement</kml-link>
<link-link>Lien</link-link>
</strings>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<strings>
<general>Allgemein</general>
<kml-link>KML Datei zum herunterladen</kml-link>
<link-link>Verknüpfung</link-link>
<noFormatName>Kein Formatname bereitgestellt</noFormatName>
<noThesaurusName>Kein Thesaurus Name</noThesaurusName>
<wms-link>Web Map Server URLs</wms-link>
</strings>
33 changes: 32 additions & 1 deletion transifex/convertFromTransifex.sh
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
cd
#!/bin/bash

# resolve links - so that script can be called from any dir
PRG="$0"

while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done

# Get standard environment variables
TRANSIFEX_DIR=`pwd`/`dirname "$PRG"`

function convert {
FILE="$TRANSIFEX_DIR/downloadedFromTransifex/$1.json"
if [ -f $FILE ]; then
$TRANSIFEX_DIR/translation_converter -from "$FILE" -to "$TRANSIFEX_DIR/../$2.xml" -format "$3"
fi
}

set -x
convert for_use_core-geonetwork_webwebapplocformatterjson_fr web/src/main/webapp/loc/fre/xml/formatter simple
convert for_use_core-geonetwork_webwebapplocformatterjson_de web/src/main/webapp/loc/ger/xml/formatter simple
convert for_use_core-geonetwork_webwebapplocformatterjson_it web/src/main/webapp/loc/ita/xml/formatter simple
convert for_use_core-geonetwork_iso19193formatterstrings_fr schemas/iso19139/src/main/plugin/iso19139/formatter/loc/fre/strings simple
convert for_use_core-geonetwork_iso19193formatterstrings_de schemas/iso19139/src/main/plugin/iso19139/formatter/loc/ger/strings simple
convert for_use_core-geonetwork_iso19193formatterstrings_it schemas/iso19139/src/main/plugin/iso19139/formatter/loc/ita/strings simple
23 changes: 23 additions & 0 deletions web/src/main/webapp/loc/fre/xml/formatter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<strings>
<noUuidInLink>Pas de UUID dans le lien</noUuidInLink>
<overview>Aperçu</overview>
<parent>Parent</parent>
<parent-link>Parent</parent-link>
<service-link>Service</service-link>
<complete>Complet</complete>
<dataset-link>Données</dataset-link>
<fcat-link>Catalogue de caractéristiques</fcat-link>
<xml>XML</xml>
<sibling-link>Frères et soeurs</sibling-link>
<children-link>Enfant</children-link>
<hassource-link>A la sources</hassource-link>
<hierarchy>Hiérarchie</hierarchy>
<datasets-link>Données</datasets-link>
<links>Liens</links>
<source-link>Sources</source-link>
<services-link>Services</services-link>
<testString>Cette chaine de caractères est là pour un test, ne pas la supprimer</testString>
<abstract>Résumé</abstract>
<associated-link>Associé</associated-link>
<related-link>Associé</related-link>
</strings>
23 changes: 23 additions & 0 deletions web/src/main/webapp/loc/ger/xml/formatter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<strings>
<dataset-link>Datenbestand</dataset-link>
<fcat-link>Feature-Katalog</fcat-link>
<parent>Eltern</parent>
<sibling-link>Geschwister</sibling-link>
<xml>XML</xml>
<associated-link>Verbunden</associated-link>
<datasets-link>Datenbestände</datasets-link>
<hassource-link>hat eine Quelle</hassource-link>
<links>Links</links>
<services-link>Dienste</services-link>
<testString>Dieser dient für Tests, bitte nicht löschen!</testString>
<abstract>Kurzbeschreibung</abstract>
<noUuidInLink>Keine UUID im Link vorhanden</noUuidInLink>
<parent-link>Eltern</parent-link>
<children-link>Kinder</children-link>
<complete>vollständig</complete>
<hierarchy>Hierarchie</hierarchy>
<overview>Überblick</overview>
<related-link>verwandt</related-link>
<service-link>Dienst</service-link>
<source-link>Quellen</source-link>
</strings>
23 changes: 23 additions & 0 deletions web/src/main/webapp/loc/ita/xml/formatter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<strings>
<complete>Complete</complete>
<datasets-link>Datasets</datasets-link>
<hierarchy>Hierarchy</hierarchy>
<noUuidInLink>No uuid in link</noUuidInLink>
<services-link>Services</services-link>
<abstract>Descrizione</abstract>
<sibling-link>Siblings</sibling-link>
<related-link>Related</related-link>
<source-link>Sources</source-link>
<xml>XML</xml>
<associated-link>Associated</associated-link>
<dataset-link>Dataset</dataset-link>
<overview>Visione generale</overview>
<parent>Parent</parent>
<parent-link>Parent</parent-link>
<testString>This String is here for testing don't delete</testString>
<children-link>Children</children-link>
<fcat-link>Feature Catalog</fcat-link>
<hassource-link>Has Source</hassource-link>
<links>Links</links>
<service-link>Service</service-link>
</strings>

0 comments on commit a81fc79

Please sign in to comment.