HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Language Transition Problems

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#72837 (In Topic #15267)
Avatar

Fan in action

There are currently some issues when changing from Japanese To English and vice-versa.

I have the site set to detect language by browser setting. Its the fastest way for me to quickly switch
between language versions. However, when I switch languages, the site does not display everything properly.
It will be a mixture of english and Japanese (Japanese is garbled in case of switching to EN). I have to go use the site cleanup tool to get all the site text displaying properly after changing my browser language. I can't get a smooth transition between the two languages.

Is there a way to do this?
(no translation of comcode pages was done, just translation of site and ocportal software)



Last edit: by samurai_jack
Back to the top
 
Posted
Rating:
#72859
Avatar

Hi,

I'm slightly confused by this, but the garbling you can be solved by editing the 'charset' language string in the English language pack to 'utf-8'. You can do that quite easily from inside ocPortal.

However if it is default content, it should be saved also in English, which is why I am confused. Especially if English was used at installation.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#72930
Avatar

Fan in action

Hi Chris, thanks for the info about the character set.

Setting the English character set to utf-8 (global.ini or global.po) took care of the language garbling.

When I switch my browser language pref from JA to EN, much of the site and content is still in Japanese.

I have to use the website cleanup tools to flush the caches. Then everything displays properly.

Same is true vice versa (EN->JA).


Is there any way to avoid having to flush the caches each time you language change on ocPortal?

If I have a member who decides to switch their language prefs, or simply wants to see news and content in both languages, it could be problematic.
Back to the top
 
Posted
Rating:
#72932
Avatar

Community saint

It could be your browser caching the page. Try clearing the browser cache. Depending on which browser you have is what key strokes you perform.  Wikipedia:Bypass your cache

Steve
Back to the top
 
Posted
Rating:
#72948
Avatar

I couldn't find a problem. This screencast is using the latest version of ocPortal and a copy of the po's from Launchpad:
2011-08-08_1156 - ocProducts's library

As you can see, content edits (the menu change in this example) are done individually for each language. So when I edit in English mode it only edits English, and when I edit in Japanese it only edits in Japanese. Comcode pages are a bit different, as it asks you which language to edit when you start editing.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#72991
Avatar

(replying to private post)

Please first check your running the latest version.

If so, I am happy to test on your server if you give me something like FTP access so I can debug it.

Chris


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: