using different themes for different languages with i18n in drupal 6 - drupal-6

I am developing a website which has both English and Arabic versions. I have installed Arabic language and the i18n module, which is working fine and I am able to add Arabic translation for the English contents.The URL prefix 'site.com/ar' is also working fine.
Since Arabic is a right-to-left language I want to show different theme for the Arabic content,which contains images with Arabic text etc.(a flipped or mirror version of the English theme with Arabic text).
Is there any good solution for this scenario where site.com/ar should show the Arabic theme and site.com/en should show the English theme?
Thanks,

You may be able to use the Sections module to switch the themes, based on the path.
I'm not sure if this would help with right-to-left languages, but you may also consider adding body classes based on the language and using those to modify the theme.
You may also find Notes on Setting up a Drupal Site for Internationalization and/or Internationalization & RTL Drupal Theming helpful.

Related

Django, i18n, problems with translation after changing LANGUAGE_CODE

I have created a multilingual website using Django i18n. But later I needed to change the default language (before LANGUAGE_CODE='ru') to one of those that were in the LANGUAGES configuration setting (now LANGUAGE_CODE='uk').
After that, when the user opens this site and selects the language 'ru', the translation does not work correctly. The models translate correctly, but the templates remain in 'uk'.
At the same time, when the user opens this website and selects the language 'uk' or 'en', the translation works without problems.
Tell me please, what is the reason and how can I solve this problem, or at least where it would be reasonable to search?
The problem was that the translation from Russian into Russian was not completed, so the translation from Russian into Ukrainian was taken.
While the default was Russian, no translation was made at all, since there is no translation to this node in the default language. And when it became Ukrainian, in the absence of a translation, translation into Ukrainian began to be used.

Turn Off Liferay RTL feature

is there any way to turn off the liferay RTL (Right To Left) feature that is used when viewing pages in farsi or hebrew ?
We had some complaints because of the mirroring - feature but still want to display the page in farsi / hebrew ...
Thanks a lot !
Daniel
p.s. posted the same question in the liferay message board here:
https://web.liferay.com/de/community/forums/-/message_boards/message/85920728
OK, I found the answer:
You can turn off RTL / LTR Feature in the Language properties for the language that you want to change.
Here is what you need to add to the file Language_fa.properties:
lang.dir=ltr
lang.line.begin=left
lang.line.end=right

Android Studio use one specific language for all other than default

How do I set Android Studio project to use English translation for all locales other than the default language? If I have values/ and values-en/ directories, I want all locales other than the default to use the English translation.
I think you should a bit change your mind and think that all locales should use English translation but in one case (let's say for Spanish) should be no-English. Set values as your English directory and values-xxx for this as you said default case.
If a guy would have a phone with this default locale, he would have no-English translation, otherwise it would be translated to English.
Hope it will help

Why translation in liferay doesn't work - asset publisher

I start to use Asset Publisher in liferay. I added an article with some text in english. Then I want to add translation but there was no my language. So I added into portal-ext.properties next lines to enable more languages.
locales.enabled=ca_ES,zh_CN,en_US,fi_FI,fr_FR,de_DE,iw_IL,hu_HU,ja_JP,pt_BR,es_ES,cs_CZ,sk_SK
My language then appear, but the problem is the translation doesn't work. Not to my language, it doesn't work to any other languages. All it did is it just changed the font of the text. That's all. Can you help me and tell me what should I do? Thanks a lot.
Seems to be solved on the Liferay forums: You'll need to provide the translation yourself. Liferay offers the functionality to enter translated articles, but it doesn't translate the articles itself.
If I may add a personal remark: "...luckily". Automatic translation is not that good.

How to have different style files in multilingual website using Drupal 6?

I have been developing a multilingual website using Drupal 6. The languages are English and Spanish. I want to have some different backgrounds and css for them. But both use just style.css.
How can I create different style.css file for them? For example style-sp.css for Spanish one and en-style.css for English one ?
Is it possible ?
append to template.php in your theme this code:
global $language;
drupal_add_css(path_to_theme().'/style-'.$language->language.'.css','file');

Resources