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

Questions about how to install and problems installing - please read the documentation first!
Post Reply
learnandcode
Posts: 13
Joined: Sat Jan 07, 2012 8:37 pm
Location: Poland
Contact:

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

Post by learnandcode » Sun Jan 08, 2012 11:00 am

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
Last edited by learnandcode on Sun Jan 08, 2012 1:17 pm, edited 1 time in total.

Tata
Posts: 3190
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

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

Post by Tata » Sun Jan 08, 2012 11:25 am

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.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 13342
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

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

Post by cmb » Sun Jan 08, 2012 11:30 am

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
Christoph M. Becker – Plugins for CMSimple_XH

learnandcode
Posts: 13
Joined: Sat Jan 07, 2012 8:37 pm
Location: Poland
Contact:

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

Post by learnandcode » Sun Jan 08, 2012 2:44 pm

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.

cmb
Posts: 13342
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

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

Post by cmb » Sun Jan 08, 2012 2:59 pm

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
Christoph M. Becker – Plugins for CMSimple_XH

learnandcode
Posts: 13
Joined: Sat Jan 07, 2012 8:37 pm
Location: Poland
Contact:

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

Post by learnandcode » Sun Jan 08, 2012 4:56 pm

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. ;)

Tata
Posts: 3190
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

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

Post by Tata » Sun Jan 08, 2012 5:39 pm

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".
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 13342
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

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

Post by cmb » Sun Jan 08, 2012 5:50 pm

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
Christoph M. Becker – Plugins for CMSimple_XH

learnandcode
Posts: 13
Joined: Sat Jan 07, 2012 8:37 pm
Location: Poland
Contact:

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

Post by learnandcode » Sun Jan 08, 2012 8:28 pm

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

Post Reply