Skip to main content
Topic: Language folders (Read 2200 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Language folders

Hello! Are there any language folders like in SMF? I liked the way you could put different images like in a SMFflat theme's menu, so if you're using different language forums it automatically changes the images that it's using. Or like with the NEW icons in SMF that were in folders like images/english-utf8 and images/polish-utf8 and so on.

Hopefully I explained it clear enough.

Re: Language folders

Reply #1

I don't know if $user_info it is always set, but if it is you could use $user_info['language'].
And then just add language name in file name.

Re: Language folders

Reply #2

In SMF there was nothing "centralized" to do that, it was just pointing to the "right place" done in the template:
Code: [Select]
$settings['images_url'] . '/' . $context['user']['language'] . '/new.gif"
You can definitely do the same in Elk.

That said, in general, use images for strings to localize is not the best option, for one it requires much more efforts to localize them.
Bugs creator.
Features destroyer.
Template killer.

Re: Language folders

Reply #3

I see, the best option looks to be switching it in "Current theme" tab.