Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

Forums / Cotonti / Localization / [Template] Plugin lang-file

Kort Online
#1 2009-03-18 20:08


Coordinators
Thanked: 30 times

<?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
Seditio.by - создание сайтов, разработка плагинов и тем для Котонти

This post was edited by Kort (2009-03-19 22:56, 4 years ago)
dervan
#2 2009-03-18 22:15


Contributors

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
Dayver
#3 2009-03-19 01:03


Developers
Thanked: 35 times

# 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.
Pavel Tkachenko aka Dayver
Я злой и страшный серый волк, я в поросятах знааааюююю толк
dervan
#4 2009-03-19 04:51


Contributors

# Dayver : I do not agree with you ....
why don't you agree? where i told that english should not be default?
Dayver
#5 2009-03-19 05:34


Developers
Thanked: 35 times

Sorry, in first post I do not understand you .... in fact, I fully agree with you
Pavel Tkachenko aka Dayver
Я злой и страшный серый волк, я в поросятах знааааюююю толк
dervan
#6 2009-03-19 05:40


Contributors

sorry for my english :)
Kort Online
#7 2009-03-19 05:49


Coordinators
Thanked: 30 times

Apology accepted :-)

Template updated (check Revision History). Please update your localizations accordingly!
Seditio.by - создание сайтов, разработка плагинов и тем для Котонти

This post was edited by Kort (2009-03-19 17:50, 4 years ago)
pieter
#8 2009-03-20 03:20


Translators
Thanked: 7 times

Is there a way to download the latest updated version of the files in Trunk?

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
... can we help you ...

This post was edited by pieter (2009-03-20 03:21, 4 years ago)
dervan
#9 2009-03-20 04:58


Contributors

IMO, it's need to check for legal running of code

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
 */