/
localization.js
205 lines (198 loc) · 9.91 KB
/
localization.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
/*
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a
* copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//When possible, and if the use is general enough, try to use the literal English representation of the phrase.
//In some cases, it's better to give context, so that a translator can understand how the word will be used. Eg. activityIndicatorMessage
//If a phrase is too long, make it as short as it can be while still clear in meaning. Eg. errorPerformingSearch
exports.en_US = {
//Global Text
uMobile: "uMobile",
homeTitle: "uMobile",
search: "Search",
go: "Go",
back: "Back",
info: "Info",
error: "Error",
OK: "OK",
update: "Update",
home: "Home",
success: "Success",
doneEditing: "Done Editing",
loading: 'Loading',
gettingPortlets: "Getting modules from server",
failedToLoadPortlets: "Failed to connect to server to load portlets. Please try again later.",
searching: "Searching",
noResults: "No Results",
noNetworkTitle: "No Network Connection",
errorPerformingSearch: "There was an error while performing your search request.",
searchResults: "Search Results",
noSearchResults: "No results matched your search",
activityIndicatorMessage: "Loading...",
networkConnectionRequired: "A network connection is required to use this application. Please connect to the internet and come back to this application.",
couldNotConnectToPortal: "Sorry, your portlets could not be loaded from the portal.",
couldNotLoginToPortal: "Sorry, the portal couldn't be reached to log you in.",
viewingGuestLayout: "Log In for Personal Content",
portalNotReachable: "Your modules couldn't be loaded. Click here to try again.",
notifications: "Notifications",
emergencyNotification: "Emergency Notification",
//Map Window & Map Detail Window
map: "Map",
browse: "Browse",
favorites: "Favorites",
list : "List",
viewOnMap : "View on Map",
browseLocations : "Browse Locations",
mapLoadingLocations: "Loading locations from server",
mapProcessingLocations: "Processing locations",
getDirections: "Get Directions",
locationDetails: "Location Details",
locationImage: "Location Image",
noAddressAvailable: "No Address Available",
titleNotAvailable: "Title Not Available",
mapNoSearchResults: "No locations match your search",
map_NETWORK_UNAVAILABLE: "There was an error loading locations for the map. Please check your internet connection and try again",
map_REQUEST_TIMEOUT: "The request to load map locations timed out. Please try again later.",
map_SERVER_ERROR: "There was an error loading map locations. Please try again later.",
map_NO_DATA_RETURNED: "There was an error processing data for map. Search will only work with cached data at this time.",
map_INVALID_DATA_RETURNED: "There was an error processing data for map. Search will only work with cached data at this time.",
map_GENERAL_ERROR: "There was an error loading locations to search the map.",
//Settings Window
settings: "Settings",
username: "Username",
password: "Password",
accountSettings: "Account Settings",
logOut: "Sign Out",
authenticationFailed: "Authentication failed. Please check your username and password and try again.",
authenticationSuccessful: "You've successfully logged in.",
logOutSuccessful: "You have successfully logged out.",
enterAUserName: "Please enter a valid username.",
resetPasswordTitle: "Reset Password",
resetPasswordLink: "To set or reset your password, visit: ",
loggingIn: "Logging in",
//Directory Window
directory: "Directory",
directoryRequiresNetwork: "Directory search requires a network connection. Please connect to a network prior to searching.",
gettingContactInfo: "Getting contact info for user.",
couldNotLoadUser: "Information for that user could not be found.",
noContactData: "No contact data is available.",
directorySearchHintText: "John Doe, Jdoe@myschool.edu, 555 555 5555",
phoneDirectory: "Phone Directory",
phoneNumber: "Phone Number",
emergencyContacts: "Emergency Contacts",
contactDetail: "Contact Detail",
email: "Email",
phone: "Phone",
title: "Title",
organization:"Org",
department: "Dept",
address:"Address",
url: "Url",
emailAddress: "Email Address",
emailAddresses: "Email Addresses",
directoryErrorFetching: "There was an error fetching the results for your query. Please try a different query."
};
exports.fr_FR = {
//Global Text
uMobile: "uMobile",
homeTitle: "uMobile",
search: "Rechercher",
go: "Allez",
back: "Retour",
info: "Info",
error: "Erreur",
OK: "OK",
update: "Mis à jour",
home: "Accueil",
success: "Réussi",
doneEditing: "Mise à jour réalisée",
loading: 'Chargement',
gettingPortlets: "Reception des modules depuis le serveur",
failedToLoadPortlets: "Echec de la connection au serveur pour obtenir les modules. Veuillez réessayer plus tard.",
searching: "Recherche en cours",
noResults: "Pas de résultats",
noNetworkTitle: "Pas de connection réseau",
errorPerformingSearch: "Une erreur s'est produite pendant votre recherche.",
searchResults: "Résultats de la recherche",
noSearchResults: "Aucun résulat ne correspond à votre recherche",
activityIndicatorMessage: "Chargement...",
networkConnectionRequired: "Une connection Internet est requise pour utiliser cette application. Connectez vous, s'il vous plaît, à Internet, puis relancez cette application.",
couldNotConnectToPortal: "Désolé, vos services ne peuvent être obtenus depuis le portail.",
couldNotLoginToPortal: "Désolé, le portail ne peut être atteint pour vous authentifier.",
viewingGuestLayout: "Connectez-vous à votre compte",
portalNotReachable: "Vos modules ne peuvent être chargés. Cliquez ici pour essayer à nouveau.",
notifications: "Notifications",
emergencyNotification: "Notification d'urgence",
//Map Window & Map Detail Window
map: "Carte",
browse: "Parcourir",
favorites: "Favoris",
list : "Liste",
viewOnMap : "Voir sur la carte",
browseLocations : "Parcourir les lieux",
mapLoadingLocations: "Chargement des points depuis le serveur",
mapProcessingLocations: "Traitement des points",
getDirections: "Obtenir les directions",
locationDetails: "Détail du lieu",
locationImage: "Image du Lieu",
noAddressAvailable: "Adresse non disponible",
titleNotAvailable: "Titre non disponible",
mapNoSearchResults: "Aucun lieu ne correspond à votre recherche",
map_NETWORK_UNAVAILABLE: "Une erreur s'est produite au chargement des points de la carte. Vérifiez votre connexion Internet puis éssayez à nouveau",
map_REQUEST_TIMEOUT: "La requête pour charger les points de la carte a expirée. Réessayez un peu plus tard.",
map_SERVER_ERROR: "Une erreur s'est produite au chargement des points de la carte. Réessayez un peu plus tard",
map_NO_DATA_RETURNED: "Il y a eu une erreur de traitement des données de la carte. La recherche ne fonctionnera qu'avec des données mises en cache pour le moment.",
map_INVALID_DATA_RETURNED: "Il y a eu une erreur de traitement des données de la carte. La recherche ne fonctionnera qu'avec des données mises en cache pour le moment.",
map_GENERAL_ERROR: "Il y a eu une erreur de chargement des points pour la recherche sur la carte.",
//Settings Window
settings: "Paramètres",
username: "Utilisateur",
password: "MdP",
accountSettings: "Paramètres de compte",
logOut: "Déconnexion",
authenticationFailed: "L'authentification a échoué. Vérifiez, s'il vous plaît, votre nom d'utilisateur et mot de passe et essayez à nouveau.",
authenticationSuccessful: "Vous êtes connecté.",
logOutSuccessful: "Vous vous êtes déconnecté avec succès.",
enterAUserName: "Entrez, s'il vous plaît, un identifiant valide.",
resetPasswordTitle: "Réinitialiser mot de passe",
resetPasswordLink: "Pour réinitialiser votre mot de passe, visitez : ",
loggingIn: "Connexion",
//Directory Window
directory: "Annuaire",
directoryRequiresNetwork: "La recherche dans l'annuaire nécessite une connexion réseau. Connectez-vous, s'il vous plaît, à un réseau, avant de lancer une recherche.",
gettingContactInfo: "Obtention des informations de contact pour l'utilisateur.",
couldNotLoadUser: "L'information pour cet utilisateur n'a pas pu être trouvé.",
noContactData: "Aucune donnée de contact n'est disponible.",
directorySearchHintText: "Jean Dupont, Jean.Dupont@monecole.fr, 55 55 55 55 55",
phoneDirectory: "Annuaire téléphonique",
phoneNumber: "Numéro de téléphone",
emergencyContacts: "Contacts d'urgence",
contactDetail: "Détail du contact",
email: "Mail",
phone: "Tél.",
title: "Titre",
organization:"Org.",
department: "Dept.",
address:"Addresse",
url: "Url",
emailAddress: "Adresse e-mail",
emailAddresses: "Adresses e-mail",
directoryErrorFetching: "Il y a eu une erreur pour lire les résultats de votre requête. Essayez, s'il vous plaît, une requête différente."
};
exports.retrieveLocale = function (locale) {
return exports[locale] || exports['en_US'] || exports['fr_FR'];
};