Loading...
 
Features / Usability

Features / Usability


Switching languages

posts: 96 Romania

Hi people. How can I allow the admin and editors to switch languages? It only works for anonymous users (i.e. not logged in). The permission manager isn't much help. It's confusing at best.

tiki_p_access_closed_site(x)
tiki_p_admin(x)
tiki_p_admin_banners(x)
tiki_p_admin_banning(x)
tiki_p_admin_calendar(x)
tiki_p_admin_charts(x)
tiki_p_admin_integrator(x)
tiki_p_admin_mailin(x)
tiki_p_admin_workflow(x)
tiki_p_broadcast(x)
tiki_p_broadcast_all(x)
tiki_p_edit_templates(x)
tiki_p_live_support_admin(x)
tiki_p_map_create(x)
tiki_p_map_delete(x)

According to this my admin shouldn't be able to do almost anything.

What the... devil?

posts: 1092

This page on doc.tikiwiki.org should help
Internationalization

otherwise tell me , i will upgrade the doc


posts: 96 Romania

Admin->Login, available languages Romanian and English (I deleted the others), registered users can change language, multilingual is on, detect browser language is off. Anonymous (users not logged on) can switch languages meaning "poll" becomes "sondaj" but registered users (editors and admins) can not. Although PHPMyAdmin

in table users_permissions

groupName permName value
Editors tiki_p_edit_languages

so I would expect the Editors group to be able to switch the interface language.




posts: 1092

Do you try to change the language from MyTiki/preferences/language
(the admin/feature/user preferences screen must be checked also)
or by the module switch_language?


posts: 96 Romania
Using the switch_lang module (the one with the dropdown). But I just tried RC3 on my PC and switching languages with the switch_lang module works fine for anonymous, admin and editors. I think I messed something up and caused it to stop working, I just have to figure out what.
posts: 1092

just an idea, when you are logged in:
is tiki-switch_lang.php?language=en working?

It will check the feature userPreference and the change language box and that there is no pb in the database


posts: 96 Romania

The default language is Romanian, and

tiki-switch_lang.php?language=en

works only when I'm not logged on. Whenever I am, it doesn't do anything (I tried with admin and a member of the Editors group).

I think it's a permission problem.

I could reinstall, (the site is still in testing), but that would be a waste of time which I'd like to avoid.

posts: 1092

In tiki-switch_lang.php, there is only 2 features before uspdating the database
check again
1) admin panel/features/ user preferences screen checked
2) admin panel/login / Reg users can change language checked

Do you have access to phpMyAdmin?
check in tiki_preferences
change_language
feature_userPreferences

strange


posts: 96 Romania

This one hit home, like they say. biggrin

Well on tiki-admin.php?page=features
"User preferences screen" was unchecked. Switching languages for authenticated users seems to work now. I thought
"Reg users can change language" on the login settings page would be enough for that. Thanks a million.


Upcoming Events

No records to display

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.