Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e2967700
authored
Oct 24, 2012
by
Antti Tönkyrä
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of codecrew.fi:bortal
2 parents
abbcf698
bd79cb55
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
129 additions
and
4 deletions
code/LanBortalWeb/WebContent/error.xhtml
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n.properties
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_en.properties
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_en_ST.properties
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_fi.properties
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_fi_IN.properties
code/LanBortalWeb/src/fi/insomnia/bortal/web/ErrorPageView.java
code/haeLocalisoimattomat.sh
code/LanBortalWeb/WebContent/error.xhtml
View file @
e296770
...
...
@@ -6,7 +6,7 @@
<title>
Error
</title>
</h:head>
<h:body>
<!-- <c:if test="#{sessionHandler.isInDevelopmentMode() eq
tru
e}"> -->
<!-- <c:if test="#{sessionHandler.isInDevelopmentMode() eq
fals
e}"> -->
<h1>
#{i18n['error.error']}
</h1>
<p>
${i18n['error.contact']}
<br/><h:outputText
escape=
"false"
style=
"color: red;"
value=
"#{errorPageView.time}"
/><br/><br/>
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n.properties
View file @
e296770
...
...
@@ -119,7 +119,7 @@ placegroupview.toptext = \
poll.edit
=
edit
product.providedRole
=
Tuote tarjoaa roolin
product.providedRole
=
Tuote m
\u
00E4
\u
00E4ritt
\u
00E4
\u
00E4 roolin
product.returnProductEdit
=
Palaa tuotteeseen:
product.saved
=
Tuote tallennettu
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_en.properties
View file @
e296770
...
...
@@ -30,6 +30,8 @@ actionlog.user = User
applicationPermission.description
=
description
applicationPermission.name
=
Rightsgroup
barcodeReader.readBarcode
=
Read barcode
bill.addr1
=
Address 1
bill.addr2
=
Address 2
bill.addr3
=
Address 3
...
...
@@ -85,6 +87,12 @@ cardTemplate.roles = Associated roles
cardTemplate.save
=
Save
cardTemplate.sendImage
=
Upload Image
cart.item
=
Item
cart.item_quantity
=
Quantity
cart.item_total
=
Total
cart.item_unitprice
=
Price
cart.total
=
Total
checkout.cancel.errorMessage
=
Error confirming the cancel
\u2026
Please report this to code@codecrew.fi
checkout.cancel.successMessage
=
You can retry payment at your own bills.
checkout.reject.errorMessage
=
Error while processing rejected payment. Please report this error to code@codecrew.fi
...
...
@@ -169,10 +177,23 @@ eventorgView.eventname = Name of event
eventorganiser.name
=
Eventorganiser
food
=
Food
foodWave.description
=
Description
foodWave.name
=
Name
foodWave.template.name
=
Name
foodWave.time
=
Time
foodshop.buyFromCounter
=
Pay at info
foodshop.buyFromInternet
=
Pay at Internet
game.gamepoints
=
Game points
gamepoints
=
Gamepoints
global.cancel
=
Cancel
global.copyright
=
Codecrew Ry
global.eventname
=
Event name
global.notAuthorizedExecute
=
You are not authorized to do that!!
global.notauthorized
=
You don't have enough rights to enter this site.
global.save
=
Save
...
...
@@ -183,6 +204,9 @@ httpsession.invalidate = Invalidate
imagefile.description
=
Description
imagefile.file
=
Imagefile
importuser.file
=
File
importuser.template
=
Template
invite.emailexists
=
User with that email address already exists in the system.
invite.notFound
=
Invite invalid or already used
invite.successfull
=
Invite sent successfully
...
...
@@ -220,6 +244,7 @@ loginerror.resetpassword = Reset password
map.edit
=
Edit
map.generate
=
Generate places
map.height
=
Place height (px)
map.id
=
#
map.name = Name
map.namebase
=
Semicolon separated table prefixes
map.oneRowTable
=
One row tables
...
...
@@ -345,6 +370,7 @@ place.description = Description
place.details
=
Details
place.edit
=
Edit
place.height
=
Height
place.id
=
ID
place.mapX
=
X
place.mapY
=
Y
place.membership
=
Associated user
...
...
@@ -395,7 +421,9 @@ placetoken.topText = You can associate a ticket bought by someone else to
poll.answer
=
Answer to poll
poll.begin
=
Open poll
poll.create
=
Create
poll.description
=
Description
poll.edit
=
Edit
poll.end
=
Close poll
poll.name
=
Poll name
poll.save
=
Send answers
...
...
@@ -414,6 +442,7 @@ product.paid = Paid
product.prepaid
=
Prepaid
product.prepaidInstant
=
Created when prepaid is paid
product.price
=
Price of product
product.providedRole
=
Product defines role
product.save
=
Save
product.shopInstant
=
Create automatic cashpayment
product.sort
=
Sort nr
...
...
@@ -421,19 +450,29 @@ product.totalPrice = Total
product.unitName
=
Unit name
product.vat
=
VAT
productShopView.readBarcode
=
Read barcode
products.save
=
Save
productshop.billCreated
=
Bill created
productshop.commit
=
Buy
productshop.limits
=
Available
productshop.minusOne
=
-1
productshop.minusTen
=
-10
productshop.noItemsInCart
=
There are no products in shopping cart
productshop.plusOne
=
+1
productshop.plusTen
=
+10
productshop.total
=
Total
reader.assocToCard
=
Associate to card
reader.createNewCard
=
Create new card
reader.description
=
Description
reader.edit
=
Edit
reader.identification
=
Identification
reader.name
=
Reader name
reader.select
=
Select reader
reader.tag
=
Tag
reader.type
=
Type
reader.user
=
User
readerView.searchforuser
=
Search user
...
...
@@ -453,6 +492,11 @@ resetMail.username = Username
resetmailSent.body
=
Email has been sent containing a link where you can change the password.
resetmailSent.header
=
Email sent
rfidevent.empty
=
Empty
rfidevent.reader
=
Reader
rfidevent.searchuser
=
Search user
rfidevent.tag
=
Tag
role.cardtemplate
=
Cardtemplate
role.create
=
Create role
role.description
=
Description
...
...
@@ -465,10 +509,15 @@ role.permissionheader = Role permissions
role.read
=
(R)
role.write
=
(W)
salespoint.edit
=
Edit
salespoint.name
=
Name
salespoint.noSalesPoints
=
Amount
sendPicture.header
=
S
shop.accountBalance
=
Account balance
shop.cash
=
Cash deposit
shop.readBarcode
=
Read barcode
shop.totalPrice
=
Price of products
shop.user
=
Selling to
...
...
@@ -643,6 +692,10 @@ user.validateUser.header = Please insert credentials
user.wholeName
=
Name
user.zipCode
=
Postal nr.
userImport.commit
=
Commit
userView.image
=
Image
userimage.webcam
=
Take picture with webcam
userlist.header
=
Users
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_en_ST.properties
View file @
e296770
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_fi.properties
View file @
e296770
...
...
@@ -30,6 +30,8 @@ actionlog.user = Tekij\u00E4
applicationPermission.description
=
kuvaus
applicationPermission.name
=
Oikeusryhm
\u
00E4
barcodeReader.readBarcode
=
Lue viivakoodi
bill.addr1
=
Osoite 1
bill.addr2
=
Osoite 2
bill.addr3
=
Osoite 3
...
...
@@ -83,6 +85,12 @@ cardTemplate.roles = Yhdistetyt roolit
cardTemplate.save
=
Tallenna
cardTemplate.sendImage
=
Lataa kuva
cart.item
=
Tuote
cart.item_quantity
=
M
\u
00E4
\u
00E4r
\u
00E4
cart.item_total
=
Yhteens
\u
00E4
cart.item_unitprice
=
Hinta
cart.total
=
Yhteens
\u
00E4
checkout.cancel.errorMessage
=
Virhe peruutuksen vahvistuksessa
\u2026
Ilmoita t
\u
00E4st
\u
00E4 osoitteeseen code@codecrew.fi
checkout.cancel.successMessage
=
Voit yritt
\u
00E4
\u
00E4 maksua uudelleen omista laskuistasi.
checkout.reject.errorMessage
=
Virhe hyl
\u
00E4tyn maksun k
\u
00E4sittelyss
\u
00E4. Raportoi t
\u
00E4m
\u
00E4 virhe osoitteeseen: code@codecrew.fi
...
...
@@ -167,10 +175,23 @@ eventorgView.eventname = Tapahtuman nimi
eventorganiser.name
=
Tapahtumaj
\u
00E4rjest
\u
00E4j
\u
00E4
food
=
Ruoka
foodWave.description
=
Kuvaus
foodWave.name
=
Nimi
foodWave.template.name
=
Nimi
foodWave.time
=
Aika
foodshop.buyFromCounter
=
Maksa infossa
foodshop.buyFromInternet
=
Maksa Internetiss
\u
00E4
game.gamepoints
=
Insomnia Game pisteet:
gamepoints
=
Pelipisteit
\u
00E4
global.cancel
=
Peruuta
global.copyright
=
Codecrew Ry
global.eventname
=
Tapahtumanimi
global.notAuthorizedExecute
=
Sinulla ei ole riitt
\u
00E4v
\u
00E4sti oikeuksia suorittaa t
\u
00E4t
\u
00E4 toimenpidett
\u
00E4!
global.notauthorized
=
Sinulla ei ole riitt
\u
00E4vi
\u
00E4 oikeuksia t
\u
00E4lle sivulle.
global.save
=
Tallenna
...
...
@@ -188,6 +209,9 @@ httpsession.user = Tunnus
imagefile.description
=
Kuvaus
imagefile.file
=
Kuvatiedosto
importuser.file
=
Tiedosto
importuser.template
=
Malli
index.title
=
Etusivu
invite.emailexists
=
J
\u
00E4rjestelm
\u
00E4ss
\u
00E4 on jo k
\u
00E4ytt
\u
00E4j
\u
00E4tunnus samalla s
\u
00E4hk
\u
00F6postiosoitteella.
...
...
@@ -227,6 +251,7 @@ loginerror.resetpassword = Salasana unohtunut?
map.edit
=
Muokkaa
map.generate
=
Generoi paikat
map.height
=
Paikan korkeus (px)
map.id
=
#
map.name = Nimi
map.namebase
=
Puolipisteell
\u
00E4 erotetut p
\u
00F6yt
\u
00E4-etuliitteet
map.oneRowTable
=
Yhden rivin p
\u
00F6yd
\u
00E4t
...
...
@@ -332,6 +357,7 @@ place.details = Tiedot
place.edit
=
Muokkaa
place.groupremove
=
Poista paikka paikkaryhm
\u
00E4st
\u
00E4
place.height
=
Korkeus
place.id
=
ID
place.mapX
=
X
place.mapY
=
Y
place.membership
=
Yhdistetty k
\u
00E4ytt
\u
00E4j
\u
00E4
...
...
@@ -383,7 +409,9 @@ placetoken.topText = Voit yhdist\u00E4\u00E4 paikan omaan k\u00E4ytt\u00E4
poll.answer
=
Vastaa kyselyyn
poll.begin
=
Avaa kysely
poll.create
=
Luo
poll.description
=
Kuvaus
poll.edit
=
Muokkaa
poll.end
=
Sulje kysely
poll.name
=
Kyselyn nimi
poll.save
=
L
\u
00E4het
\u
00E4 vastauksesi
...
...
@@ -402,6 +430,7 @@ product.paid = Maksettu
product.prepaid
=
Prepaid
product.prepaidInstant
=
Luodaan kun prepaid maksetaan
product.price
=
Tuotteen hinta
product.providedRole
=
Tuote m
\u
00E4
\u
00E4ritt
\u
00E4
\u
00E4 roolin
product.save
=
Tallenna
product.shopInstant
=
Luo k
\u
00E4teismaksu tuotteille
product.sort
=
J
\u
00E4rjestys luku
...
...
@@ -409,19 +438,29 @@ product.totalPrice = Summa
product.unitName
=
Tuoteyksikk
\u
00F6
product.vat
=
ALV
productShopView.readBarcode
=
Lue viivakoodi
products.save
=
Tallenna
productshop.billCreated
=
Lasku luotu
productshop.commit
=
Osta
productshop.limits
=
Vapaana
productshop.minusOne
=
-1
productshop.minusTen
=
-10
productshop.noItemsInCart
=
Ostoskorissa ei ole tuotteita
productshop.plusOne
=
+1
productshop.plusTen
=
+10
productshop.total
=
Yhteens
\u
00E4
reader.assocToCard
=
Yhdist
\u
00E4 korttiin
reader.createNewCard
=
Luo uusi kortti
reader.description
=
Kuvaus
reader.edit
=
Muokkaa
reader.identification
=
Tunniste
reader.name
=
Lukijan nimi
reader.select
=
Valitse lukija
reader.tag
=
Tag
reader.type
=
Tyyppi
reader.user
=
K
\u
00E4ytt
\u
00E4j
\u
00E4
readerView.searchforuser
=
Etsi k
\u
00E4ytt
\u
00E4j
\u
00E4
\u
00E4
...
...
@@ -441,6 +480,11 @@ resetMail.username = K\u00E4ytt\u00E4j\u00E4tunnus
resetmailSent.body
=
Antamasi k
\u
00E4ytt
\u
00E4j
\u
00E4tunnuksen s
\u
00E4hk
\u
00F6postiosoitteeseen on l
\u
00E4hetetty osoite jossa voit vaihtaa tunnuksen salasanan.
resetmailSent.header
=
S
\u
00E4hk
\u
00F6posti l
\u
00E4hetetty
rfidevent.empty
=
Tyhj
\u
00E4
rfidevent.reader
=
Lukija
rfidevent.searchuser
=
Hae k
\u
00E4ytt
\u
00E4j
\u
00E4
\u
00E4
rfidevent.tag
=
T
\u
00E4gi
role.cardtemplate
=
Korttipohja
role.create
=
Luo rooli
role.description
=
Kuvaus
...
...
@@ -450,10 +494,15 @@ role.name = Nimi
role.parents
=
Periytyy
role.savePermissions
=
Tallenna oikeudet
salespoint.edit
=
Muokkaa
salespoint.name
=
Nimi
salespoint.noSalesPoints
=
M
\u
00E4
\u
00E4r
\u
00E4
sendPicture.header
=
L
\u
00E4het
\u
00E4 kuva
shop.accountBalance
=
Tilin saldo
shop.cash
=
K
\u
00E4teispano
shop.readBarcode
=
Lue viivakoodi
shop.totalPrice
=
Tuotteiden hinta
shop.user
=
Myyd
\u
00E4
\u
00E4n
...
...
@@ -484,6 +533,7 @@ sidebar.users = K\u00E4ytt\u00E4j\u00E4t
sidebar.utils.flushCache
=
Flush Cache
sidebar.utils.testdata
=
Testdata
sitepage.addContent
=
Lis
\u
00E4
\u
00E4 sis
\u
00E4lt
\u
00F6laatikko
sitepage.create
=
Luo uusi
sitepage.edit
=
Muokkaa
sitepage.name
=
Sivun nimi
...
...
@@ -627,6 +677,10 @@ user.validateUser.header = Ole hyv\u00E4 ja sy\u00F6t\u00E4 kirjautumisti
user.wholeName
=
Nimi
user.zipCode
=
Postinumero
userImport.commit
=
Hyv
\u
00E4ksy
userView.image
=
Kuva
userimage.webcam
=
Ota kuva webkameralla
userlist.header
=
Etsi k
\u
00E4ytt
\u
00E4ji
\u
00E4
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_fi_IN.properties
View file @
e296770
code/LanBortalWeb/src/fi/insomnia/bortal/web/ErrorPageView.java
View file @
e296770
...
...
@@ -18,6 +18,8 @@ import java.io.StringWriter;
import
java.util.Calendar
;
import
java.util.Map
;
import
java.util.zip.CRC32
;
@Named
@RequestScoped
public
class
ErrorPageView
implements
Serializable
{
...
...
@@ -35,6 +37,7 @@ public class ErrorPageView implements Serializable {
@SuppressWarnings
(
"unused"
)
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ErrorPageView
.
class
);
public
String
getStackTrace
()
{
FacesContext
context
=
FacesContext
.
getCurrentInstance
();
...
...
@@ -51,14 +54,29 @@ public class ErrorPageView implements Serializable {
}
public
String
getStackTraceHash
()
{
FacesContext
context
=
FacesContext
.
getCurrentInstance
();
Map
requestMap
=
context
.
getExternalContext
().
getRequestMap
();
Throwable
ex
=
(
Throwable
)
requestMap
.
get
(
"javax.servlet.error.exception"
);
CRC32
stackHash
=
new
CRC32
();
stackHash
.
update
(
ex
.
getStackTrace
().
toString
().
getBytes
());
return
"0x"
+
Long
.
toHexString
(
stackHash
.
getValue
());
}
public
String
getTime
(){
return
"0x"
+
Long
.
toHexString
(
Calendar
.
getInstance
().
getTimeInMillis
());
String
stamp
=
"0x"
+
Long
.
toHexString
(
Calendar
.
getInstance
().
getTimeInMillis
());
logger
.
error
(
"Error occured at {} trail {}"
,
stamp
,
getTrail
());
return
stamp
;
}
public
String
getTrail
()
{
HttpServletRequest
req
=
(
HttpServletRequest
)
getContext
().
getExternalContext
().
getRequest
();
Object
trail
=
req
.
getSession
().
getAttribute
(
"trail"
);
return
trail
!=
null
?
trail
.
toString
()
.
replace
(
", "
,
"\n"
)
:
"u gots no trail!
"
;
return
trail
!=
null
?
trail
.
toString
()
:
"
"
;
}
public
FacesContext
getContext
()
{
...
...
code/haeLocalisoimattomat.sh
100644 → 100755
View file @
e296770
File mode changed
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment