solved Translation in Pro Jam does not work

alt=
@acl4551
9 years ago
5 posts
Hi there

I followed instructions to translate Pro Jam skin in French:
- Created a fr-FR.php file (used the en-US file), Installed it after translation in the skins/jrProjamLight/lang folder.
- Added the line:
Quote: a href="?set_user_language=fr-FR">....etc
in the skins/jrProjamLight/lang folder

Result:
The french flag appears as well near the others but there is no translation...

Please help me if you encountered the same problem

Thanks

Alain
updated by @acl4551: 03/23/15 01:05:23AM
boplive
@boplive
9 years ago
345 posts
I'm not at my computer right now, but I think you also need to add it to the config.php file in your skin and if it's not the config check out the other php file in the skins/ Projam light folder...forgot what it's called...hopefully I'm correct ;)
paul
@paul
9 years ago
4,326 posts
I've never created a new language before but have just done it following this guide, creating language 'fr-FR' -

https://www.jamroom.net/the-jamroom-network/documentation/development/541/translate-jamroom-into-another-language

I then edited the fr-FR language in the ProJam language editor (well, a few of them!!), then added this to the ProJam header.tpl template at line 42 -
                        <a href="?set_user_language=es-ES"><img src="{$jamroom_url}/skins/{$_conf.jrCore_active_skin}/img/flags/es.png" alt="ES" title="Spanish"></a>
                        <a href="?set_user_language=en-US"><img src="{$jamroom_url}/skins/{$_conf.jrCore_active_skin}/img/flags/us.png" alt="US" title="English US"></a>
                        <a href="?set_user_language=fr-FR"><img src="{$jamroom_url}/skins/{$_conf.jrCore_active_skin}/img/flags/fr.png" alt="FR" title="French"></a>
The French flag shows and on clicking on it, the language strings in the skin change.

Another tip - Make sure you are running Jamroom in developer mode when doing things like this to disable caching.
hth


--
Paul Asher - JR Developer and System Import Specialist
boplive
@boplive
9 years ago
345 posts
boplive:
I'm not at my computer right now, but I think you also need to add it to the config.php file in your skin and if it's not the config check out the other php file in the skins/ Projam light folder...forgot what it's called...hopefully I'm correct ;)

Ooopz sorry..never mind what I mentioned. .you don't need to add it to config or include.php..sorry about that
alt=
@acl4551
9 years ago
5 posts
@Paul
Sorry Paul, I did like you, then the french flag appears but the translations I did in the fr-FR file did not work in the text....
Otherwise when I click on the Spanish Flag icon, the spanish text appear...

Alain
updated by @acl4551: 02/15/15 09:05:12AM
michael
@michael
9 years ago
7,719 posts
If you're changing it in a file then its not going to change. Changes from files only initialize wanted language strings. After they are initialized, you need to change them in the ACP.

You can create the language from
ACP -> USER ACCOUNT -> TOOLS -> CLONE A LANGUAGE

then will see that on
ACP -> SKINS -> YOUR SKIN -> LANGUAGE

update the strings there.

--edit--
"Translate jamroom into another language"
https://www.jamroom.net/the-jamroom-network/documentation/development/541/translate-jamroom-into-another-language
updated by @michael: 02/15/15 10:09:55AM
douglas
@douglas
9 years ago
2,791 posts
acl4551:
Hi there

I followed instructions to translate Pro Jam skin in French:
- Created a fr-FR.php file (used the en-US file), Installed it after translation in the skins/jrProjamLight/lang folder.
- Added the line:
Quote: a href="?set_user_language=fr-FR">....etc
in the skins/jrProjamLight/lang folder

Result:
The french flag appears as well near the others but there is no translation...

Please help me if you encountered the same problem

Thanks

Alain

After creating your new language file, did you run the integrity check tool?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
alt=
@acl4551
9 years ago
5 posts
@michael

Great Michael. It works. It was so simply !!!!

Thanks for help

Tags