• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

2.0.2 locale properties loading question

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not an expert here, as I know little about how JForum loads its properties files. However, assuming that they are loaded in a normal way (e.g., based on the Java Locale related Classes), then it sounds to me like this has nothing to do with MySQL.

Is it possible that the Java JDK/JVM also changed when you moved to the new host? Or is it possible that the version of Tomcat (or your webapp container) changed? Since the english version work when you put Hebrew into it, it sounds like: 1) The hebrew properties file is not found; 2) The classpath prevents the hebrew props file from being found; 3) The JVM or container does not like the hebrew props file; 4) The container is configured in a way so as to not recognize the hebrew two letter code or its location.

I am just guessing here, but I hope there is a clue in there for you...
[originally posted on jforum.net by time]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi;
i have a 2.0.2 version over mysql 4.0 running for a long time now without problems.
due to moving to a different hosting company, i zipped the forum application from my old hosting service and moved it as is to the new.

the new hosting company is with mysql 4.1
what i see is that my locale properties file (in hebrew) is not even loaded, only th english one. i can see that by looking at the file watch dog prints "Watching ....". in my old hosting it load the english and the hebrew and in my new hosting only the english.

this surprised me because i cant see the reason for the difference as i just took the application and moved it as is. can this be related to the dB somehow?
any ideas are welcomed.
P.S i if i delete the en_US file and change my he_IW to en_US than everything works fine.

thanks in advance

[originally posted on jforum.net by gkatz]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi;
ok i now now where the problem came from.
opening the admin panel i see that there are differences in the "Configurations->General Purpose->Language" field. the forum i ported (application plus DB) to my new hosting company has a different value. this is strange, can someone please tell me where this filed is stored when it is set? (before i start digging into the code).
thanks in advance.
[originally posted on jforum.net by gkatz]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All configuration values are stored in WEB-INF/config/SystemGlobals.properties and jforum-custom.conf

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
strange;
my original forum does not have any field in the system.globals that state "he_IW" only "en_US" yet jforum still loads both property files.
the 'i18n.board.default' and 'i18n.internal' are set with en_US.
plus i dont have a "jforum-custom.conf" file - maybe it was added after 2.0.2?
anyway, I dont dont have any ideas left - but thats fine because everything is working fine for me now except for the fact that i dont understand this specific behavior.
thanks for the help/
[originally posted on jforum.net by gkatz]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, if your user profile is set to use he_IW, or any other user have it, then JForum will load this language.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
They weren't very bright, but they were very, very big. Ad contrast:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic