Не поручается добавить украинский язык

Questions about how to install and problems installing - please read the documentation first!
Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

Не поручается добавить украинский язык

Post by Maxim » Wed Oct 01, 2014 7:32 am

Hello.

[ external image ] Не поручается добавить украинский язык (2lang -> uk). Поможете?
[ external image ] Nicht anvertraut hinzufügen Ukrainische Sprache (2lang -> uk). Helfen?
[ external image ] Not obliged to add Ukrainian language (2lang -> uk). Help?
Simple Hosting
Бедная, бросаемая бурею, безутешная!

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

Re: Не поручается добавить украинский язык

Post by cmb » Wed Oct 01, 2014 10:21 am

Since CMSimple_XH 1.6 adding another language is slightly more complicated than before. It is explained briefly in the Wiki and in detail in http://cmsimpleforum.com/viewtopic.php? ... 625#p37618.

I have done it on your test installation. See the folders uk/ and content/uk/ to understand what has to be done.
Christoph M. Becker – Plugins for CMSimple_XH

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

Не поручается добавить украинский язык

Post by Maxim » Thu Oct 02, 2014 7:26 am

Hello

[ external image ] Создаю:
[ external image ] Erstelle:
[ external image ] Create:
/cmsimple/languages
ru.php
uk.php

/content/uk

/plugins/.../languages
ru.php
uk.php

/uk
.2lang
index.php

/userfiles/images/flags
ru.gif
uk.gif

[ external image ] Нажимаю на украинский флаг > Login > ввожу пароль > Pages > Rename page > меняю имя на "111" > "The page structure could not be saved to "../content/uk/content.htm"!"
[ external image ] Klicke auf die Ukrainische Flagge - > Login - > gebe mein Passwort ein > Pages > Rename page > ändere den Namen in "111" > "The page structure could not be saved to "../content/uk/content.htm"!"
[ external image ] Click on the Ukrainian flag > Login > enter password > Pages > Rename page > change the name to "111" > "The page structure could not be saved to "../content/uk/content.htm"!"
Simple Hosting
Бедная, бросаемая бурею, безутешная!

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

Re: Не поручается добавить украинский язык

Post by cmb » Thu Oct 02, 2014 10:28 am

[ external image ]
I don't know how this happened, but obviously the directory is useless this way and it cannot be deleted.
Christoph M. Becker – Plugins for CMSimple_XH

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

Аж неловко

Post by Maxim » Fri Oct 03, 2014 8:09 am

[ external image ] Хм, это было просто, слишком просто, аж неловко.
[ external image ] Hmm, that was easy, too easy, much embarrassed.

[ external image ] При помощи cPanel удалось удалить, создать заново - работает. Спасибо.
[ external image ] Using cPanel managed to delete, create, re - powered. Thank you.

[ external image ] Не пойму какие нужно установить права? На какие папки, файлы?
[ external image ] На папки нужно установить 555 или 755 или 777? Неужели на все папки одни права?
[ external image ] На файлы нужно установить 444 или 644 или 666? Неужели на все файлы одни права?
[ external image ] I do not understand what you want to set permissions? What folders and files?
[ external image ] On the folder you want to install 555 or 755 or 777? Do all folders some permissions?
[ external image ] The files you need to install 444 or 644 or 666? Do all the files some permissions?
http://www.cmsimple-xh.org/wiki/doku.ph ... ermissions

[ external image ] Мы в настройках указываем "index, follow" значит файл "robots.txt" не нужен?
[ external image ] We in the settings you specify "index, follow" means file "robots.txt" don't need?

[ external image ] Нужен файл ".htaccess" или "index.htm"в пустых папках: userfiles, downloads, images, media...?
[ external image ] Need the file ".htaccess" or "index.htm"in the empty folder: userfiles, downloads, images, media...?

[ external image ] "The plugin Polyglott_XH is meant as (CMSimple_XH 1.6 compatible) successor of Multilang_XH, but it is not yet published." - жаль. Я не смогу связать страницы?
[ external image ] "The plugin Polyglott_XH is meant as (CMSimple_XH 1.6 compatible) successor of Multilang_XH, but it is not yet published." - very sad. I can't link the page?
http://www.cmsimple-xh.org/wiki/doku.ph ... l_websites

[ external image ] В шаблоне есть такие строки, для русской локализации:
[ external image ] In the template there are some lines for Russian localization:

Code: Select all

<area shape="poly" coords="845,16,867,16,867,38,845,38,845,16" href="mailform.html" alt="Почтовая форма" title="Почтовая форма" />
<area shape="poly" coords="807,16,829,16,829,38,807,38,807,16" href="sitemap.html" alt="Карта сайта" title="Карта сайта" />
<area shape="poly" coords="770,16,792,16,792,38,770,38,770,16" href="/" alt="Главная" title="Главная" />
[ external image ] Чтобы подставлялся перевод alt и title нужно создать ещё один шаблон, или можно использовать переменные?
[ external image ] To be substituted translation of alt and title need to create another template, or you can use variables?

Когда выбираю "Главная" перехожу на русскую версию сайта, а не на украинскую:
When you choose the "Main" go to Russian version of the site, not in Ukrainian:

Code: Select all

<area shape="poly" coords="770,16,792,16,792,38,770,38,770,16" href="/" alt="Главная" title="Главная" />
Simple Hosting
Бедная, бросаемая бурею, безутешная!

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

Re: Не поручается добавить украинский язык

Post by cmb » Fri Oct 03, 2014 11:05 am

Maxim wrote:При помощи cPanel удалось удаль, создать заново - работает.
Fine. :)
Maxim wrote:Не пойму какие нужно установить права? На какие папки, файлы?
На папки 555, 755, 777
На файлы 444, 644, 666
Неужели на все папки одни права?
Неужели на все файлы одни права?
http://www.cmsimple-xh.org/wiki/doku.ph ... ermissions
Most files should be 0444; most of the folders 0555. Only some files and folders need write permessions; these are listed in http://www.cmsimple-xh.org/wiki/doku.php/installation and in the documentation of the plugins. Whether the files need 0644 or 0666 and the folders need 0755 or 0777 depends on the server.
Maxim wrote:Мы в настройках указываем "index, follow" значит файл "robots.txt" не нужен?
You need both. "index,follow" and its variants are for the pages generated by CMSimple, because you can't exclude them with robots.txt. robots.txt is for other files.
Maxim wrote:Нужен файл ".htaccess" или "index.htm"в пустых папках: userfiles, downloads, images, media...?
You must not have a .htaccess to prevent access in these folders. You can put index.htm there, but most servers are configured to disallow directory listings anyway. Just try it: http://example.com/userfiles/ (replace example.com with your domain name).
Maxim wrote:"The plugin Polyglott_XH is meant as (CMSimple_XH 1.6 compatible) successor of Multilang_XH, but it is not yet published."
Oops -- I have forgotten to update the article. Thanks for the reminder. Polyglott_XH is available since a while.
Maxim wrote:Чтобы подставлялся перевод alt и title нужно создать ещё один шаблон, или можно использовать переменные?
You can use existing variables:

Code: Select all

<area shape="poly" coords="845,16,867,16,867,38,845,38,845,16" href="mailform.html" alt="<?php echo $tx['menu']['mailform']?>" title="<?php echo $tx['menu']['mailform']?>" />
<area shape="poly" coords="807,16,829,16,829,38,807,38,807,16" href="sitemap.html" alt="<?php echo $tx['menu']['sitemap']?>" title="<?php echo $tx['menu']['sitemap']?>" />
<area shape="poly" coords="770,16,792,16,792,38,770,38,770,16" href="/" alt="<?php echo $tx['locator']['home']?>" title="<?php echo $tx['locator']['home']?>" />
Maxim wrote:Когда выбираю "Главная" перехожу на русскую версию сайта, а не на украинскую:
You can use the following:

Code: Select all

<area shape="poly" coords="770,16,792,16,792,38,770,38,770,16" href="<?php echo $pth['folder']['base']?>" alt="Главная" title="Главная" />
Christoph M. Becker – Plugins for CMSimple_XH

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

Polyglott_XH

Post by Maxim » Mon Oct 06, 2014 8:28 am

[ external image ] 1.
The following folders have to be given writing permissions
...
http://www.cmsimple-xh.org/wiki/doku.php/installation
Проставьте пожалуйста цифры:
555, 755, 777
444, 644, 666
Будет легче понять.

2.
Whether the files need 0644 or 0666 and the folders need 0755 or 0777 depends on the server.
Подскажите, где я могу больше про это узнать?

3. Почему content.htm? Почему не content.html?

4. Простите, я не понял, файл "robots.txt" нужен или не нужен? Можете перефразировать?

5.
You must not have a .htaccess to prevent access in these folders. You can put index.htm there, but most servers are configured to disallow directory listings anyway. Just try it: http://example.com/userfiles/ (replace example.com with your domain name).
Хостинги могут и отличаться, если у меня всё нормально, это не означает, что у всех также хорошо.

6. "Polyglott_XH" не учитывает ".html" и "?", можете исправить плагин?

7. href="<?php echo $pth['folder']['base']?>" - это переход на главную страницу сайта, а нужно "/uk/".

[ external image ] 1.
The following folders have to be given writing permissions
...
http://www.cmsimple-xh.org/wiki/doku.php/installation
Please add the numbers:
555, 755, 777
444, 644, 666
It will be easier to understand.

2.
Whether the files need 0644 or 0666 and the folders need 0755 or 0777 depends on the server.
Prompt, where I can learn?

3. Why content.htm? Why not content.html?

4. Sorry, I did not understand the file "robots.txt" necessary or not? Can be paraphrased?

5.
You must not have a .htaccess to prevent access in these folders. You can put index.htm there, but most servers are configured to disallow directory listings anyway. Just try it: http://example.com/userfiles/ (replace example.com with your domain name).
Hosting providers can differ, if I'm okay, it does not mean that all too well.

6. "Polyglott_XH" does not consider ".html" and "?" can fix the plugin?

7. href="<?php echo $pth['folder']['base']?>" - is the switch on the main page of the site, and need "/uk/".
Simple Hosting
Бедная, бросаемая бурею, безутешная!

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

Re: Не поручается добавить украинский язык

Post by cmb » Mon Oct 06, 2014 11:01 am

Maxim wrote:Проставьте пожалуйста цифры:
555, 755, 777
444, 644, 666
Будет легче понять.
I have added links to http://www.cmsimple-xh.org/wiki/doku.ph ... conclusion. That might be better than simply adding the numbers.
Maxim wrote:
cmb wrote:Whether the files need 0644 or 0666 and the folders need 0755 or 0777 depends on the server.
Подскажите, где я могу больше про это узнать?
That is explained in detail in http://www.cmsimple-xh.org/wiki/doku.ph ... ermissions and in http://en.wikipedia.org/wiki/File_syste ... ermissions. The Russian version of the Wikipedia article doesn't explain it, unfortunately. Maybe http://yandex.ru/yandsearch?text=%D1%80 ... %8B%20unix is helpful.
Maxim wrote:Почему content.htm? Почему не content.html?
Because it has always been this way. :)
Maxim wrote:Простите, я не понял, файл "robots.txt" нужен или не нужен? Можете перефразировать?
It is not possible to disallow access to certain CMSimple pages with robots.txt. The following doesn't work:

Code: Select all

Disallow: /index.php?Page_name
So there is the possibility to prevent indexing via the meta robots ("noindex,nofollow").

If you are using clean URLs, you can use robots.txt. The following works:

Code: Select all

Disallow: /index.php/Page_name
But not everybody has clean URLs.
Maxim wrote:
cmb wrote:You must not have a .htaccess to prevent access in these folders. You can put index.htm there, but most servers are configured to disallow directory listings anyway. Just try it: http://example.com/userfiles/ (replace example.com with your domain name).
Хостинги могут и отличаться, если у меня всё нормально, это не означает, что у всех также хорошо.
It might be reasonable to add empty index.htm(l) files to userfiles/, userfiles/images/ etc. However, if a user creates a new folder, say userfiles/images/test/, the files in this directory can be seen anyway. I am not sure. What do other think about it?
Maxim wrote:"Polyglott_XH" не учитывает ".html" и "?", можете исправить плагин?
I'll have a look at it.
Maxim wrote:href="<?php echo $pth['folder']['base']?>" - это переход на главную страницу сайта, а нужно "/uk/".
It seems I have misunderstood you, but I'm still not sure what you want to accomplish. Can you please explain.
Christoph M. Becker – Plugins for CMSimple_XH

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

Нужно два варианта

Post by Maxim » Mon Oct 06, 2014 11:27 am

[ external image ] Это переход на русскую версию сайта:
[ external image ] This transition to the Russian version of the website:
<area shape="poly" coords="770,16,792,16,792,38,770,38,770,16" href="/" alt="Главная" title="Главная" />

[ external image ] Нужно два варианта, второй вариант, переход на главную страницу украинской версии сайта, если я нахожусь на украинской версии сайта:
[ external image ] Need two options, the second option, go to the main page of the Ukrainian version of the site, if I'm on the Ukrainian version of the site:
<area shape="poly" coords="770,16,792,16,792,38,770,38,770,16" href="uk/" alt="Головна" title="Головна" />
Simple Hosting
Бедная, бросаемая бурею, безутешная!

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

Re: Нужно два варианта

Post by cmb » Tue Oct 07, 2014 8:47 pm

Maxim wrote:[ external image ] Это переход на русскую версию сайта:
[ external image ] This transition to the Russian version of the website:
<area shape="poly" coords="770,16,792,16,792,38,770,38,770,16" href="/" alt="Главная" title="Главная" />

[ external image ] Нужно два варианта, второй вариант, переход на главную страницу украинской версии сайта, если я нахожусь на украинской версии сайта:
[ external image ] Need two options, the second option, go to the main page of the Ukrainian version of the site, if I'm on the Ukrainian version of the site:
<area shape="poly" coords="770,16,792,16,792,38,770,38,770,16" href="uk/" alt="Головна" title="Головна" />
Ah, now I understand! That's simple:

Code: Select all

<area shape="poly" coords="770,16,792,16,792,38,770,38,770,16" href="<?php echo $sn?>" alt="<?php echo $tx['locator']['home']?>" title="<?php echo $tx['locator']['home']?>" />
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply