Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7879a89a
authored
Dec 09, 2014
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
default locale fixed
1 parent
c354f590
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
code/moya-web/WebContent/frontpage.xhtml
code/moya-web/src/main/java/fi/codecrew/moya/handler/SessionStore.java
code/moya-web/WebContent/frontpage.xhtml
View file @
7879a89
...
...
@@ -9,10 +9,6 @@
<f:event
type=
"preRenderView"
listener=
"#{pageOutputView.initIndexView}"
/>
</f:metadata>
<ui:define
name=
"content"
>
<h:outputLabel
rendered=
"#{sessionHandler.isInDevelopmentMode()}"
>
Development-tilassa.
Täällä voit huoletta rikkoa.
</h:outputLabel>
<ui:fragment
rendered=
"#{layoutView.manageContent}"
>
<h:link
value=
"#{i18n['layout.editContent']}"
outcome=
"/pages/manage"
>
<f:param
name=
"pagename"
value=
"#{layoutView.pagepath}"
/>
...
...
code/moya-web/src/main/java/fi/codecrew/moya/handler/SessionStore.java
View file @
7879a89
...
...
@@ -47,7 +47,7 @@ public class SessionStore implements Serializable {
public
Locale
getLocale
()
{
Locale
ret
=
locale
;
if
(
ret
==
null
)
if
(
ret
==
null
||
ret
.
toString
().
equals
(
""
)
)
{
String
retStr
=
eventbean
.
getCurrentEvent
().
getOrganiser
().
getBundleCountry
();
...
...
@@ -60,11 +60,13 @@ public class SessionStore implements Serializable {
}
}
if
(
ret
==
null
)
{
if
(
ret
==
null
||
ret
.
toString
().
equals
(
""
)
)
{
ret
=
DEFAULT_LOCALE
;
}
locale
=
ret
;
}
logger
.
info
(
"Using locale {}"
,
ret
);
return
ret
;
}
...
...
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