cotonti.com : Content Internationalization (i18n) of Sienna https://www.cotonti.com Последние сообщения в теме Cotonti en Fri, 10 Oct 2025 04:18:09 -0000 Ben Yes I checked it 3 times.

But it's okay. I'm happy with it now :)

Don't know wether its a Bug or not. But someone could consider to add "choosing parsing method" to i18n Plugin.

]]>
чт, 03 апр 2014 21:25:36 -0000
Twiebie Hmm, if I remember correctly i18n uses whatever parser is set for the page module by grabbing $cfg['page']['markup']

Are you sure yours is set to HTML in: admin.php?m=config#get;m=config&n=edit&o=module&p=page?

]]>
ср, 02 апр 2014 21:56:27 -0000
Ben Well I figured it out now.

Thanks Twiebie for your hint :)

 

The problem was. I used Globally BBCode Parsing ( Forums,Comments) and HTML Parsing just for Pages.

For adding normal news articles it choose html parsing automatically. But i18n uses the standard parsing method (in my case BBcode)

 

This opens a new question: When I want to use BBCode Parsing for Forums + Comments. How do I have to set up my system?

There should be a switch (choosing parsing method) in translation mode (like when you write normal news articles).

 

Any suggestions?

 

Thanks a lot four your help!

 

Added 6 minutes later:

For everyone wondering how it looks like when parsing method is set to bbcode with i18n

Adding normal article:

 

Translating Article:

Final result:

]]>
ср, 02 апр 2014 20:44:45 -0000
Twiebie #39359 Ben:

As an Example:

1. I add regularly a News Article -> Article contains embededd Video, html tags ...

2. I klick on Translate

3. I'm in Translationmode

- On the left side I see the HTML Sourcecode of the Article

- On the right side I see the Article in CKeditor  how it should look like.

4. I translate the text and fire the send button.

Result: Article is published as text , showing all the html syntax

 

do you know any solution?

 

On the left side it should show the normal page content, not the source code. Can you confirm that?

Does editing the page work? Can you confirm the parser it set to HTML for that particular page?

]]>
ср, 02 апр 2014 17:10:46 -0000
Ben As an Example:

1. I add regularly a News Article -> Article contains embededd Video, html tags ...

2. I klick on Translate

3. I'm in Translationmode

- On the left side I see the HTML Sourcecode of the Article

- On the right side I see the Article in CKeditor  how it should look like.

4. I translate the text and fire the send button.

Result: Article is published as text , showing all the html syntax

 

do you know any solution?

 

]]>
ср, 02 апр 2014 16:51:58 -0000
Macik On what step you get « unparsed HTML» ? 

]]>
ср, 02 апр 2014 09:07:02 -0000
Ben Hello mates :)

Anyone here who can tell me how to use html parsing with I18n Plugin?

I'm using CKEditor for Pages (HTML Parsing) and for Comments/Forums (BBCode) Parsing

 

When I want to translate a Newsarticle X on my Site (containing HTML) it doesn't parse the HTML

 

Any Ideas?

 

Ben

 

]]>
вс, 30 мар 2014 22:16:14 -0000
Uch #39188 Trustmaster:

Uch, this is usually caused by Options directive in .htaccess, because it is hosting-dependant. Try different combinations of Options like, -Indexes, +Indexes, -FollowSymLinks, +FollowSymLinks.

It did not help :(

]]>
ср, 12 фев 2014 14:46:05 -0000
Trustmaster Uch, this is usually caused by Options directive in .htaccess, because it is hosting-dependant. Try different combinations of Options like, -Indexes, +Indexes, -FollowSymLinks, +FollowSymLinks.

]]>
ср, 12 фев 2014 10:39:22 -0000
Uch Hello!

I need some help please!

I cant get the admin page www.sitename.com/en/admin when i use i18n and URL Editor with handy mode. The other admin pages (for example www.sitename.com/en/admin/extensions or www.sitename.com/en/page?m=add&c=articles) work fine. But if i try to get www.sitename.com/en/admin i get error:"One of the request parameters is invalid or has expired. Please go back and try submitting the form again. "

I have RewriteRule ^(en|ru|de|nl)/(.*) $2?l=$1 [QSA,NC,NE] line in my .htaccess

 

 

]]>
вт, 11 фев 2014 17:26:43 -0000
Trustmaster You're welcome. I've saved these notes in a quick help doc, because I often repeat them here on forums.

There's no need to hurry, better get things right. That's why Genoa is still here.

]]>
пт, 01 июн 2012 18:46:54 -0000
foxhound Wow, I am so sorry. Now I understand why I felt like an idiot trying to make this work. This is so very easy to use now you explained it, thanks for the help (again) Trustmaster!

It is working now and I must say, this is incredibly perfect! This opens up many new possibilities for any site I am running or will run in the future. Although I am still not moved to Sienna for my live websites this too only makes me want to hurry things up (but working on numerous new projects is not helping with the hurry).

]]>
пт, 01 июн 2012 12:57:09 -0000
Trustmaster foxhound, i18n works in an absolutely different way in Siena rather than pagi18n plugin from Genoa. You don't need to create alternative cat trees, but rather translate the main one.

Here are the essential steps:

  1. Go to Administration / Configuration / Content Internationalization.
  2. Set there root categories where you want to apply i18n, e.g. "articles, news".
  3. Set there locales it will be translated into (the first locale is the main one): 
    en|English
    nl|Nederlands
    de|Deutsch
  4. Go to Administration / Structure / Pages / Structure Internationalization and translate category names and descriptions into each of your (non-main) locales.
  5. Add these controls to your page.tpl
    <!-- BEGIN: I18N_LANG -->
    {PHP.L.Language}:
    <ul>
    	<!-- BEGIN: I18N_LANG_ROW -->
    	<li><a href="https://www.cotonti.com/{I18N_LANG_ROW_URL}">{I18N_LANG_ROW_TITLE}</a></li>
    	<!-- END: I18N_LANG_ROW -->
    </ul>
    <!-- END: I18N_LANG -->
    {PAGE_I18N_TRANSLATE} {PAGE_I18N_DELETE}
  6. Now if you open a page from one of the category trees you specified in 2) you can click "Translate" and translate into one of the other locales.
  7. If you need a language selector in your header.tpl, here is what it might look like:
    <!-- BEGIN: I18N_LANG -->
    <ul>
    	<!-- BEGIN: I18N_LANG_ROW -->
    	<li>
    		<a href="https://www.cotonti.com/{I18N_LANG_ROW_URL}" title="{I18N_LANG_ROW_TITLE}"><img src="https://www.cotonti.com/images/flags/{I18N_LANG_ROW_FLAG}.png" alt="{I18N_LANG_ROW_CODE}" /></a>
    	</li>
    	<!-- END: I18N_LANG_ROW -->
    </ul>
    <!-- END: I18N_LANG -->

That's it.

]]>
пт, 01 июн 2012 11:57:20 -0000
foxhound I am trying to use this for the first time on a clean Sienna 0.9.9 installation and i am a bit confused how to get this to work with pages.
I got it to work so far that if you select the English flag the site shows in all English (default text fields) and when you select the Dutch flag the entire site (the default fields) are displayed in dutch.

I created 2 news items from which one in English and one in Dutch with a stucture like this:

1 en English
1.1 en-news News
2 nl Dutch
2.1 nl-news Nieuws

No matter what I do, the dutch news item does not show in the news on the index.php. It only shows when I add {INDEX_NEWS_NL_NEWS} to the index.php. But than it will always show (no matter if you select to view the Dutch or the English site).

I added the following to my urltrans.dat:
page    al=*    {pagi18n_url()}

This is showing an error as well every time: "Alert! this line contains callbacks: {pagi18n_url()}
No idea what that means.

I added the following to my htaccess:

Options FollowSymLinks -Indexes
# Server-relative path to Cotonti:
RewriteBase "/testers/xxxxxxxxx/"
RewriteRule ^(datas|images|js|themes)/(.*)$ $1/$2 [QSA,NC,NE,L]

# Pages with aliases only
# Language selector
RewriteRule "^(en|nl)/(.*)?(.*)$" $2?$3&l=$1
RewriteRule "^(en|nl)/(.*)" $2?l=$1


I am pretty sure I am doing something dumb but I just do not fully understand the instructions on the downloadpage and here in this thread (which to me look different as well which is causing more confusion.
Any help with this? 

laugh

 

]]>
пт, 01 июн 2012 11:18:13 -0000
Trustmaster I'll check the news plugin. As for Recent items, it has no i18n support yet.

Добавлено 10 часов спустя:

I've found the reason. I18n for news interferes with page cache generated by recentitems. So if i18n support is added to recentitems, news will work as well.

]]>
вс, 07 авг 2011 07:52:32 -0000
pieter Now it works perfect, even if you install it upon installation of cotonti.

Added 3 minutes later:

But on index, news-title is changed but text isn't.

If I click on de news to open as a page, the right text is displayed.

See: http://broens.be/index.php

Added 9 minutes later:

Also Recent Items is not doing what it should do.
Titles are not translated.

]]>
вс, 07 авг 2011 05:42:53 -0000
Trustmaster Please check the latest revision from github, this problem is already solved there.

]]>
сб, 06 авг 2011 19:41:25 -0000
pieter 2011-08-03 13:44

Fatal error: SQL error 42000: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ADD COLUMN `tag_locale` VARCHAR(8) NOT NULL DEFAULT ''' at line 1

#0  cot_diefatal(SQL error 42000: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ADD COLUMN `tag_locale` VARCHAR(8) NOT NULL DEFAULT ''' at line 1) called at [/home/k3098kru/public_html/_subsites/broens/system/database.php:436]
#1  CotDB->query(ALTER TABLE  ADD COLUMN `tag_locale` VARCHAR(8) NOT NULL DEFAULT '') called at [/home/k3098kru/public_html/_subsites/broens/plugins/i18n/setup/i18n.install.php:20]
#2  include(/home/k3098kru/public_html/_subsites/broens/plugins/i18n/setup/i18n.install.php) called at [/home/k3098kru/public_html/_subsites/broens/system/extensions.php:499]
#3  cot_extension_install(i18n, ) called at [/home/k3098kru/public_html/_subsites/broens/system/admin/admin.extensions.php:352]
#4  require(/home/k3098kru/public_html/_subsites/broens/system/admin/admin.extensions.php) called at [/home/k3098kru/public_html/_subsites/broens/system/admin/admin.main.php:67]
#5  include(/home/k3098kru/public_html/_subsites/broens/system/admin/admin.main.php) called at [/home/k3098kru/public_html/_subsites/broens/admin.php:25]

How can I solve this?
]]>
ср, 03 авг 2011 13:45:40 -0000
Trustmaster I have fixed a misspelling that may cause this (fetch latest from git) error, but I haven't fixed i18n/tags install order in the installer script, it requries more complex dependency tracking than the current system.

]]>
пт, 29 июл 2011 21:02:00 -0000
Twiebie For some reason I can't post an image with the CKEditor here..

But here are my server details:

http://www.twiebie.com/files/dump/server-info.png

Biggest difference would be the Apache version.

]]>
чт, 28 июл 2011 14:33:48 -0000
pieter  

cPanel Version 11.28.52
Theme x3
Apache version 1.3.42
PHP version 5.2.9
MySQL version 5.0.91-community
Architecture i686
Operating system linux

 

]]>
чт, 28 июл 2011 13:51:15 -0000
Twiebie Hmm, weird...

I just did a fresh Siena test install via the same steps as you posted earlier and it works fine here..

]]>
чт, 28 июл 2011 13:46:02 -0000
pieter I reinstalled Siena without i18n.

When I try to install i18n I get: 

 

	Fatal error: SQL error 42000: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ADD COLUMN `tag_locale` VARCHAR(8) NOT NULL DEFAULT ''' at line 1
#0 cot_diefatal(SQL error 42000: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ADD COLUMN `tag_locale` VARCHAR(8) NOT NULL DEFAULT ''' at line 1) called at [/home/k3098kru/public_html/_subsites/sai_siena/system/database.php:436] #1 CotDB->query(ALTER TABLE ADD COLUMN `tag_locale` VARCHAR(8) NOT NULL DEFAULT '') called at [/home/k3098kru/public_html/_subsites/sai_siena/plugins/i18n/setup/i18n.install.php:20] #2 include(/home/k3098kru/public_html/_subsites/sai_siena/plugins/i18n/setup/i18n.install.php) called at [/home/k3098kru/public_html/_subsites/sai_siena/system/extensions.php:499] #3 cot_extension_install(i18n, ) called at [/home/k3098kru/public_html/_subsites/sai_siena/system/admin/admin.extensions.php:352] #4 require(/home/k3098kru/public_html/_subsites/sai_siena/system/admin/admin.extensions.php) called at [/home/k3098kru/public_html/_subsites/sai_siena/system/admin/admin.main.php:67] #5 include(/home/k3098kru/public_html/_subsites/sai_siena/system/admin/admin.main.php) called at [/home/k3098kru/public_html/_subsites/sai_siena/admin.php:25]

 

After this, plugin in running, but I can only see install. Not update, un-install, pause, ... http://www.cotonti.com/datas/users/i18n_64.png

]]>
чт, 28 июл 2011 11:19:29 -0000
GHengeveld Likely the install script installs i18n first, then tags. If so that should be fixed.

]]>
ср, 27 июл 2011 18:16:12 -0000
pieter I installed it with the install script. It was a fresh install of Siena.

 

]]>
ср, 27 июл 2011 16:45:03 -0000
GHengeveld The tag_locale column should've been added to the cot_tag_references table by the i18n plugin installer. See plugins/i18n/setup/i18n.install.php. You can run those queries manually to fix it. It seems that you installed the tags plugin after installing the i18n plugin, which caused this code to not be executed.

]]>
ср, 27 июл 2011 16:33:22 -0000
pieter I'm getting there, but I get the following error:

 

Fatal error: SQL error 42S22: Column not found: 1054 Unknown column 'tag_locale' in 'where clause'

#0  cot_diefatal(SQL error 42S22: Column not found: 1054 Unknown column 'tag_locale' in 'where clause') called at [/home/k3098kru/public_html/_subsites/sai_siena/system/database.php:436]
#1  CotDB->query(SELECT `tag` FROM cot_tag_references
		WHERE tag_item = 2 AND tag_area = 'pages' AND tag_locale = 'nl') called at [/home/k3098kru/public_html/_subsites/sai_siena/plugins/tags/inc/tags.functions.php:204]
#2  cot_tag_list(2, pages, Array ([tag_locale] => nl)) called at [/home/k3098kru/public_html/_subsites/sai_siena/plugins/tags/tags.page.main.php:33]
#3  include(/home/k3098kru/public_html/_subsites/sai_siena/plugins/tags/tags.page.main.php) called at [/home/k3098kru/public_html/_subsites/sai_siena/modules/page/inc/page.main.php:128]
#4  require_once(/home/k3098kru/public_html/_subsites/sai_siena/modules/page/inc/page.main.php) called at [/home/k3098kru/public_html/_subsites/sai_siena/page.php:46]

Do I need to add it manually, or is it done via the setup?
]]>
ср, 27 июл 2011 14:56:52 -0000
Twiebie #30295 pieter:

This part I don't get. Where can I find this? Do I need to change something in the tpl's?

> #28254 Trustmaster: 
Once you've chosen i18n categories, you'd need to translate them first. To do so, go to Admin => Pages => Structure and click "Structure Internationalization" there.

To localize a page in one of your i18n categories, enter the original page there and click on "Translate" button. It will create a new translation in a locale you choose. After that you'll be able to edit localized page just as a separate entry.

Use the tag: {PAGE_I18N_TRANSLATE} in for example page.tpl

]]>
ср, 27 июл 2011 09:58:47 -0000
diablo you need to add tags first.

Added 1 minute later:

BTW found another problem. when you change the codes of categories after you translate them everything goes down. had to make a clean siena installation since it ruined whole CMS for some reason

]]>
ср, 27 июл 2011 09:31:21 -0000
pieter This part I don't get. Where can I find this? Do I need to change something in the tpl's?

#28254 Trustmaster: 
Once you've chosen i18n categories, you'd need to translate them first. To do so, go to Admin => Pages => Structure and click "Structure Internationalization" there.

To localize a page in one of your i18n categories, enter the original page there and click on "Translate" button. It will create a new translation in a locale you choose. After that you'll be able to edit localized page just as a separate entry.
]]>
ср, 27 июл 2011 06:19:25 -0000
Twiebie Yep, got the same problem here..

]]>
вт, 26 июл 2011 16:33:08 -0000
diablo found a bug about its URL. url returns wrong link when the page is a plugin.

contact us plugin url returns as contact.php?e=contact&l=ru

]]>
вт, 26 июл 2011 14:44:35 -0000
Trustmaster Example for nginx webserver:

# Language selector
rewrite "^/(en|ru|de|nl)/(.*)?(.*)$" /$2?$3&l=$1;
rewrite "^/(en|ru|de|nl)/(.*)" /$2?l=$1;

Example for Apache webserver:

# Language selector
RewriteRule "^(en|ru|de|nl)/(.*)?(.*)$" $2?$3&l=$1
RewriteRule "^(en|ru|de|nl)/(.*)" $2?l=$1

Added 22 hours later:

Example language selector for header.tpl:

<!-- BEGIN: I18N_LANG -->
	<!-- BEGIN: I18N_LANG_ROW -->
	<li>
		<a href="https://www.cotonti.com/{I18N_LANG_ROW_URL}" title="{I18N_LANG_ROW_TITLE}"><img src="https://www.cotonti.com/images/flags/{I18N_LANG_ROW_FLAG}.png" alt="{I18N_LANG_ROW_CODE}" /></a>
	</li>
	<!-- END: I18N_LANG_ROW -->
<!-- END: I18N_LANG -->
]]>
ср, 20 июл 2011 18:31:39 -0000
diablo it needs a .htaccess file to work. can we get that file? i have no knowledge about redirect and rewrite modules

]]>
ср, 20 июл 2011 09:09:47 -0000
Twiebie For menu items you can just use custom language files for your theme, such as {PHP.M.Item1} in theme.en.lang.php and for example theme.nl.lang.php.
That way they will automatically be translated when the language changes.

In the configuration you can set the categories that i18n should be applied on, such as news,files,links,downloads for example.
Then you can set the languages it needs to include such as nl|Dutch and en|English. (1 language per line).

It's best to grab the latest version of i18n from Cotonti's repository as Trustmaster has updated it recently.

Hope that helps.

]]>
вт, 19 июл 2011 11:35:15 -0000
diablo hi , great work on that plugin Trustmaster. but its lacking information how to use it. Can you explain the plugin in detail as it is on 0.94 with updates? how do we translate menu items ?

]]>
вт, 19 июл 2011 09:44:43 -0000
Trustmaster
Once you've chosen i18n categories, you'd need to translate them first. To do so, go to Admin => Pages => Structure and click "Structure Internationalization" there.

To localize a page in one of your i18n categories, enter the original page there and click on "Translate" button. It will create a new translation in a locale you choose. After that you'll be able to edit localized page just as a separate entry.

If localizations are available for current category/page, they are presented in a list (Wikipedia-style). They have similar URLs but with l=LOCALE parameter added.

If tags plugin is used, localized versions have their own tags in their native language. Support for Search and News plugins is also included.]]>
пн, 07 фев 2011 01:33:45 -0000
pieter
How does the new Content Internationalization (i18n) of Sienna works?]]>
вс, 06 фев 2011 21:39:04 -0000