Page 1 of 1

[XH 1.5.1] Default language other than English.[solved]

Posted: Sun Jan 08, 2012 11:00 am
by learnandcode
Hi.
I read that newest version of CMSimple_XH provide many improvements like own template for different languages.
Unfortunately I can't find anything in documentation and my php skills are poor.
I can't find how to set other than english language as main and make english version of site in en(eng) folder.
Like:

Code: Select all

./  - polish
./en/ - english
In the other site is working of course

Code: Select all

./ - eng
./pl/ - polish
Thanks in advance

Re: [XH 1.5.1] Default language other than English.

Posted: Sun Jan 08, 2012 11:25 am
by Tata
the simples waz would be IMHO:
1. Write the page in EN and its Polish version then in PL folder.
2. In config set EN as the default language.
Then the Polish flad appears in languagemenu on the default webpage and EN flag on the Polish webpage.

Re: [XH 1.5.1] Default language other than English.

Posted: Sun Jan 08, 2012 11:30 am
by cmb
Hi learnandcode,

you can set the default language of the installation under Settings->CMS->Language->Default. If you do not have created the pl/ folder, it's best, if you make this setting in cmsimple/config.php directly ($cf['language']['default']="pl";).

If you want to choose a different template, have a look at Settings->Website->Subsite->Template. But if you need only some modifications for both templates, perhaps it's easier to use the "trick" about Language specific templates.

Christoph

Re: [XH 1.5.1] Default language other than English.[solved]

Posted: Sun Jan 08, 2012 2:44 pm
by learnandcode
Problem solved.
Thanks cmb for youre Translator_XH plugin. It was very useful.
The first time i changed the language main script send me error that many files don`t have polish language for it.
Now everything working ok :D.

About template: i have allready prepared template for other languages.

I have one more question:
Is it other option to make image button for menu elements than doing it staticly?
I made pages in default template and put static links with images instead of

Code: Select all

<?php echo printlink();?>
I know that is'nt good idea.

Re: [XH 1.5.1] Default language other than English.[solved]

Posted: Sun Jan 08, 2012 2:59 pm
by cmb
Hi learnandcode,

if you've already translated everything to Polish, perhaps you're interested in making the translation available for others too? (see http://www.cmsimpleforum.com/viewtopic.php?f=5&t=3888)
learnandcode wrote:Is it other option to make image button for menu elements than doing it staticly?
Particularly for printlink you can use the language string Menu->Print that's "Print view" by default. Just set it to

Code: Select all

<img src="PATH_TO_THE_IMAGE">
If you're using XHTML don't forget the "/" at the end of the img tag.

Christoph

Re: [XH 1.5.1] Default language other than English.[solved]

Posted: Sun Jan 08, 2012 4:56 pm
by learnandcode
Of course. When I remove all the mistakes, I will share translations with the community.

cmb. I see that you have many plugins on youre site. You can collect English or german language files and send me too. ;)

Re: [XH 1.5.1] Default language other than English.[solved]

Posted: Sun Jan 08, 2012 5:39 pm
by Tata
learnandcode wrote:You can collect English or german language files and send me too. ;)
Easier than translating the files is download of the plugins and translating them bz translator plugin. Then make a copy of all installed plugins and delete everything except of language folder and translated files in them. Then ZIP the separate plugins folders and send ZIPs to Chris or place them somewhere on your server for public download as e.g. "plugin_name_version_language.zip".

Re: [XH 1.5.1] Default language other than English.[solved]

Posted: Sun Jan 08, 2012 5:50 pm
by cmb
Hi learnandcode, hi Tata,
learnandcode wrote:Of course. When I remove all the mistakes, I will share translations with the community.
That would be nice. :)
learnandcode wrote:You can collect English or german language files and send me too
Most of the plugins are in BETA phase (or even earlier), so IMO it's not reasonable to translate them yet (so I can add, remove or change language strings). Pagemanager_XH is included with CMSimple_XH 1.5. So I've collected german and english language files (+ translation-hints) for Sitemapper_XH, Tetris_XH and Yanp_XH. If you like to translate any of them, I'll gladly add your translation to future releases. My e-mail address can be found on my website under "Legal Notices".

The translation pack I've bundled has already the required structure for Translator_XH, so it's enough to download this (if you don't need the plugins) and upload everything to plugins/. The preparation of the translated files is even simpler with Translator_XH->Translations: just check the translated plugins, and SAVE them to a zip file.

Christoph

Re: [XH 1.5.1] Default language other than English.[solved]

Posted: Sun Jan 08, 2012 8:28 pm
by learnandcode
Nice. I think i can finish my work today / tomorrow. It depends how many tests i will pass tomorrow. :)

Done:
  • CORE
  • CORE-LANGCONFIG
  • Jquery
  • Meta_tags
  • Multilang
  • Pluginloader
  • Tetris
  • Tinymce
  • Translator
Translation in progress:
  • Page_params
  • Pagemanager
  • Yanp
  • Sitemapper
  • Filebrowser
  • Fotogalerie