cotonti.com : [Template] Plugin lang-file https://www.cotonti.com Последние сообщения в теме Cotonti en Thu, 30 Oct 2025 06:40:24 -0000 dervan
now used code like this:
if (!defined('SED_CODE')) { die('Wrong URL.'); }
but this code is not convenient to Cotonti Coding Style

conventional code:
if (!defined('SED_CODE'))
{
	die('Wrong URL.');
}
but this code is not compact

compact code with the same check:
defined('SED_CODE') or die('Wrong URL.');

i suggest to add this check in template:
<?php
/**
 * LOCALE Language File for PLUG Plugin
 *
 * @package Cotonti
 * @version VERSION
 * @author Cotonti Translators Team
 * @copyright Copyright (c) 2008-2009 Cotonti Team
 * @license BSD
 */

defined('SED_CODE') or die('Wrong URL.');

/**
 * Plugin Title & Subtitle
 */
]]>
пт, 20 мар 2009 04:58:56 -0000
pieter
I want to download this, to start from it to do the translation.
If I do this, the structure is already OK.

EDIT: founded on the bottom]]>
пт, 20 мар 2009 03:20:23 -0000
Kort

Template updated (check Revision History). Please update your localizations accordingly!]]>
чт, 19 мар 2009 05:49:09 -0000
dervan чт, 19 мар 2009 05:40:36 -0000 Dayver чт, 19 мар 2009 05:34:45 -0000 dervan # Dayver : I do not agree with you ....
why don't you agree? where i told that english should not be default?]]>
чт, 19 мар 2009 04:51:43 -0000
Dayver # dervan : my opinion for "Plugin Config" section: all english texts for config must be exists in "setup" plugin part, and it's necessary to repeat all these texts in "Plugin Config" section in english lang-file
I do not agree with you .... English Langpack should include these lines because all translations are from English as from default lang.]]>
чт, 19 мар 2009 01:03:09 -0000
dervan ср, 18 мар 2009 22:15:04 -0000 Kort <?php /** * LOCALE Language File for PLUG Plugin * * @package Cotonti * @version VERSION * @author Cotonti Translators Team * @copyright Copyright (c) 2008-2009 Cotonti Team * @license BSD */ /** * Plugin Title & Subtitle */ /** * Plugin Body */ /** * Plugin Config */ ?>Ok, this is what we came up with for plugin translations.
LOCALE - replace with the translation language (e.g. Dutch)
PLUG - replace with the plugin name (e.g. ComEdit)
VERSION - replace with the Cotonti version the language file is made for (it is a bit confusing for me, I'd rather put here plugin version, so I leave it for discussion -- like the template itself)

Revision History:
19.03.2009 - changed
<?PHP
to
<?php
, fixed copyright notice.
Thanks to dervan]]>
ср, 18 мар 2009 20:08:22 -0000