Skip to content

Commit d99748c

Browse files
author
Jesse Eichar
committed
add transifex configuration and commandline tool
1 parent e1191e9 commit d99748c

12 files changed

+2025
-2116
lines changed

.tx/config

-3
This file was deleted.

transifex-localization-files.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"KEYVALUEJSON":[{
3+
"dir" : "web-ui/src/main/resources/catalog/locales/",
4+
"filename" : "core",
5+
"name" : "Angular UI Common Strings",
6+
"slug" : "core",
7+
"priority" : "0",
8+
"categories" : ["Angular_UI"]
9+
},{
10+
"dir" : "web-ui/src/main/resources/catalog/locales/",
11+
"filename" : "admin",
12+
"name" : "Angular UI Admin Strings",
13+
"slug" : "admin",
14+
"priority" : "0",
15+
"categories" : ["Angular_UI", "admin"]
16+
},{
17+
"dir" : "web-ui/src/main/resources/catalog/locales/",
18+
"filename" : "editor",
19+
"name" : "Angular UI Editor Strings",
20+
"slug" : "editor",
21+
"priority" : "0",
22+
"categories" : ["Angular_UI", "editor"]
23+
}]
24+
}

transifex-sync.groovy

-35
This file was deleted.

transifex/Readme.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The binaries in this folder are from the https://github.com/jesseeichar/golang-transifex project.
2+
3+
Upload
4+
------
5+
6+
Upload all the 'source language' (default english) files defined in the ../transifex-localization-files.json configuration file.
7+
Optionally also upload translations.
8+
9+
Transifex has the concept of "resources". Each resource represents a set of translation files for all languages. There is a source language which contains all strings that need to be translated. This file is not editable. There are also any number of "translations" for a "resource". Each translation are all strings in a particular language that have been translated.
10+
11+
Running the upload command will:
12+
13+
1. Create all resources in the configuration file that are not currently in transifex
14+
2. Upload the contents of the 'source language' translations file.
15+
3. If a resource was created all translations will be uploaded
16+
17+
18+
Download
19+
--------
20+
21+
All translations will be downloaded and written to the appropriate files. This will overwrite the previous files on disk without warning but if there is a problem git can be used to roll back the changes.

transifex/download

4.99 MB
Binary file not shown.

transifex/upload

4.99 MB
Binary file not shown.

web-ui/src/main/resources/catalog/locales/en-admin.json

+735-802
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1,151 +1,137 @@
11
{
2-
"catalog": "catalog",
3-
"poweredBy": "Powered by GeoNetwork opensource",
4-
"username": "User name",
5-
"password": "Password",
6-
"rememberMe": "Remember me",
7-
"signIn": "Sign in",
8-
"signedInAs": " ",
9-
"needHelp": "Need help",
10-
"docNotFound": "<strong>Warning !</strong> Page <a href='{{page}}'>{{page}}</a> not found in documentation.",
11-
2+
"BadParameterEx": "Wrong parameter",
3+
"Editor": "Editor",
4+
"Keywords": "Keywords",
125
"METADATA": "Metadata",
13-
"TEMPLATE": "Template",
6+
"RegisteredUser": "Registered user",
7+
"Reviewer": "Reviewer",
148
"SUB_TEMPLATE": "Directory entry",
15-
16-
"eng": "English",
17-
"fre": "Français",
9+
"TEMPLATE": "Template",
10+
"UserAdmin": "User administrator",
11+
"_cat": "Category",
12+
"_groupOwner": "Group",
13+
"_groupPublished": "Published in that group",
14+
"_indexingError": "Indexing error",
15+
"_source": "Catalog",
16+
"add": "Add",
17+
"address": "Address",
18+
"adminConsole": "Admin console",
19+
"any": "Full text",
20+
"anyPlaceHolder": "Search ...",
1821
"ara": "عربي",
22+
"by": "by",
1923
"cat": "Català",
24+
"catalog": "catalog",
2025
"chi": "中文",
26+
"city": "City",
27+
"comments": "Comment",
28+
"contactDetailsSentTo": "An email has been sent to ",
29+
"country": "Country",
30+
"createAnAccount": "Create an account",
31+
"createDateYear": "Creation year",
32+
"createDateYears": "Years",
33+
"dataset": "Dataset",
34+
"day": "Day",
35+
"denominators": "Scale denominators",
36+
"docNotFound": "<strong>Warning !</strong> Page <a href='{{page}}'>{{page}}</a> not found in documentation.",
2137
"dut": "Nederlands",
38+
"east": "East",
39+
"editorBoard": "Add new record",
40+
"email": "Email",
41+
"eng": "English",
42+
"errorEmailAddressAlreadyRegistered": "Email address already registered.",
43+
"errorIs": "Error is ",
44+
"featureCatalog": "Feature catalog",
45+
"feebackSent": "Your message has been sent to the catalog manager.",
46+
"feedbackNotEnable": "Feedback is not enabled.",
47+
"filter": "Filter",
48+
"filterSearch": "Display search options",
2249
"fin": "Suomeksi",
50+
"forgetDetails": "Forgotten your details?",
51+
"forgetDetailsInfo": "Use password recovery to reset it.",
52+
"fre": "Français",
53+
"from": "From",
2354
"ger": "Deutsch",
24-
"ita": "Italiano",
25-
"nor": "Norsk",
26-
"por": "Рortuguês",
27-
"rus": "Русский",
28-
"spa": "Español",
29-
"tur": "Türkçe",
30-
"pol": "Polski",
31-
32-
"title": "Title",
33-
34-
"east": "East",
35-
"west": "West",
36-
"north": "North",
37-
"south": "South",
38-
55+
"groupOwners": "Groups",
3956
"hour": "Hour",
40-
"day": "Day",
57+
"inspireThemes": "INSPIRE themes",
58+
"ita": "Italiano",
59+
"keyword": "Keyword",
60+
"keywordFilter": "Filter keyword",
61+
"keywords": "Keywords",
62+
"map": "Map",
63+
"metadataPOCs": "Contact for the metadata",
4164
"month": "Month",
42-
"year": "Year",
43-
44-
"add": "Add",
45-
"save": "Save",
46-
47-
"adminConsole": "Admin console",
48-
"editorBoard": "Add new record",
65+
"msgNoCatalogInfo": "Could not retrieved catalog information.",
66+
"msgNoUserInfo": "Could not retrieve user details.",
67+
"msgUserAuthenticated": "User {{username}} authenticated.",
68+
"name": "Name",
4969
"needAnAccount": "Need an account ?",
5070
"needAnAccountInfo": "Then sign right up, it only takes a minute.",
51-
"createAnAccount": "Create an account",
52-
"forgetDetails": "Forgotten your details?",
53-
"forgetDetailsInfo": "Use password recovery to reset it.",
54-
"recoverPassword": "Forgot your password",
55-
"userPreferences": "User preferences",
56-
"userDetails": "User details",
57-
"notifications": "Notifications",
58-
"signout": "Sign out",
59-
60-
"name": "Name",
61-
"surname": "Surname",
62-
"requestedProfile": "Requested profile",
63-
"contactDetailsSentTo": "An email has been sent to ",
64-
"errorEmailAddressAlreadyRegistered": "Email address already registered.",
71+
"needHelp": "Need help",
6572
"newAccountInfo": "When you request an account an email will be sent to you with your user details. If an advanced user profile is requested, the catalog administrator will analyze your request and get back to you.",
66-
"usernameHelp": "Name to use when sign in",
67-
"email": "Email",
73+
"next": "Next",
74+
"noRecordFound": "No record found.",
75+
"nor": "Norsk",
76+
"north": "North",
77+
"notifications": "Notifications",
78+
"orgName": "Contact for the resource",
79+
"orgNames": "Contact for the resource",
6880
"organisation": "Organisation",
69-
"address": "Address",
70-
"zip": "ZIP",
71-
"state": "State",
72-
"city": "City",
73-
"country": "Country",
74-
"register": "Register",
75-
"passwordRepeat": "Repeat password",
76-
"passwordNotMatching": "The password does not match!",
81+
"organization": "Organization",
82+
"owner": "Owner",
83+
"password": "Password",
7784
"passwordMinlength": "Password must contain at least 6 characters!",
78-
"updatePassword": "Update",
85+
"passwordNotMatching": "The password does not match!",
86+
"passwordReminderError": "Error getting password information",
87+
"passwordRepeat": "Repeat password",
88+
"passwordUpdateError": "Error when updating password",
7989
"passwordUpdated": "Password successfully updated.",
90+
"pol": "Polski",
91+
"por": "Рortuguês",
92+
"poweredBy": "Powered by GeoNetwork opensource",
93+
"previous": "Previous",
94+
"profile": "User profile",
95+
"recoverPassword": "Forgot your password",
96+
"register": "Register",
97+
"rememberMe": "Remember me",
98+
"requestedProfile": "Requested profile",
8099
"resetPassword": "Reset password",
81100
"resetPasswordTitle": "Reset {{user}} password.",
82-
"from": "From",
83-
"to": "To",
84-
"until": "Until",
85-
"by": "by",
86-
"previous": "Previous",
87-
"next": "Next",
88-
"passwordReminderError": "Error getting password information",
89-
"sendPasswordLinkToMyEmail": "Send password link to my email",
90-
"noRecordFound": "No record found.",
91-
92-
"filterSearch": "Display search options",
93-
"anyPlaceHolder": "Search ...",
94-
"any": "Full text",
95-
"orgName": "Contact for the resource",
96-
"createDateYear": "Creation year",
97-
"_indexingError": "Indexing error",
98-
"_cat": "Category",
99-
"keyword": "Keyword",
100-
"keywords": "Keywords",
101-
"keywordFilter": "Filter keyword",
102-
"filter": "Filter",
103-
"_groupPublished": "Published in that group",
104-
"_source": "Catalog",
105-
"_groupOwner": "Group",
106-
"groupOwners": "Groups",
107-
"owner": "Owner",
101+
"rus": "Русский",
102+
"save": "Save",
103+
"scrollTop": "Scroll to top",
108104
"selectAll": "All",
109105
"selectNone": "None",
110-
"createDateYears": "Years",
111-
"denominators": "Scale denominators",
112-
"inspireThemes": "INSPIRE themes",
113-
"Keywords": "Keywords",
114-
"metadataPOCs": "Contact for the metadata",
115-
"orgNames": "Contact for the resource",
106+
"send": "Send",
107+
"sendAComment": "Send us a comment",
108+
"sendPasswordLinkToMyEmail": "Send password link to my email",
109+
"service": "Service",
116110
"serviceTypes": "Type of services",
111+
"signIn": "Sign in",
112+
"signedInAs": " ",
113+
"signout": "Sign out",
114+
"somethingWrong": "Something went wrong!",
115+
"south": "South",
116+
"spa": "Español",
117117
"spatialRepresentationTypes": "Spatial types",
118-
"types": "Data types",
119-
120-
121-
"profile": "User profile",
122-
"RegisteredUser": "Registered user",
123-
"Editor": "Editor",
124-
"Reviewer": "Reviewer",
125-
"UserAdmin": "User administrator",
126-
127-
"dataset": "Dataset",
128-
"map": "Map",
129-
"service": "Service",
118+
"state": "State",
130119
"staticMap": "Static map",
131-
"featureCatalog": "Feature catalog",
132-
133-
"errorIs": "Error is ",
134-
135-
"somethingWrong": "Something went wrong!",
136-
"msgUserAuthenticated": "User {{username}} authenticated.",
137-
"msgNoCatalogInfo": "Could not retrieved catalog information.",
138-
"msgNoUserInfo": "Could not retrieve user details.",
120+
"surname": "Surname",
121+
"title": "Title",
122+
"to": "To",
139123
"toggleScrollSpy": "Toggle scrolling navigation",
140-
"scrollTop": "Scroll to top",
141-
"passwordUpdateError": "Error when updating password",
142-
"BadParameterEx": "Wrong parameter",
143-
"send": "Send",
144-
"organization": "Organization",
145-
"comments": "Comment",
146-
"sendAComment": "Send us a comment",
147-
"feedbackNotEnable": "Feedback is not enabled.",
148-
"feebackSent": "Your message has been sent to the catalog manager.",
124+
"tur": "Türkçe",
125+
"types": "Data types",
126+
"until": "Until",
127+
"updatePassword": "Update",
128+
"upload": "Upload",
149129
"url": "URL",
150-
"upload": "Upload"
130+
"userDetails": "User details",
131+
"userPreferences": "User preferences",
132+
"username": "User name",
133+
"usernameHelp": "Name to use when sign in",
134+
"west": "West",
135+
"year": "Year",
136+
"zip": "ZIP"
151137
}

0 commit comments

Comments
 (0)