Multi-lingual workflow

Xephius
Xephius
@xephius
8 years ago
93 posts
Hi all,

I am doing some research on how to support multiple languages on Jamroom, and it looks to be well supported from a technical stand point. I am struggling to fully wrap my head around how to build my workflow for the site. I will try and state my objective, then specific questions on individual tasks.

Objective - To have a language selection flag in the menu bar such that all text entry's on the site will reference a string that is translated into the selected language.

-REFERENCE-
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-developers-guide/783/jrcore-lang

1) How do I setup a language index page with the Sting ID, and the variations in languages each string has. EXAMPLE- I want to create a new "About Us" paragraph that I want to use in multiple places on the site. Where/how can I create and add a string that can be later called?

2) The following example code calls the data in string id 33, but also gives option for a default value in the string. If I do not include the "default" value, will it still work? Is this a best practice? I am concerned about having hard coded language. Is there a way to instead indicate a default language rather than a hard entry?
 {jrCore_lang module="jrEvent" id="33" default="Updated an Event"} 

3) Is there a document explaining how I can make a button that will allow users to change the selected language?

Clear skies,
John
updated by @xephius: 03/27/17 01:55:46PM
Xephius
Xephius
@xephius
8 years ago
93 posts
No. But I did search both documentation and forums before I asked. I only found the jrcore-lan document. This is exactly the jumping off point I needed. -Thanks!
michael
@michael
8 years ago
7,746 posts
The difficulty you're going to run into with a multi-lingual site is if you want multi-lingual content.

Jamroom's interface can be translated, but how you deal with the content will need decisions made.

Those decisions have not been decided for you, we don't have a recommended method.

Possible options:
* have 2 versions of the site on different domains
site.com
en.site.com
ja.site.com

*OR: Use the Form Designer to have different fields for different content
profile_biography_en
profile_biography_ja

*OR add a selection system to the content addition type for forms ("Choose language") then customize the {jrCore_list} calls to match content of the chosen language only.

*OR other....
Xephius
Xephius
@xephius
8 years ago
93 posts
Thanks Michael, This fills in many holes.

I think that the first option (en.site.com, ja.site.com, etc.) is the simplest to implement, and will allow me to build quickly.

Thanks!
updated by @xephius: 12/21/16 02:23:43PM
PatriaCo
PatriaCo
@the-patria-company
8 years ago
349 posts
Is it possible to have the subdomain sites
en.site.com
es.site.com

share the same db? If we are on JR Hosting, are those changes in the config file, something that would be managed by JR Support?

Thanks!


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3
brian
@brian
8 years ago
10,148 posts
PatriaCo:
Is it possible to have the subdomain sites
en.site.com
es.site.com

share the same db? If we are on JR Hosting, are those changes in the config file, something that would be managed by JR Support?

Thanks!


No - 2 sites cannot share the same DB.

Sorry!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net